Template:Character Panel: Difference between revisions
More actions
No edit summary |
some sections are being evil and being too big |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
{{Character Panel |
{{Character Panel |
||
|image= |
|image= |
||
|imagealt= |
|||
|fullname= |
|fullname= |
||
|alias= |
|alias= |
||
|pronouns= |
|||
|species= |
|species= |
||
|domain= |
|domain= |
||
| Line 13: | Line 15: | ||
|skills= |
|skills= |
||
|feats= |
|feats= |
||
|backgroundcolor= |
|||
}} |
}} |
||
</pre> |
</pre> |
||
<templatedata>{ |
<templatedata>{ |
||
"description": "An infobox for character pages displaying basic character information", |
|||
"params": { |
|||
"image": { |
|||
"label": "Image", |
|||
"description": "Filename of the character's image (e.g., Character.jpg)", |
|||
"type": "wiki-file-name", |
|||
"suggested": true |
|||
}, |
|||
"imagealt": { |
|||
"label": "Image alternative text", |
|||
"description": "Describe the portrait or identifying image for readers who cannot see it.", |
|||
"description": "The character's full name", |
|||
"type": "string" |
|||
}, |
|||
"suggested": true |
|||
"fullname": { |
|||
}, |
|||
"label": "Full Name", |
|||
"alias": { |
|||
"description": "The character's full name", |
|||
"label": "Alias", |
|||
"type": "string", |
|||
"description": "Alternative names or aliases the character is known by", |
|||
"suggested": true |
|||
"type": "string" |
|||
}, |
|||
"alias": { |
|||
"label": "Alias", |
|||
"description": "Alternative names or aliases the character is known by", |
|||
"description": "Character's species/race", |
|||
"type": "string" |
|||
}, |
|||
"pronouns": { |
|||
"label": "Pronouns", |
|||
"description": "Character's pronouns", |
|||
"description": "Archon or non-reality character label for a home plane of existance (ex. Nevermeant)", |
|||
"type": "string" |
|||
}, |
|||
"species": { |
|||
"label": "Species", |
|||
"description": "Character's species/race", |
|||
"description": "Groups, organizations, or factions the character is affiliated with", |
|||
"type": "string" |
|||
}, |
|||
"domain": { |
|||
"label": "Domain", |
|||
"description": "Archon or non-reality character label for a home plane of existence (ex. Nevermeant)", |
|||
"type": "string" |
|||
}, |
|||
"affiliation": { |
|||
"label": "Affiliation", |
|||
"description": "Groups, organizations, or factions the character is affiliated with", |
|||
"type": "string", |
|||
"example": "Kalmaktama, Mekhanite Empire, The Foundation" |
|||
}, |
|||
}, |
|||
"feats": { |
|||
"occupation": { |
|||
"label": "Feats", |
|||
"label": "Occupation", |
|||
"description": "Notable accomplishments or achievements", |
|||
"description": "The character's job or role", |
|||
"type": "string" |
|||
"type": "string" |
|||
}, |
|||
}, |
|||
"backgroundcolor": { |
|||
"skills": { |
|||
"label": "Background Color", |
|||
"label": "Skills", |
|||
"description": "Legacy parameter, retained for compatibility. Citizen controls the background colour.", |
|||
"description": "Notable abilities or skills the character possesses", |
|||
"type": "string" |
|||
"type": "string", |
|||
}, |
|||
"example": "Carnomancy, Thaumaturgy, Reality Bending" |
|||
"imagealt": { |
|||
}, |
|||
"label": "Image alternative text", |
|||
"feats": { |
|||
"description": "Describe the portrait or identifying image for readers who cannot see it.", |
|||
"label": "Feats", |
|||
"description": "Notable accomplishments or achievements", |
|||
} |
|||
"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"] |
|||
} |
|||
} |
|||
}</templatedata> |
}</templatedata> |
||
The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text. Styling follows Citizen and stacks on mobile. |
|||
Styling follows Citizen and stacks on mobile. |
|||
The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text. |
|||
Allowed <code>backgroundcolor</code> values: crimson, azure, verdant, midnight, mekhanite. |
|||
Pages with any other value are listed in [[:Category:Character Panel pages with invalid background color]]. |
|||
[[Category:Infobox templates]] |
[[Category:Infobox templates]] |
||
</noinclude> |
</noinclude> |
||
<includeonly><templatestyles src="Template:Character Panel/styles.css" /> |
<includeonly><templatestyles src="Template:Character Panel/styles.css" /> |
||
<table class="infobox-character {{#switch:{{lc:{{{backgroundcolor|}}}}} |
|||
|crimson |
|||
|+ Character information |
|||
|azure |
|||
{{#if:{{{image|}}}| |
|||
|verdant |
|||
{{!}}- |
|||
|midnight |
|||
{{!}} colspan="2" class="infobox-character__image" {{!}} [[File:{{{image}}}|260px|alt={{{imagealt|Portrait of {{{fullname|this character}}}}}}]] |
|||
|mekhanite = infobox-character--{{lc:{{{backgroundcolor|}}}}} |
|||
}} |
|||
|#default = |
|||
{{#if:{{{fullname|}}}| |
|||
}}"><!-- |
|||
--><caption>General Information</caption><!-- |
|||
! scope="row" {{!}} Full name |
|||
-->{{#if:{{{image|}}}|<tr><td colspan="2" class="infobox-character__image">[[File:{{{image}}}|260px|alt={{{imagealt|Portrait of {{{fullname|this character}}}}}}]]</td></tr>}}<!-- |
|||
{{!}} {{{fullname}}} |
|||
-->{{#if:{{{fullname|}}}|<tr><th scope="row">Full name</th><td>{{{fullname}}}</td></tr>}}<!-- |
|||
}} |
|||
{{#if:{{{alias|}}}| |
-->{{#if:{{{alias|}}}|<tr><th scope="row">Alias</th><td>{{{alias}}}</td></tr>}}<!-- |
||
-->{{#if:{{{pronouns|}}}|<tr><th scope="row">Pronouns</th><td>{{{pronouns}}}</td></tr>}}<!-- |
|||
{{!}}- |
|||
-->{{#if:{{{affiliation|}}}|<tr><th scope="row">Affiliation</th><td>{{{affiliation}}}</td></tr>}}<!-- |
|||
! scope="row" {{!}} Alias |
|||
-->{{#if:{{{species|}}}|<tr><th scope="row">Species</th><td>{{{species}}}</td></tr>}}<!-- |
|||
{{!}} {{{alias}}} |
|||
-->{{#if:{{{domain|}}}|<tr><th scope="row">Domain</th><td>{{{domain}}}</td></tr>}}<!-- |
|||
}} |
|||
-->{{#if:{{{occupation|}}}|<tr><th scope="row">Occupation</th><td>{{{occupation}}}</td></tr>}}<!-- |
|||
{{#if:{{{affiliation|}}}| |
|||
-->{{#if:{{{skills|}}}|<tr><th scope="row">Skills</th><td>{{{skills}}}</td></tr>}}<!-- |
|||
{{!}}- |
|||
-->{{#if:{{{feats|}}}|<tr><th scope="row">Feats</th><td>{{{feats}}}</td></tr>}}<!-- |
|||
! scope="row" {{!}} Affiliation |
|||
--></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{lc:{{{backgroundcolor|}}}}} |
|||
{{!}} {{{affiliation}}} |
|||
|crimson |
|||
}} |
|||
|azure |
|||
{{#if:{{{species|}}}| |
|||
|verdant |
|||
{{!}}- |
|||
|midnight |
|||
! scope="row" {{!}} Species |
|||
|mekhanite |
|||
{{!}} {{{species}}} |
|||
| = |
|||
}} |
|||
|#default = [[Category:Character Panel pages with invalid background color]] |
|||
{{#if:{{{domain|}}}| |
|||
}}}}</includeonly> |
|||
{{!}}- |
|||
! scope="row" {{!}} Domain |
|||
{{!}} {{{domain}}} |
|||
}} |
|||
{{#if:{{{occupation|}}}| |
|||
{{!}}- |
|||
! scope="row" {{!}} Occupation |
|||
{{!}} {{{occupation}}} |
|||
}} |
|||
{{#if:{{{skills|}}}| |
|||
{{!}}- |
|||
! scope="row" {{!}} Skills |
|||
{{!}} {{{skills}}} |
|||
}} |
|||
{{#if:{{{feats|}}}| |
|||
{{!}}- |
|||
! scope="row" {{!}} Feats |
|||
{{!}} {{{feats}}} |
|||
}} |
|||
|}</includeonly> |
|||
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.