Actions

Template

Difference between revisions of "CharacterInfoBox"

(Added gender)
(Added a custom field)
Line 71: Line 71:
 
             </tr>
 
             </tr>
 
         }}
 
         }}
 +
 +
    {{#if: {{{customFieldName|}}}|
 +
        <tr>
 +
            <td class="infoboxtd1strow" style="padding: 10px;"><b>{{{customFieldName}}}</b>:</td>
 +
            <td>{{{customFieldContent}}}</td>
 +
        </tr>
 +
    }}
 
     {{#if: {{{extraContent|}}}|
 
     {{#if: {{{extraContent|}}}|
 
         {{{extraContent}}}
 
         {{{extraContent}}}
Line 76: Line 83:
 
}}
 
}}
 
<noinclude>
 
<noinclude>
<templatedata>
+
<te{
{
 
 
"description": "PC info",
 
"description": "PC info",
 
"params": {
 
"params": {
Line 171: Line 177:
 
"description": "Any aliases the character has",
 
"description": "Any aliases the character has",
 
"type": "string"
 
"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 187: Line 203:
 
"extraContent",
 
"extraContent",
 
"gender",
 
"gender",
"alias"
+
"alias",
 +
"customFieldName",
 +
"customFieldContent"
 +
]
 +
}"alias"
 
]
 
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 13:42, 13 September 2020


<te{ "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 }, "location": { "label": "Last known location", "description": "The last place the character was known to be", "example": "Tala Rane", "type": "wiki-page-name", "suggested": true }, "faction": { "label": "Faction", "description": "Any factions the character is aligned with", "example": "Templars", "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" } }, "paramOrder": [ "title", "image", "name", "party", "class", "status", "race", "DoB", "physical", "location", "faction", "extraContent", "gender", "alias", "customFieldName", "customFieldContent" ] }"alias" ] } </templatedata>