Difference between revisions of "Template:Infobox Character"

From Bad Kitty Games Wiki
Jump to navigation Jump to search
(Closing-tag issue which broke the box if the non-required data "image" was left empty.)
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<onlyinclude><div class="infobox">
 
<onlyinclude><div class="infobox">
 
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
 
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">{{{image}}}</div>
+
<div class="infobox-image">{{{image}}}</div>}}
 
<table><tr>
 
<table><tr>
     <td>'''Previous'''</br>{{{prev}}}</td>
+
     <td align="center">'''Previous'''</br>{{{prev}}}</td>
     <td>'''Next'''</br>{{{next}}}</td>
+
     <td align="center">'''Next'''</br>{{{next}}}</td>
 +
    </tr>
 
     <tr>
 
     <tr>
 +
    <td align="center">'''Previous category'''</br>{{{prev_cat}}}</td>
 +
    <td align="center">'''Next category'''</br>{{{next_cat}}}</td>
 +
    </tr>
 
     <th colspan="2">Attributes</th>
 
     <th colspan="2">Attributes</th>
 
     {{#if:{{{class|}}}|<tr>
 
     {{#if:{{{class|}}}|<tr>
Line 12: Line 16:
 
     <td>{{{class}}}</td>
 
     <td>{{{class}}}</td>
 
     </tr>}}<tr>
 
     </tr>}}<tr>
     </tr>}}{{#if:{{{gender|}}}|<tr>
+
     </tr>{{#if:{{{gender|}}}|<tr>
 
     <td>'''Gender'''</td>
 
     <td>'''Gender'''</td>
 
     <td>{{{gender}}}</td>
 
     <td>{{{gender}}}</td>
Line 91: Line 95:
  
  
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
+
 
 +
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]<templatedata>
 +
{
 +
"params": {
 +
"name": {
 +
"description": "The name of the Character",
 +
"example": "Hero",
 +
"type": "string",
 +
"required": true
 +
},
 +
"image": {
 +
"description": "File:Name.Extension",
 +
"example": "File:HeroFaces1.png",
 +
"type": "wiki-file-name",
 +
"suggested": true
 +
},
 +
"prev": {
 +
"description": "The previous character on the list found on the Characters page",
 +
"example": "[[Yeon]]",
 +
"type": "wiki-page-name",
 +
"suggested": true
 +
},
 +
"next": {
 +
"description": "The next character on the list found on the Characters page",
 +
"example": "[[Alina]]",
 +
"type": "wiki-page-name",
 +
"suggested": true
 +
},
 +
"class": {
 +
"description": "The class of the party member(Leave empty if not a party member)",
 +
"example": "Warlord",
 +
"type": "string"
 +
},
 +
"gender": {
 +
"description": "The gender of the character",
 +
"example": "Male",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"age": {
 +
"description": "The age of the character",
 +
"example": "22",
 +
"type": "number",
 +
"autovalue": ""
 +
},
 +
"hair color": {
 +
"description": "The hair color of the character",
 +
"example": "Red",
 +
"type": "string",
 +
"autovalue": "",
 +
"suggested": true
 +
},
 +
"eye color": {
 +
"description": "The eye color of the character",
 +
"example": "Silver",
 +
"type": "string",
 +
"autovalue": "",
 +
"suggested": true
 +
},
 +
"manor": {
 +
"description": "The location the character can be found at the Northmarket Manor",
 +
"example": "Master Bedroom",
 +
"type": "string"
 +
},
 +
"condo": {
 +
"description": "The location the character can be found at the Eastfort Condo",
 +
"example": "Master Bedroom",
 +
"type": "string"
 +
},
 +
"wesmanor": {
 +
"description": "The location the character can be found at the Westcastle Manor",
 +
"example": "Master Bedroom"
 +
},
 +
"soumanor": {
 +
"description": "The location the character can be found at the Southport Manor",
 +
"example": "Master Bedroom",
 +
"type": "string"
 +
},
 +
"elf shrine": {
 +
"description": "The location the character can be found at the Elf Shrine",
 +
"example": "Bedroom",
 +
"type": "string"
 +
},
 +
"prev_cat": {
 +
"description": "The Previous Category",
 +
"example": "[[Category:Harem Girls]]",
 +
"type": "wiki-page-name"
 +
},
 +
"next_cat": {
 +
"description": "The next Category",
 +
"example": "[[Category:Harem Girls]]",
 +
"type": "wiki-page-name"
 +
}
 +
},
 +
"description": "A template for a character"
 +
}
 +
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 14:41, 9 May 2020

Infobox Character
Previous
{{{prev}}}
Next
{{{next}}}
Previous category
{{{prev_cat}}}
Next category
{{{next_cat}}}
Attributes
Location


Usage & preview

Type in this:

{{Infobox Character
|prev=[[Doll]]
|next=[[Felix]]
|prev_cat=[[Florine|Shopkeepers]]
|next_cat=[[Lilac|Maids]]
|image=ElaiyaNew.png
|spritesheet=
|class=Bounty Hunter
|age=27
|hair color=Turquoise 
|eye color=Orange
|manor=Servant's Quarters 
|condo=Main Floor
|wesmanor=2nd Floor near staircase
|elf shrine=library at a table
|soumanor=Slave Quarters
}}

to see this:

Infobox Character
ElaiyaNew.png
Previous
Doll
Next
Felix
Previous category
Shopkeepers
Next category
Maids
Attributes
Class Bounty Hunter
Age 27
Hair Color Turquoise
Eye Color Orange
Location
Northmarket Manor Servant's Quarters
Eastfort Condo Main Floor
Westcastle Manor 2nd Floor near staircase
Southport Manor Slave Quarters
Elf Shrine library at a table


Click here to refresh the preview above

A template for a character

Template parameters

ParameterDescriptionTypeStatus
Namename

The name of the Character

Example
Hero
Stringrequired
Imageimage

File:Name.Extension

Example
File:HeroFaces1.png
Filesuggested
Prevprev

The previous character on the list found on the Characters page

Example
[[Yeon]]
Pagesuggested
Nextnext

The next character on the list found on the Characters page

Example
[[Alina]]
Pagesuggested
Classclass

The class of the party member(Leave empty if not a party member)

Example
Warlord
Stringoptional
Gendergender

The gender of the character

Example
Male
Stringsuggested
Ageage

The age of the character

Example
22
Auto value
Numberoptional
Hair colorhair color

The hair color of the character

Example
Red
Auto value
Stringsuggested
Eye coloreye color

The eye color of the character

Example
Silver
Auto value
Stringsuggested
Manormanor

The location the character can be found at the Northmarket Manor

Example
Master Bedroom
Stringoptional
Condocondo

The location the character can be found at the Eastfort Condo

Example
Master Bedroom
Stringoptional
Wesmanorwesmanor

The location the character can be found at the Westcastle Manor

Example
Master Bedroom
Unknownoptional
Soumanorsoumanor

The location the character can be found at the Southport Manor

Example
Master Bedroom
Stringoptional
Elf shrineelf shrine

The location the character can be found at the Elf Shrine

Example
Bedroom
Stringoptional
Prev_catprev_cat

The Previous Category

Example
[[Category:Harem Girls]]
Pageoptional
Next_catnext_cat

The next Category

Example
[[Category:Harem Girls]]
Pageoptional