Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| class="wikitable" style="float:right; width:300px; margin-left:1em;"
<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}}}
| {{{religion|Unknown}}}
|-
|-
! Gender
! Gender
| {{{Gender|Unknown}}}
| {{{gender|Unknown}}}
|-
|-
! Ethnicity
! Ethnicity
| {{{Ethnicity|Unknown}}}
| {{{ethnicity|Unknown}}}
|-
|-
! Title(s)
! Title(s)
| {{{Title(s)|Unknown}}}
| {{{titles|Unknown}}}
|-
|-
! Age
! Age
| {{{Age|Unknown}}}
| {{{age|Unknown}}}
|-
|-
! Player
! Player
| {{{Player|Unknown}}}
| {{{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>
{
{
    "description": "Displays a character infobox.",
"params": {
    "params": {
"title": {
        "image": {
"label": "Title",
            "label": "Image",
"description": "Character name displayed at the top of the infobox.",
            "description": "Image filename",
"type": "string"
            "type": "wiki-file-name"
},
        },
"image": {
        "Religion": {
"label": "Image",
            "label": "Religion",
"description": "Character image filename.",
            "type": "string"
"type": "wiki-file-name"
        },
},
        "Gender": {
"color": {
            "label": "Gender",
"label": "Infobox colour",
            "type": "string"
"description": "Colour of the header and border.",
        },
"type": "string",
        "Ethnicity": {
"default": "#555"
            "label": "Ethnicity",
},
            "type": "string"
"textcolor": {
        },
"label": "Header text colour",
        "Title(s)": {
"description": "Colour of the title text.",
            "label": "Title(s)",
"type": "string",
            "type": "string"
"default": "white"
        },
},
        "Age": {
"religion": {
            "label": "Age",
"label": "Religion",
            "type": "number"
"description": "Character's religion.",
        },
"type": "string",
        "Player": {
"default": "Unknown"
            "label": "Player",
},
            "type": "string"
"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

Arlen Voss
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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Character name displayed at the top of the infobox.

Stringoptional
Imageimage

Character image filename.

Fileoptional
Infobox colourcolor

Colour of the header and border.

Default
#555
Stringoptional
Header text colourtextcolor

Colour of the title text.

Default
white
Stringoptional
Religionreligion

Character's religion.

Default
Unknown
Stringoptional
Gendergender

Character's gender.

Default
Unknown
Stringoptional
Ethnicityethnicity

Character's ethnicity or species.

Default
Unknown
Stringoptional
Titlestitles

Character titles, ranks, or roles.

Default
Unknown
Stringoptional
Ageage

Character's age.

Default
Unknown
Stringoptional
Playerplayer

Person controlling the character.

Default
Unknown
Stringoptional