Actions

Template

Difference between revisions of "CharacterInfoBox"

(Updated Character info to have optional parameters)
(Fixed)
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;">
 
    <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": "Class Info",
 
"description": "Class/Subclass info, including levels in each",
 
"example": "Bard (College of Lore) 11",
 
"type": "string",
 
"suggested": true
 
},
 
"status": {
 
"label": "Status",
 
"description": "Current Status - example are Alive, Dead, Left Party, Temporarily Away etc.",
 
"example": "Dead",
 
"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
 
}
 
},
 
"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;">
 
<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>

Revision as of 20:34, 3 September 2020

{{{title}}}

PC info

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Page title, usually character's first name

Example
Ghurrix
Stringrequired
Imageimage

Picture of character

Filesuggested
Full Namename

Full Name of character, with any titles

Example
Thoradin Clearsight of the Templar Order
Stringrequired
Partyparty

The Party (campaign) the character belongs/belonged to

Example
The Village Butchers
Stringrequired
Class Infoclass

Class/Subclass info, including levels in each

Example
Bard (College of Lore) 11
Stringsuggested
Statusstatus

Current Status - example are Alive, Dead, Left Party, Temporarily Away etc.

Default
Alive
Example
Dead
Auto value
Stringsuggested
Racerace

In-game race/subrace

Example
Elf (lmao)
Stringoptional
Date of BirthDoB

Date of Birth (and age in brackets if you want).

Example
4-2490 (26)
Stringsuggested
Physical Descriptionphysical

Height, Weight, Skin Tone, Horns/Tattoos, etc.

Stringsuggested