Difference between revisions of "Template:Infobox Character"
FelliSpirit (talk | contribs) (Closing-tag issue which broke the box if the non-required data "image" was left empty.) |
|||
(8 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> | + | </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
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:
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the Character
| String | required |
Image | image | File:Name.Extension
| File | suggested |
Prev | prev | The previous character on the list found on the Characters page
| Page | suggested |
Next | next | The next character on the list found on the Characters page
| Page | suggested |
Class | class | The class of the party member(Leave empty if not a party member)
| String | optional |
Gender | gender | The gender of the character
| String | suggested |
Age | age | The age of the character
| Number | optional |
Hair color | hair color | The hair color of the character
| String | suggested |
Eye color | eye color | The eye color of the character
| String | suggested |
Manor | manor | The location the character can be found at the Northmarket Manor
| String | optional |
Condo | condo | The location the character can be found at the Eastfort Condo
| String | optional |
Wesmanor | wesmanor | The location the character can be found at the Westcastle Manor
| Unknown | optional |
Soumanor | soumanor | The location the character can be found at the Southport Manor
| String | optional |
Elf shrine | elf shrine | The location the character can be found at the Elf Shrine
| String | optional |
Prev_cat | prev_cat | The Previous Category
| Page | optional |
Next_cat | next_cat | The next Category
| Page | optional |