Actions

Template

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>
+
        </tr>
<td class="infoboxtd1strow" style="padding: 10px;"><b>Physical Description</b>:</td>
+
    }}
<td>{{{physical}}}</td>
+
    {{#if: {{{race|}}}|
</tr>
+
        <tr>
<tr>
+
            <td class="infoboxtd1strow" style="padding: 10px;"><b>Race</b>:</td>
<td class="infoboxtd1strow" style="padding: 10px;"><b>Last known location</b>:</td>
+
            <td>{{{race}}}</td>
<td>{{{location}}}</td>
+
        </tr>
</tr>
+
    }}
<tr>
+
    {{#if: {{{DoB|}}}|
<td class="infoboxtd1strow" style="padding: 10px;"><b>Faction</b>:</td>
+
        <tr>
<td>{{{faction}}}</td>
+
            <td class="infoboxtd1strow" style="padding: 10px;"><b>Date of Birth (Age)</b>:</td>
</tr></table>
+
            <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
 
},
 
},
"location": {
+
"class": {
"label": "Last known location",
+
"label": "Class Info",
"description": "The last place the character was known to be",
+
"description": "Class/Subclass info, including levels in each",
"example": "Tala Rane",
+
"example": "Bard (College of Lore) 11",
"type": "wiki-page-name",
+
"type": "string",
 
"suggested": true
 
"suggested": true
 
},
 
},
"faction": {
+
"status": {
"label": "Faction",
+
"label": "Status",
"description": "Any factions the character is aligned with",
+
"description": "Current Status - example are Alive, Dead, Left Party, Temporarily Away etc.",
"example": "Templars",
+
"example": "Dead",
"type": "wiki-page-name"
+
"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"
"location",
 
"faction"
 
 
]
 
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 20:13, 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
{{{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