Difference between revisions of "CharacterInfoBox"
(Added faction and location to character info) |
(Updated Character info to have optional parameters) |
||
Line 1: | Line 1: | ||
<table class="infobox" style="text-align: left; width: 300px; font-size: 100%; border-radius:25px; border: 2px solid #73AD21; overflow:hidden; padding: 20px;"> | <table class="infobox" style="text-align: left; width: 300px; font-size: 100%; border-radius:25px; border: 2px solid #73AD21; overflow:hidden; padding: 20px;"> | ||
− | <tr> | + | <tr> |
− | <th class="infobox-title" colspan="2" style="text-align: center; padding-top: 12px;"><b>{{{title}}}</b></th> | + | <th class="infobox-title" colspan="2" style="text-align: center; padding-top: 12px;"><b>{{{title}}}</b></th> |
− | </tr> | + | </tr> |
− | <tr> | + | {{#if: {{{image|}}}| |
− | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|300px|thumb|center]]</td> | + | <tr> |
− | </tr> | + | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|300px|thumb|center]]</td> |
− | <tr> | + | </tr> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Full Name</b>:</td> | + | }} |
− | <td>{{{name}}}</td> | + | {{#if: {{{name|}}}| |
− | </tr> | + | <tr> |
− | <tr> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Full Name</b>:</td> |
− | <td class="infoboxtd1strow" bgcolor="#cae09f" style="padding: 10px;"><i><b>Party</b></i>:</td> | + | <td>{{{name}}}</td> |
− | <td bgcolor="#cae09f">{{{party}}}</td> | + | </tr> |
− | </tr> | + | }} |
− | <tr> | + | {{#if: {{{party|}}}| |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Class and Subclass Info</b>:</td> | + | <tr> |
− | <td>{{{class}}}</td> | + | <td class="infoboxtd1strow" bgcolor="#cae09f" style="padding: 10px;"><i><b>Party</b></i>:</td> |
− | </tr> | + | <td bgcolor="#cae09f">{{{party}}}</td> |
− | <tr> | + | </tr> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Status</b>:</td> | + | }} |
− | <td>{{{status}}}</td> | + | {{#if: {{{class|}}}| |
− | </tr> | + | <tr> |
− | <tr> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Class and Subclass Info</b>:</td> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Race</b>:</td> | + | <td>{{{class}}}</td> |
− | <td>{{{race}}}</td> | + | </tr> |
− | </tr> | + | }} |
− | <tr> | + | {{#if: {{{status|}}}| |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Date of Birth (Age)</b>:</td> | + | <tr> |
− | <td>{{{DoB}}}</td> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Status</b>:</td> |
− | </tr> | + | <td>{{{status}}}</td> |
− | + | </tr> | |
− | + | }} | |
− | + | {{#if: {{{race|}}}| | |
− | + | <tr> | |
− | <tr> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Race</b>:</td> |
− | <td class="infoboxtd1strow" style="padding: 10px;"><b> | + | <td>{{{race}}}</td> |
− | <td>{{{ | + | </tr> |
− | </tr> | + | }} |
− | + | {{#if: {{{DoB|}}}| | |
− | + | <tr> | |
− | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Date of Birth (Age)</b>:</td> | |
− | + | <td>{{{DoB}}}</td> | |
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{physical|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Physical Description</b>:</td> | ||
+ | <td>{{{physical}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | </table> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 108: | Line 117: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
+ | } | ||
+ | }, | ||
+ | "paramOrder": [ | ||
+ | "title", | ||
+ | "image", | ||
+ | "name", | ||
+ | "party", | ||
+ | "class", | ||
+ | "status", | ||
+ | "race", | ||
+ | "DoB", | ||
+ | "physical" | ||
+ | ] | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> | ||
+ | <table class="infobox" style="text-align: left; width: 300px; font-size: 100%; border-radius:25px; border: 2px solid #73AD21; overflow:hidden; padding: 20px;"> | ||
+ | <tr> | ||
+ | <th class="infobox-title" colspan="2" style="text-align: center; padding-top: 12px;"><b>{{{title}}}</b></th> | ||
+ | </tr> | ||
+ | {{#if: {{{image|}}}| | ||
+ | <tr> | ||
+ | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|300px|thumb|center]]</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{name|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Full Name</b>:</td> | ||
+ | <td>{{{name}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{party|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" bgcolor="#cae09f" style="padding: 10px;"><i><b>Party</b></i>:</td> | ||
+ | <td bgcolor="#cae09f">{{{party}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{class|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Class and Subclass Info</b>:</td> | ||
+ | <td>{{{class}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{status|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Status</b>:</td> | ||
+ | <td>{{{status}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{race|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Race</b>:</td> | ||
+ | <td>{{{race}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{DoB|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Date of Birth (Age)</b>:</td> | ||
+ | <td>{{{DoB}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | {{#if: {{{physical|}}}| | ||
+ | <tr> | ||
+ | <td class="infoboxtd1strow" style="padding: 10px;"><b>Physical Description</b>:</td> | ||
+ | <td>{{{physical}}}</td> | ||
+ | </tr> | ||
+ | }} | ||
+ | </table> | ||
+ | <noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "description": "PC info", | ||
+ | "params": { | ||
+ | "title": { | ||
+ | "label": "Title", | ||
+ | "description": "Page title, usually character's first name", | ||
+ | "example": "Ghurrix", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "image": { | ||
+ | "label": "Image", | ||
+ | "description": "Picture of character", | ||
+ | "type": "wiki-file-name", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "name": { | ||
+ | "label": "Full Name", | ||
+ | "description": "Full Name of character, with any titles", | ||
+ | "example": "Thoradin Clearsight of the Templar Order", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "party": { | ||
+ | "label": "Party", | ||
+ | "description": "The Party (campaign) the character belongs/belonged to", | ||
+ | "example": "The Village Butchers", | ||
+ | "type": "string", | ||
+ | "required": true | ||
}, | }, | ||
− | " | + | "class": { |
− | "label": " | + | "label": "Class Info", |
− | "description": " | + | "description": "Class/Subclass info, including levels in each", |
− | "example": " | + | "example": "Bard (College of Lore) 11", |
− | "type": " | + | "type": "string", |
"suggested": true | "suggested": true | ||
}, | }, | ||
− | " | + | "status": { |
− | "label": " | + | "label": "Status", |
− | "description": " | + | "description": "Current Status - example are Alive, Dead, Left Party, Temporarily Away etc.", |
− | "example": " | + | "example": "Dead", |
− | "type": " | + | "type": "string", |
+ | "default": "Alive", | ||
+ | "autovalue": "", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "race": { | ||
+ | "label": "Race", | ||
+ | "description": "In-game race/subrace", | ||
+ | "example": "Elf (lmao)", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "DoB": { | ||
+ | "label": "Date of Birth", | ||
+ | "description": "Date of Birth (and age in brackets if you want). ", | ||
+ | "example": "4-2490 (26)", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "physical": { | ||
+ | "label": "Physical Description", | ||
+ | "description": "Height, Weight, Skin Tone, Horns/Tattoos, etc.", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
} | } | ||
}, | }, | ||
Line 132: | Line 262: | ||
"race", | "race", | ||
"DoB", | "DoB", | ||
− | "physical | + | "physical" |
− | |||
− | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 20:13, 3 September 2020
PC info
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 |
PC info
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 |