Difference between revisions of "CharacterInfoBox"
(Added faction and location to character info) |
(Fixed maximum height of images to 400px) |
||
(37 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable= |
− | <tr> | + | {{#if: {{{image|}}}| |
− | < | + | <tr> |
− | </tr> | + | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px|x400px]]</td> |
− | <tr> | + | </tr> |
− | <td class=" | + | }} |
− | </tr> | + | {{#if: {{{name|}}}| |
− | <tr> | + | <tr> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Full Name</b>:</td> |
− | <td>{{{ | + | <td>{{{name}}}</td> |
− | </tr> | + | </tr> |
− | <tr> | + | }} |
− | <td class="infoboxtd1strow | + | {{#if: {{{party|}}}| |
− | <td | + | <tr> |
− | </tr> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Party</b>:</td> |
− | <tr> | + | <td>{{{party}}}</td> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b> | + | </tr> |
− | <td>{{{ | + | }} |
− | </tr> | + | {{#if: {{{class|}}}| |
− | <tr> | + | <tr> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Status</b>:</td> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Class and Subclass Info</b>:</td> |
− | <td>{{{status}}}</td> | + | <td>{{{class}}}</td> |
− | </tr> | + | </tr> |
− | <tr> | + | }} |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Race</b>:</td> | + | {{#if: {{{gender|}}}| |
− | <td>{{{race}}}</td> | + | <tr> |
− | </tr> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Gender</b>:</td> |
− | <tr> | + | <td>{{{gender}}}</td> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Date of Birth (Age)</b>:</td> | + | </tr> |
− | <td>{{{DoB}}}</td> | + | }} |
− | </tr> | + | {{#if: {{{status|}}}| |
− | <tr> | + | <tr> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Physical Description</b>:</td> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Status</b>:</td> |
− | <td>{{{physical}}}</td> | + | <td>{{{status}}}</td> |
− | </tr> | + | </tr> |
− | <tr> | + | }} |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Last known location</b>:</td> | + | {{#if: {{{race|}}}| |
− | <td>{{{location}}}</td> | + | <tr> |
− | </tr> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Race</b>:</td> |
− | <tr> | + | <td>{{{race}}}</td> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Faction</b>:</td> | + | </tr> |
− | <td>{{{faction}}}</td> | + | }} |
− | </tr></ | + | {{#if: {{{DoB|}}}| |
− | <noinclude> | + | <tr> |
− | <templatedata> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Date of Birth (Age)</b>:</td> |
− | { | + | <td>{{{DoB}}}</td> |
− | "description": "PC | + | </tr> |
+ | }} | ||
+ | {{#if: {{{physical|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Physical Description</b>:</td> | ||
+ | <td>{{{physical}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{location|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Last known location</b>:</td> | ||
+ | <td>[[{{{location}}}]]</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#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> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>{{{customFieldName}}}</b>:</td> | ||
+ | <td>{{{customFieldContent}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{extraContent|}}}| | ||
+ | {{{extraContent}}}}}}}</includeonly><noinclude> | ||
+ | {{CharacterInfoBox | ||
+ | |title=Test Character | ||
+ | |image=byAllah.jpg | ||
+ | |name=Character McCharacter Face}} | ||
+ | <templatedata>{ | ||
+ | "description": "Character infobox, use the NPC or PC infobox instead", | ||
"params": { | "params": { | ||
"title": { | "title": { | ||
Line 121: | 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 134: | 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 |