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
Saarn (talk | contribs)
No edit summary
Saarn (talk | contribs)
some sections are being evil and being too big
 
(4 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>
Line 23: 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 33: 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"
"type": "string"
},
},
Line 42: Line 55:
"domain": {
"domain": {
"label": "Domain",
"label": "Domain",
"description": "Archon or non-reality character label for a home plane of existance (ex. Nevermeant)",
"description": "Archon or non-reality character label for a home plane of existence (ex. Nevermeant)",
"type": "string"
"type": "string"
},
},
Line 69: Line 82:
"backgroundcolor": {
"backgroundcolor": {
"label": "Background Color",
"label": "Background Color",
"description": "Legacy parameter, retained for compatibility. Citizen controls the background colour.",
"description": "Panel color theme. Leave blank for the default. Invalid values place the page in a tracking category.",
"type": "string"
},
"imagealt": {
"label": "Image alternative text",
"description": "Describe the portrait or identifying image for readers who cannot see it.",
"type": "string",
"type": "string",
"suggestedvalues": ["crimson", "azure", "verdant", "midnight", "mekhanite"]
"suggested": true
}
}
}
}
}</templatedata>
}</templatedata>
The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text. Styling follows Citizen and stacks on mobile.
[[Category:Infobox templates]]
</noinclude>


Styling follows Citizen and stacks on mobile.
<includeonly><templatestyles src="Template:Character Panel/styles.css" />
{| class="infobox-character"
|+ General Information
{{#if:{{{image|}}}|
{{!}}-
{{!}} colspan="2" class="infobox-character__image" {{!}} [[File:{{{image}}}|260px|alt={{{imagealt|Portrait of {{{fullname|this character}}}}}}]]
}}
{{#if:{{{fullname|}}}|
{{!}}-
! scope="row" {{!}} Full name
{{!}} {{{fullname}}}
}}


The image parameter takes a bare filename; optional <code>imagealt=</code> provides alternative text.
{{#if:{{{alias|}}}|
{{!}}-
! scope="row" {{!}} Alias
{{!}} {{{alias}}}
}}


Allowed <code>backgroundcolor</code> values: crimson, azure, verdant, midnight, mekhanite.
{{#if:{{{affiliation|}}}|
Pages with any other value are listed in [[:Category:Character Panel pages with invalid background color]].
{{!}}-
! scope="row" {{!}} Affiliation
{{!}} {{{affiliation}}}
}}


[[Category:Infobox templates]]
{{#if:{{{species|}}}|
</noinclude>
{{!}}-
! scope="row" {{!}} Species
{{!}} {{{species}}}
}}


<includeonly><templatestyles src="Template:Character Panel/styles.css" />
{{#if:{{{domain|}}}|
<table class="infobox-character {{#switch:{{lc:{{{backgroundcolor|}}}}}
{{!}}-
|crimson
! scope="row" {{!}} Domain
|azure
{{!}} {{{domain}}}
|verdant
}}
|midnight

|mekhanite = infobox-character--{{lc:{{{backgroundcolor|}}}}}
{{#if:{{{occupation|}}}|
|#default =
{{!}}-
}}"><!--
! scope="row" {{!}} Occupation
--><caption>General Information</caption><!--
{{!}} {{{occupation}}}
-->{{#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:{{{alias|}}}|<tr><th scope="row">Alias</th><td>{{{alias}}}</td></tr>}}<!--
{{#if:{{{skills|}}}|
-->{{#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" {{!}} Skills
-->{{#if:{{{species|}}}|<tr><th scope="row">Species</th><td>{{{species}}}</td></tr>}}<!--
{{!}} {{{skills}}}
-->{{#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:{{{skills|}}}|<tr><th scope="row">Skills</th><td>{{{skills}}}</td></tr>}}<!--
{{#if:{{{feats|}}}|
-->{{#if:{{{feats|}}}|<tr><th scope="row">Feats</th><td>{{{feats}}}</td></tr>}}<!--
{{!}}-
--></table>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{lc:{{{backgroundcolor|}}}}}
! scope="row" {{!}} Feats
|crimson
{{!}} {{{feats}}}
|azure
}}
|verdant

|midnight
|}</includeonly>
|mekhanite
| =
|#default = [[Category:Character Panel pages with invalid background color]]
}}}}</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

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

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.

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.