Template:Character Panel: Difference between revisions
More actions
No edit summary |
some sections are being evil and being too big |
||
| (31 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
This is the "Character |
This is the "Character Panel" template. |
||
It should be called in the following format: |
It should be called in the following format: |
||
<pre> |
<pre> |
||
{{Character |
{{Character Panel |
||
|image= |
|image= |
||
|imagealt= |
|||
|fullname= |
|fullname= |
||
|alias= |
|alias= |
||
|pronouns= |
|||
|species= |
|||
|domain= |
|||
|affiliation= |
|affiliation= |
||
|occupation= |
|occupation= |
||
|skills= |
|skills= |
||
|feats= |
|feats= |
||
|backgroundcolor= |
|||
}} |
}} |
||
</pre> |
</pre> |
||
<templatedata> |
<templatedata>{ |
||
{ |
|||
"description": "An infobox for character pages displaying basic character information", |
"description": "An infobox for character pages displaying basic character information", |
||
"params": { |
"params": { |
||
| Line 22: | Line 26: | ||
"type": "wiki-file-name", |
"type": "wiki-file-name", |
||
"suggested": true |
"suggested": true |
||
}, |
|||
"imagealt": { |
|||
"label": "Image alternative text", |
|||
"description": "Describe the portrait or identifying image for readers who cannot see it.", |
|||
"type": "string" |
|||
}, |
}, |
||
"fullname": { |
"fullname": { |
||
| Line 32: | Line 41: | ||
"label": "Alias", |
"label": "Alias", |
||
"description": "Alternative names or aliases the character is known by", |
"description": "Alternative names or aliases the character is known by", |
||
"type": "string" |
|||
}, |
|||
"pronouns": { |
|||
"label": "Pronouns", |
|||
"description": "Character's pronouns", |
|||
"type": "string" |
|||
}, |
|||
"species": { |
|||
"label": "Species", |
|||
"description": "Character's species/race", |
|||
"type": "string" |
|||
}, |
|||
"domain": { |
|||
"label": "Domain", |
|||
"description": "Archon or non-reality character label for a home plane of existence (ex. Nevermeant)", |
|||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
| Line 37: | Line 61: | ||
"label": "Affiliation", |
"label": "Affiliation", |
||
"description": "Groups, organizations, or factions the character is affiliated with", |
"description": "Groups, organizations, or factions the character is affiliated with", |
||
"type": "string" |
"type": "string", |
||
"example": "Kalmaktama, Mekhanite Empire, The Foundation" |
|||
}, |
}, |
||
"occupation": { |
"occupation": { |
||
| Line 47: | Line 72: | ||
"label": "Skills", |
"label": "Skills", |
||
"description": "Notable abilities or skills the character possesses", |
"description": "Notable abilities or skills the character possesses", |
||
"type": "string" |
"type": "string", |
||
"example": "Carnomancy, Thaumaturgy, Reality Bending" |
|||
}, |
}, |
||
"feats": { |
"feats": { |
||
| Line 53: | Line 79: | ||
"description": "Notable accomplishments or achievements", |
"description": "Notable accomplishments or achievements", |
||
"type": "string" |
"type": "string" |
||
}, |
|||
"backgroundcolor": { |
|||
"label": "Background Color", |
|||
"description": "Panel color theme. Leave blank for the default. Invalid values place the page in a tracking category.", |
|||
"type": "string", |
|||
"suggestedvalues": ["crimson", "azure", "verdant", "midnight", "mekhanite"] |
|||
} |
} |
||
} |
} |
||
| ⚫ | |||
} |
|||
| ⚫ | |||
Styling follows Citizen and stacks on mobile. |
|||
</noinclude><includeonly>{| class="wikitable" style="float:right; margin-left:1em; width:300px;" |
|||
|- |
|||
The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text. |
|||
! colspan="2" style="font-size:150%; font-family:Metamorphous; padding:3px; border-radius:3ex; text-align:center; font-weight:bold; color:white; text-shadow:black 0px 0px 10px; background-color:red;" | Character Info |
|||
|- |
|||
Allowed <code>backgroundcolor</code> values: crimson, azure, verdant, midnight, mekhanite. |
|||
{{#if:{{{image|}}}| |
|||
Pages with any other value are listed in [[:Category:Character Panel pages with invalid background color]]. |
|||
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{{image}}}|300px]] |
|||
{{!}}- |
|||
[[Category:Infobox templates]] |
|||
}} |
|||
</noinclude> |
|||
|- |
|||
! Full Name |
|||
<includeonly><templatestyles src="Template:Character Panel/styles.css" /> |
|||
| {{#if:{{{fullname|}}}|{{{fullname}}}|No information}} |
|||
<table class="infobox-character {{#switch:{{lc:{{{backgroundcolor|}}}}} |
|||
|- |
|||
|crimson |
|||
! Alias |
|||
|azure |
|||
| {{#if:{{{alias|}}}|{{{alias}}}|No information}} |
|||
|verdant |
|||
|- |
|||
|midnight |
|||
! Affiliation |
|||
|mekhanite = infobox-character--{{lc:{{{backgroundcolor|}}}}} |
|||
| ⚫ | |||
|#default = |
|||
|- |
|||
}}"><!-- |
|||
! Occupation |
|||
--><caption>General Information</caption><!-- |
|||
| ⚫ | |||
-->{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-character__image">[[File:{{{image}}}|260px|alt={{{imagealt|Portrait of {{{fullname|this character}}}}}}]]</td></tr>}}<!-- |
|||
|- |
|||
-->{{#if:{{{fullname|}}}|<tr><th scope="row">Full name</th><td>{{{fullname}}}</td></tr>}}<!-- |
|||
! Skills |
|||
-->{{#if:{{{alias|}}}|<tr><th scope="row">Alias</th><td>{{{alias}}}</td></tr>}}<!-- |
|||
-->{{#if:{{{pronouns|}}}|<tr><th scope="row">Pronouns</th><td>{{{pronouns}}}</td></tr>}}<!-- |
|||
|- |
|||
| ⚫ | |||
! Feats |
|||
-->{{#if:{{{species|}}}|<tr><th scope="row">Species</th><td>{{{species}}}</td></tr>}}<!-- |
|||
-->{{#if:{{{domain|}}}|<tr><th scope="row">Domain</th><td>{{{domain}}}</td></tr>}}<!-- |
|||
| ⚫ | |||
| ⚫ | |||
-->{{#if:{{{skills|}}}|<tr><th scope="row">Skills</th><td>{{{skills}}}</td></tr>}}<!-- |
|||
-->{{#if:{{{feats|}}}|<tr><th scope="row">Feats</th><td>{{{feats}}}</td></tr>}}<!-- |
|||
--></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{lc:{{{backgroundcolor|}}}}} |
|||
|crimson |
|||
|azure |
|||
|verdant |
|||
|midnight |
|||
|mekhanite |
|||
| = |
|||
|#default = [[Category:Character Panel pages with invalid background color]] |
|||
| ⚫ | |||
Latest revision as of 01:35, 22 October 2026
This is the "Character Panel" template. It should be called in the following format:
{{Character Panel
|image=
|imagealt=
|fullname=
|alias=
|pronouns=
|species=
|domain=
|affiliation=
|occupation=
|skills=
|feats=
|backgroundcolor=
}}
An infobox for character pages displaying basic character information
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Image | image | Filename of the character's image (e.g., Character.jpg) | File | suggested |
| Image alternative text | imagealt | Describe the portrait or identifying image for readers who cannot see it. | String | optional |
| Full Name | fullname | The character's full name | String | suggested |
| Alias | alias | Alternative names or aliases the character is known by | String | optional |
| Pronouns | pronouns | Character's pronouns | String | optional |
| Species | species | Character's species/race | String | optional |
| Domain | domain | Archon or non-reality character label for a home plane of existence (ex. Nevermeant) | String | optional |
| Affiliation | affiliation | Groups, organizations, or factions the character is affiliated with
| String | optional |
| Occupation | occupation | The character's job or role | String | optional |
| Skills | skills | Notable abilities or skills the character possesses
| String | optional |
| Feats | feats | Notable accomplishments or achievements | String | optional |
| Background Color | backgroundcolor | Panel color theme. Leave blank for the default. Invalid values place the page in a tracking category.
| String | optional |
Styling follows Citizen and stacks on mobile.
The image parameter takes a bare filename; optional imagealt= provides alternative text.
Allowed backgroundcolor values: crimson, azure, verdant, midnight, mekhanite.
Pages with any other value are listed in Category:Character Panel pages with invalid background color.