Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Character Panel: Difference between revisions

Template page
Content deleted Content added
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>&lt;br&gt;</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><includeonly><templatestyles src="Template:Character Panel/styles.css" />
</noinclude>

⚫
<includeonly><templatestyles src="Template:Character Panel/styles.css" />
<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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Imageimage

Filename of the character's image (e.g., Character.jpg)

Filesuggested
Image alternative textimagealt

Describe the portrait or identifying image for readers who cannot see it.

Stringoptional
Full Namefullname

The character's full name

Stringsuggested
Aliasalias

Alternative names or aliases the character is known by. Enter one alias per line.

Stringoptional
Pronounspronouns

Character's pronouns

Stringoptional
Speciesspecies

Character's species/race

Stringoptional
Domaindomain

Archon or non-reality character label for a home plane of existence (ex. Nevermeant)

Stringoptional
Affiliationaffiliation

Groups, organizations, or factions the character is affiliated with

Example
Kalmaktama, Mekhanite Empire, The Foundation
Stringoptional
Occupationoccupation

The character's job or role

Stringoptional
Skillsskills

Notable abilities or skills the character possesses

Example
Carnomancy, Thaumaturgy, Reality Bending
Stringoptional
Featsfeats

Notable accomplishments or achievements

Stringoptional
Background Colorbackgroundcolor

Panel color theme. Leave blank for the default. Invalid values place the page in a tracking category.

Suggested values
crimson azure verdant midnight mekhanite
Stringoptional

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.