Template:Character Panel: Difference between revisions
More actions
No edit summary |
added mekhanite color |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
{{Character Panel |
{{Character Panel |
||
|image= |
|image= |
||
| ⚫ | |||
|fullname= |
|fullname= |
||
|alias= |
|alias= |
||
|pronouns= |
|||
|species= |
|species= |
||
|domain= |
|domain= |
||
| Line 13: | Line 15: | ||
|skills= |
|skills= |
||
|feats= |
|feats= |
||
| ⚫ | |||
}} |
}} |
||
</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", |
|||
| ⚫ | |||
| ⚫ | |||
"type": "string" |
|||
}, |
|||
| ⚫ | |||
"fullname": { |
|||
}, |
|||
| ⚫ | |||
"alias": { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
|||
"alias": { |
|||
"label": "Alias", |
|||
| ⚫ | |||
| ⚫ | |||
"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", |
|||
| ⚫ | |||
| ⚫ | |||
"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" |
|||
}, |
|||
}, |
|||
| ⚫ | |||
"occupation": { |
|||
| ⚫ | |||
"label": "Occupation", |
|||
| ⚫ | |||
"description": "The character's job or role", |
|||
"type": "string" |
|||
}, |
|||
}, |
|||
| ⚫ | |||
"skills": { |
|||
| ⚫ | |||
| ⚫ | |||
"description": "Legacy parameter, retained for compatibility. Citizen controls the background colour.", |
|||
| ⚫ | |||
| ⚫ | |||
"type": "string", |
|||
}, |
|||
"example": "Carnomancy, Thaumaturgy, Reality Bending" |
|||
| ⚫ | |||
}, |
|||
"label": "Image alternative text", |
|||
| ⚫ | |||
| ⚫ | |||
"label": "Feats", |
|||
| ⚫ | |||
} |
|||
| ⚫ | |||
} |
|||
}, |
|||
"backgroundcolor": { |
|||
| ⚫ | |||
"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> |
||
| ⚫ | |||
Styling follows Citizen and stacks on mobile. |
|||
| ⚫ | |||
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" /> |
||
{| class="infobox-character |
{| class="infobox-character {{#switch:{{lc:{{{backgroundcolor|}}}}} |
||
|crimson |
|||
|+ Character information |
|||
|azure |
|||
|verdant |
|||
|midnight |
|||
|mekhanite = infobox-character--{{lc:{{{backgroundcolor|}}}}} |
|||
|#default = |
|||
}}" |
|||
|+ General Information |
|||
{{#if:{{{image|}}}| |
{{#if:{{{image|}}}| |
||
{{!}}- |
{{!}}- |
||
| Line 97: | Line 123: | ||
! scope="row" {{!}} Alias |
! scope="row" {{!}} Alias |
||
{{!}} {{{alias}}} |
{{!}} {{{alias}}} |
||
}} |
|||
{{#if:{{{pronouns|}}}| |
|||
{{!}}- |
|||
! scope="row" {{!}} Pronouns |
|||
{{!}} {{{pronouns}}} |
|||
}} |
}} |
||
{{#if:{{{affiliation|}}}| |
{{#if:{{{affiliation|}}}| |
||
| Line 128: | Line 159: | ||
{{!}} {{{feats}}} |
{{!}} {{{feats}}} |
||
}} |
}} |
||
|}{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{#switch:{{lc:{{{backgroundcolor|}}}}} |
|||
| ⚫ | |||
|crimson |
|||
|azure |
|||
|verdant |
|||
|midnight |
|||
|mekhanite |
|||
| = |
|||
|#default = [[Category:Character Panel pages with invalid background color]] |
|||
}}}} |
|||
| ⚫ | |||
Revision as of 01:15, 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.