Template:Infobox Character: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{| class=" | <includeonly> | ||
|+ {{{title|{{PAGENAME}}}}} | {| class="infobox" style="float:right; width:300px; margin-left:1em; border:2px solid {{{color|#555}}};" | ||
|+ style="background:{{{color|#555}}}; color:{{{textcolor|white}}}; font-size:120%; font-weight:bold;" | {{{title|{{PAGENAME}}}}} | |||
|- | |- | ||
! Image | ! Image | ||
| Line 6: | Line 7: | ||
|- | |- | ||
! Religion | ! Religion | ||
| {{{ | | {{{religion|Unknown}}} | ||
|- | |- | ||
! Gender | ! Gender | ||
| {{{ | | {{{gender|Unknown}}} | ||
|- | |- | ||
! Ethnicity | ! Ethnicity | ||
| {{{ | | {{{ethnicity|Unknown}}} | ||
|- | |- | ||
! Title(s) | ! Title(s) | ||
| {{{ | | {{{titles|Unknown}}} | ||
|- | |- | ||
! Age | ! Age | ||
| {{{ | | {{{age|Unknown}}} | ||
|- | |- | ||
! Player | ! Player | ||
| {{{ | | {{{player|Unknown}}} | ||
|} | |} | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
== Infobox Character == | |||
This template displays information about a character. | |||
The appearance of the infobox can be customised using the <code>color</code> and <code>textcolor</code> parameters. | |||
== Usage == | |||
Copy and paste: | |||
<pre> | |||
{{Infobox Character | |||
| title = | |||
| image = | |||
| color = | |||
| textcolor = | |||
| religion = | |||
| gender = | |||
| ethnicity = | |||
| titles = | |||
| age = | |||
| player = | |||
}} | |||
</pre> | |||
== Example == | |||
{{Infobox Character | |||
| title = Arlen Voss | |||
| image = No image.png | |||
| color = #8B0000 | |||
| textcolor = white | |||
| religion = The Old Faith | |||
| gender = Male | |||
| ethnicity = Human | |||
| titles = Knight Commander | |||
| age = 34 | |||
| player = John | |||
}} | |||
== Parameters == | |||
{| class="wikitable" | |||
! Parameter !! Description !! Example | |||
|- | |||
| title || Character name displayed at the top || Arlen Voss | |||
|- | |||
| image || Character image filename || Arlen.png | |||
|- | |||
| color || Header and border colour || #8B0000 | |||
|- | |||
| textcolor || Header text colour || white | |||
|- | |||
| religion || Character's religion || The Old Faith | |||
|- | |||
| gender || Character's gender || Male | |||
|- | |||
| ethnicity || Character's species/ethnicity || Human | |||
|- | |||
| titles || Character titles or ranks || Knight Commander | |||
|- | |||
| age || Character age || 34 | |||
|- | |||
| player || Player controlling the character || John | |||
|} | |||
== TemplateData == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"title": { | |||
"label": "Title", | |||
"description": "Character name displayed at the top of the infobox.", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Character image filename.", | |||
"type": "wiki-file-name" | |||
}, | |||
"color": { | |||
"label": "Infobox colour", | |||
"description": "Colour of the header and border.", | |||
"type": "string", | |||
"default": "#555" | |||
}, | |||
"textcolor": { | |||
"label": "Header text colour", | |||
"description": "Colour of the title text.", | |||
"type": "string", | |||
"default": "white" | |||
}, | |||
"religion": { | |||
"label": "Religion", | |||
"description": "Character's religion.", | |||
"type": "string", | |||
"default": "Unknown" | |||
}, | |||
"gender": { | |||
"label": "Gender", | |||
"description": "Character's gender.", | |||
"type": "string", | |||
"default": "Unknown" | |||
}, | |||
"ethnicity": { | |||
"label": "Ethnicity", | |||
"description": "Character's ethnicity or species.", | |||
"type": "string", | |||
"default": "Unknown" | |||
}, | |||
"titles": { | |||
"label": "Titles", | |||
"description": "Character titles, ranks, or roles.", | |||
"type": "string", | |||
"default": "Unknown" | |||
}, | |||
"age": { | |||
"label": "Age", | |||
"description": "Character's age.", | |||
"type": "string", | |||
"default": "Unknown" | |||
}, | |||
"player": { | |||
"label": "Player", | |||
"description": "Person controlling the character.", | |||
"type": "string", | |||
"default": "Unknown" | |||
} | |||
}, | |||
"description": "An infobox for character information.", | |||
"paramOrder": [ | |||
"title", | |||
"image", | |||
"color", | |||
"textcolor", | |||
"religion", | |||
"gender", | |||
"ethnicity", | |||
"titles", | |||
"age", | |||
"player" | |||
] | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 18:29, 16 July 2026
Infobox Character
This template displays information about a character.
The appearance of the infobox can be customised using the color and textcolor parameters.
Usage
Copy and paste:
{{Infobox Character
| title =
| image =
| color =
| textcolor =
| religion =
| gender =
| ethnicity =
| titles =
| age =
| player =
}}
Example
| Image | File:No image.png |
|---|---|
| Religion | The Old Faith |
| Gender | Male |
| Ethnicity | Human |
| Title(s) | Knight Commander |
| Age | 34 |
| Player | John |
Parameters
| Parameter | Description | Example |
|---|---|---|
| title | Character name displayed at the top | Arlen Voss |
| image | Character image filename | Arlen.png |
| color | Header and border colour | #8B0000 |
| textcolor | Header text colour | white |
| religion | Character's religion | The Old Faith |
| gender | Character's gender | Male |
| ethnicity | Character's species/ethnicity | Human |
| titles | Character titles or ranks | Knight Commander |
| age | Character age | 34 |
| player | Player controlling the character | John |
TemplateData
An infobox for character information.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Character name displayed at the top of the infobox. | String | optional |
| Image | image | Character image filename. | File | optional |
| Infobox colour | color | Colour of the header and border.
| String | optional |
| Header text colour | textcolor | Colour of the title text.
| String | optional |
| Religion | religion | Character's religion.
| String | optional |
| Gender | gender | Character's gender.
| String | optional |
| Ethnicity | ethnicity | Character's ethnicity or species.
| String | optional |
| Titles | titles | Character titles, ranks, or roles.
| String | optional |
| Age | age | Character's age.
| String | optional |
| Player | player | Person controlling the character.
| String | optional |