Template:Character Panel: Difference between revisions
More actions
DivošiRunner (talk | contribs) Polish the homepage and public search/link previews; keep template metadata scoped |
DivošiRunner (talk | contribs) Fix character-panel line breaks; support one item per line in all text fields |
||
| Line 40: | Line 40: | ||
"alias": { |
"alias": { |
||
"label": "Alias", |
"label": "Alias", |
||
"description": "Alternative names or aliases the character is known by", |
"description": "Alternative names or aliases the character is known by. Enter one alias per line.", |
||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
| Line 90: | Line 90: | ||
Styling follows Citizen and stacks on mobile. |
Styling follows Citizen and stacks on mobile. |
||
For multiple aliases or other text values, enter one item per line. Line breaks are preserved automatically; you do not need to add <code><br></code>. |
|||
The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text. |
The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text. |
||
| Line 99: | Line 101: | ||
{{Page metadata|page=Template:Character Panel|description=A reusable character facts panel with documented fields for names, images, affiliations and other details.}} |
{{Page metadata|page=Template:Character Panel|description=A reusable character facts panel with documented fields for names, images, affiliations and other details.}} |
||
| ⚫ | |||
</noinclude> |
|||
| ⚫ | |||
<table class="infobox-character {{#switch:{{lc:{{{backgroundcolor|}}}}} |
<table class="infobox-character {{#switch:{{lc:{{{backgroundcolor|}}}}} |
||
|crimson |
|crimson |
||
| Line 112: | Line 112: | ||
--><caption>General Information</caption><!-- |
--><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:{{{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>}}<!-- |
-->{{#if:{{{fullname|}}}|<tr><th scope="row">Full name</th><td>{{#tag:poem|{{{fullname}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{alias|}}}|<tr><th scope="row">Alias</th><td>{{{alias}}}</td></tr>}}<!-- |
-->{{#if:{{{alias|}}}|<tr><th scope="row">Alias</th><td>{{#tag:poem|{{{alias}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{pronouns|}}}|<tr><th scope="row">Pronouns</th><td>{{{pronouns}}}</td></tr>}}<!-- |
-->{{#if:{{{pronouns|}}}|<tr><th scope="row">Pronouns</th><td>{{#tag:poem|{{{pronouns}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{affiliation|}}}|<tr><th scope="row">Affiliation</th><td>{{{affiliation}}}</td></tr>}}<!-- |
-->{{#if:{{{affiliation|}}}|<tr><th scope="row">Affiliation</th><td>{{#tag:poem|{{{affiliation}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{species|}}}|<tr><th scope="row">Species</th><td>{{{species}}}</td></tr>}}<!-- |
-->{{#if:{{{species|}}}|<tr><th scope="row">Species</th><td>{{#tag:poem|{{{species}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{domain|}}}|<tr><th scope="row">Domain</th><td>{{{domain}}}</td></tr>}}<!-- |
-->{{#if:{{{domain|}}}|<tr><th scope="row">Domain</th><td>{{#tag:poem|{{{domain}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{occupation|}}}|<tr><th scope="row">Occupation</th><td>{{{occupation}}}</td></tr>}}<!-- |
-->{{#if:{{{occupation|}}}|<tr><th scope="row">Occupation</th><td>{{#tag:poem|{{{occupation}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{skills|}}}|<tr><th scope="row">Skills</th><td>{{{skills}}}</td></tr>}}<!-- |
-->{{#if:{{{skills|}}}|<tr><th scope="row">Skills</th><td>{{#tag:poem|{{{skills}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
-->{{#if:{{{feats|}}}|<tr><th scope="row">Feats</th><td>{{{feats}}}</td></tr>}}<!-- |
-->{{#if:{{{feats|}}}|<tr><th scope="row">Feats</th><td>{{#tag:poem|{{{feats}}}|compact=1|class=infobox-character__text}}</td></tr>}}<!-- |
||
--></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{lc:{{{backgroundcolor|}}}}} |
--></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{lc:{{{backgroundcolor|}}}}} |
||
|crimson |
|crimson |
||
Revision as of 19:51, 14 November 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. Enter one alias per line. | 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.
For multiple aliases or other text values, enter one item per line. Line breaks are preserved automatically; you do not need to add <br>.
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.