Difference between revisions of "Template:Infobox Character"

From Bad Kitty Games Wiki
Jump to navigation Jump to search
fandom>RomeoPapa
 
(Closing-tag issue which broke the box if the non-required data "image" was left empty.)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<infobox theme="whiviolet">
+
 
<title source="name"><default>{{PAGENAME}}</default></title>
+
<onlyinclude><div class="infobox">
<group layout="horizontal">
+
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<data source="prev"><label>'''Previous'''</label></data>
+
<div class="infobox-image">{{{image}}}</div>}}
<data source="next"><label>'''Next'''</label></data>
+
<table><tr>
     </group>
+
    <td align="center">'''Previous'''</br>{{{prev}}}</td>
<group layout="horizontal" collapse="closed">
+
    <td align="center">'''Next'''</br>{{{next}}}</td>
        <header>Other groups</header>
+
     </tr>
        <data source="prev_cat"><label>'''Category'''</label></data>
+
    <tr>
        <data source="next_cat"><label>'''Category'''</label></data>
+
    <td align="center">'''Previous category'''</br>{{{prev_cat}}}</td>
     </group>
+
    <td align="center">'''Next category'''</br>{{{next_cat}}}</td>
<image source="image"/>
+
     </tr>
    <group>
+
    <th colspan="2">Attributes</th>
<header>Attributes</header>
+
    {{#if:{{{class|}}}|<tr>
<data source="class"><label>'''Class'''</label></data>
+
    <td>'''Class'''</td>
<data source="gender"><label>'''Gender'''</label></data>
+
    <td>{{{class}}}</td>
<data source="age"><label>'''Age'''</label></data>
+
    </tr>}}<tr>
<data source="hair color"><label>'''Hair Color'''</label></data>
+
    </tr>{{#if:{{{gender|}}}|<tr>
<data source="eye color"><label>'''Eye Color'''</label></data>
+
    <td>'''Gender'''</td>
    </group>
+
    <td>{{{gender}}}</td>
     <group layout="horizontal" row-items="3">
+
    </tr>}}{{#if:{{{age|}}}|<tr>
<header>Location</header>
+
    <td>'''Age'''</td>
<data source="manor"><label>''Manor''</label></data>
+
    <td>{{{age}}}</td>
<data source="condo"><label>''Condo''</label></data>
+
    </tr>}}{{#if:{{{hair color|}}}|<tr>
<data source="wesmanor"><label>''Westcastle Manor''</label></data>
+
    <td>'''Hair Color'''</td>
<data source="soumanor"><label>''Southport Manor''</label></data>
+
    <td>{{{hair color}}}</td>
<data source="elf shrine"><label>''Elf Shrine''</label></data>
+
    </tr>}}{{#if:{{{eye color|}}}|<tr>
<data source="earl estate"><label>''Earl Estate''</label></data>
+
    <td>'''Eye Color'''</td>
    </group>
+
    <td>{{{eye color}}}</td>
 
+
</tr>}}
</infobox>
+
     <th colspan="2">'''Location'''</th>
 +
    {{#if:{{{manor|}}}|<tr>
 +
    <td>'''Northmarket Manor'''</td>
 +
    <td>{{{manor}}}</td>
 +
    </tr>}}{{#if:{{{condo|}}}|<tr>
 +
    <td>'''Eastfort Condo'''</td>
 +
    <td>{{{condo}}}</td>
 +
    </tr>}}{{#if:{{{wesmanor|}}}|<tr>
 +
    <td>'''Westcastle Manor'''</td>
 +
    <td>{{{wesmanor}}}</td>
 +
    </tr>}}{{#if:{{{soumanor|}}}|<tr>
 +
    <td>'''Southport Manor'''</td>
 +
    <td>{{{soumanor}}}</td>
 +
    </tr>}}{{#if:{{{elf shrine|}}}|<tr>
 +
    <td>'''Elf Shrine'''</td>
 +
    <td>{{{elf shrine}}}
 +
}}</td>
 +
</table>
 +
</div></onlyinclude><noinclude>
 +
</noinclude>
 
<noinclude>
 
<noinclude>
 
== Usage & preview ==
 
== Usage & preview ==
Line 76: 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