Difference between revisions of "CharacterInfoBox"
m (Changed template parameter type) |
(Fixed maximum height of images to 400px) |
||
(25 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable= |
− | |||
− | |||
{{#if: {{{image|}}}| | {{#if: {{{image|}}}| | ||
<tr> | <tr> | ||
− | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}| | + | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px|x400px]]</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 15: | Line 13: | ||
{{#if: {{{party|}}}| | {{#if: {{{party|}}}| | ||
<tr> | <tr> | ||
− | <td class="infoboxtd1strow | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Party</b>:</td> |
− | <td | + | <td>{{{party}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 23: | Line 21: | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Class and Subclass Info</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Class and Subclass Info</b>:</td> | ||
<td>{{{class}}}</td> | <td>{{{class}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{gender|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Gender</b>:</td> | ||
+ | <td>{{{gender}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
Line 49: | Line 53: | ||
</tr> | </tr> | ||
}} | }} | ||
− | {{#if: {{{location|}}}| | + | {{#if: {{{location|}}}| |
− | + | <tr> | |
− | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Last known location</b>:</td> | |
− | + | <td>[[{{{location}}}]]</td> | |
− | </tr> | + | </tr> |
− | }} | + | }} |
− | {{#if: {{{ | + | {{#if: {{{faction|}}}| |
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Faction</b>:</td> | ||
+ | <td>[[{{{faction}}}]]</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{alias|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Alias(es)</b>:</td> | ||
+ | <td>{{{alias}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | |||
+ | {{#if: {{{customFieldName|}}}| | ||
<tr> | <tr> | ||
− | <td class="infoboxtd1strow" style="padding: 10px;"><b> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>{{{customFieldName}}}</b>:</td> |
− | <td> | + | <td>{{{customFieldContent}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
− | }} | + | {{#if: {{{extraContent|}}}| |
− | <noinclude> | + | {{{extraContent}}}}}}}</includeonly><noinclude> |
− | <templatedata> | + | {{CharacterInfoBox |
− | { | + | |title=Test Character |
− | "description": "PC | + | |image=byAllah.jpg |
+ | |name=Character McCharacter Face}} | ||
+ | <templatedata>{ | ||
+ | "description": "Character infobox, use the NPC or PC infobox instead", | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
Line 141: | Line 161: | ||
"example": "Templars", | "example": "Templars", | ||
"type": "wiki-page-name" | "type": "wiki-page-name" | ||
+ | }, | ||
+ | "extraContent": { | ||
+ | "label": "Extra content", | ||
+ | "description": "Anything extra specific to a certain character", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "gender": { | ||
+ | "label": "Gender", | ||
+ | "description": "The character's gender", | ||
+ | "example": "Male, Female, etc.", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "alias": { | ||
+ | "label": "Alias(es)", | ||
+ | "description": "Any aliases the character has", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "customFieldName": { | ||
+ | "label": "Custom Field Name", | ||
+ | "description": "A custom field for you to write your own things", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "customFieldContent": { | ||
+ | "label": "Custom Field Content", | ||
+ | "description": "The content to be placed in the custom field", | ||
+ | "type": "content" | ||
} | } | ||
}, | }, | ||
Line 154: | Line 201: | ||
"physical", | "physical", | ||
"location", | "location", | ||
− | "faction" | + | "faction", |
+ | "extraContent", | ||
+ | "gender", | ||
+ | "alias", | ||
+ | "customFieldName", | ||
+ | "customFieldContent" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 16:52, 30 August 2021
Character infobox, use the NPC or PC infobox instead
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Page title, usually character's first name
| String | required |
Image | image | Picture of character | File | suggested |
Full Name | name | Full Name of character, with any titles
| String | required |
Party | party | The Party (campaign) the character belongs/belonged to
| String | required |
Class Info | class | Class/Subclass info, including levels in each
| String | suggested |
Status | status | Current Status - example are Alive, Dead, Left Party, Temporarily Away etc.
| String | suggested |
Race | race | In-game race/subrace
| String | optional |
Date of Birth | DoB | Date of Birth (and age in brackets if you want).
| String | suggested |
Physical Description | physical | Height, Weight, Skin Tone, Horns/Tattoos, etc. | String | suggested |
Last known location | location | The last place the character was known to be
| Page | suggested |
Faction | faction | Any factions the character is aligned with
| Page | optional |
Extra content | extraContent | Anything extra specific to a certain character | Content | optional |
Gender | gender | The character's gender
| String | suggested |
Alias(es) | alias | Any aliases the character has | String | optional |
Custom Field Name | customFieldName | A custom field for you to write your own things | String | optional |
Custom Field Content | customFieldContent | The content to be placed in the custom field | Content | optional |