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)
m removed old style sheet
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
[[Category:Templates]]
This is the "Character Panel" template.
This is the "Character Panel" template.
It should be called in the following format:
It should be called in the following format:
Line 5: Line 6:
{{Character Panel
{{Character Panel
|image=
|image=
|imagealt=
|fullname=
|fullname=
|alias=
|alias=
|status=
|pronouns=
|age=
|species=
|species=
|domain=
|domain=
Line 13: Line 18:
|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": {
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "Filename of the character's image (e.g., Character.jpg)",
"description": "Filename of the character's image (e.g., Character.jpg)",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
},
},
"fullname": {
"imagealt": {
"label": "Full Name",
"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",
"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"
},
},
"species": {
"alias": {
"label": "Species",
"label": "Alias",
"description": "Alternative names or aliases the character is known by. Enter one alias per line.",
"description": "Character's species/race",
"type": "string"
"type": "string"
},
},
"domain": {
"status": {
"label": "Domain",
"label": "Status",
"description": "Archon or non-reality character label for a home plane of existance (ex. Nevermeant)",
"description": "The character's current status",
"type": "string"
"type": "string",
"example": "Alive, Deceased, Missing"
},
},
"affiliation": {
"pronouns": {
"label": "Affiliation",
"label": "Pronouns",
"description": "Groups, organizations, or factions the character is affiliated with",
"description": "Character's pronouns",
"type": "string"
"type": "string"
},
},
"occupation": {
"age": {
"label": "Occupation",
"label": "Age",
"description": "The character's job or role",
"description": "The character's age",
"type": "string"
"type": "string",
},
"example": "27, Unknown, Approximately 300"
"skills": {
},
"label": "Skills",
"species": {
"description": "Notable abilities or skills the character possesses",
"type": "string"
"label": "Species",
"description": "Character's species/race",
},
"type": "string"
"feats": {
},
"label": "Feats",
"domain": {
"description": "Notable accomplishments or achievements",
"type": "string"
"label": "Domain",
"description": "Archon or non-reality character label for a home plane of existence (ex. Nevermeant)",
},
"type": "string"
"backgroundcolor": {
},
"label": "Background Color",
"affiliation": {
"description": "Legacy parameter, retained for compatibility. Citizen controls the background colour.",
"type": "string"
"label": "Affiliation",
"description": "Groups, organizations, or factions the character is affiliated with",
},
"type": "string",
"imagealt": {
"example": "Kalmaktama, Mekhanite Empire, The Foundation"
"label": "Image alternative text",
},
"description": "Describe the portrait or identifying image for readers who cannot see it.",
"occupation": {
"type": "string"
"label": "Occupation",
}
"description": "The character's job or role",
}
"type": "string"
},
"skills": {
"label": "Skills",
"description": "Notable abilities or skills the character possesses",
"type": "string",
"example": "Carnomancy, Thaumaturgy, Reality Bending"
},
"feats": {
"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.
[[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}}}
}}


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>.
{{#if:{{{alias|}}}|
{{!}}-
! scope="row" {{!}} Alias
{{!}} {{{alias}}}
}}


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


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


[[Category:Infobox templates]]
{{#if:{{{domain|}}}|
{{!}}-
! scope="row" {{!}} Domain
{{!}} {{{domain}}}
}}

{{#if:{{{occupation|}}}|
{{!}}-
! scope="row" {{!}} Occupation
{{!}} {{{occupation}}}
}}

{{#if:{{{skills|}}}|
{{!}}-
! scope="row" {{!}} Skills
{{!}} {{{skills}}}
}}

{{#if:{{{feats|}}}|
{{!}}-
! scope="row" {{!}} Feats
{{!}} {{{feats}}}
}}


{{Page metadata|page=Template:Character Panel|description=A reusable character facts panel with documented fields for names, images, affiliations and other details.}}
|}</includeonly>
</noinclude><includeonly>{{Infobox
|class=infobox-character
|category=Character Panel pages with invalid background color
|backgroundcolor={{{backgroundcolor|}}}
|image={{{image|}}}
|imagealt={{{imagealt|}}}
|defaultalt=Portrait of {{{fullname|this character}}}
|rows=<!--
-->{{Infobox row|label=Full name|value={{{fullname|}}}}}<!--
-->{{Infobox row|label=Alias|value={{{alias|}}}}}<!--
-->{{Infobox row|label=Status|value={{{status|}}}}}<!--
-->{{Infobox row|label=Pronouns|value={{{pronouns|}}}}}<!--
-->{{Infobox row|label=Age|value={{{age|}}}}}<!--
-->{{Infobox row|label=Affiliation|value={{{affiliation|}}}}}<!--
-->{{Infobox row|label=Species|value={{{species|}}}}}<!--
-->{{Infobox row|label=Domain|value={{{domain|}}}}}<!--
-->{{Infobox row|label=Occupation|value={{{occupation|}}}}}<!--
-->{{Infobox row|label=Skills|value={{{skills|}}}}}<!--
-->{{Infobox row|label=Feats|value={{{feats|}}}}}<!--
-->
}}</includeonly>

Latest revision as of 22:17, 23 November 2026

This is the "Character Panel" template. It should be called in the following format:

{{Character Panel
|image=
|imagealt=
|fullname=
|alias=
|status=
|pronouns=
|age=
|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
Statusstatus

The character's current status

Example
Alive, Deceased, Missing
Stringoptional
Pronounspronouns

Character's pronouns

Stringoptional
Ageage

The character's age

Example
27, Unknown, Approximately 300
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.