Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
<includeonly>{| style="float: right; width: 300px; margin: 0 0 1em 1em; border: 1px solid #1a1a1a; background-color: #f8f9fa; font-size: 88%; line-height: 1.5em; border-collapse: collapse; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"
<includeonly>
{| class="character-infobox" style="--infobox-color: {{{color|#555}}}; --infobox-text: {{{textcolor|white}}};"
|+ class="character-infobox-title" | {{{title|{{PAGENAME}}}}}
|-
|-
<!-- MAIN TITLE HEADER (Customizable main banner background color & title text color) -->
| colspan="2" class="character-infobox-image" |
! colspan="2" style="background-color: {{{Color|{{{color|#6E473B}}}}}}; color: {{{TextColor|{{{textcolor|#ffffff}}}}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColor|#4D3129}}};" | {{{Name|{{{title|{{PAGENAME}}}}}}}}}
[[File:{{{image|No image.png}}}|250px]]
|-
|-
 
! Religion
<!-- IMAGE ROW (Controls background area around your flag/logo file) -->
| {{{religion|Unknown}}}
 
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|{{{image|Image.png}}}}}}}|280px|center]]
|-
|-
 
! Gender
<!-- DATA ROWS BREAKDOWN: -->
| {{{gender|Unknown}}}
<!-- "background-color: #F5EFEA" controls the faint mahogany/leather tint on the left labels, change this to whatever colour you'd like -->
<!-- "border-bottom: 1px solid #e2e8f0" controls the thin divider lines between cells -->
<!-- If you want to change the text directly through source code ( u dont have to, you can just double click on normal edit mode ), only change text after the | -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Titles
 
| {{{Titles|{{{titles|TBA}}}}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Race
! Ethnicity
 
| {{{ethnicity|Unknown}}}
| {{{Race|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Ethnicity
! Title(s)
 
| {{{titles|Unknown}}}
| {{{Ethnicity|{{{ethnicity|TBA}}}}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Gender
! Age
 
| {{{age|Unknown}}}
| {{{Gender|{{{gender|TBA}}}}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Age
! Nation
 
| {{{Nation|Unknown}}}
| {{#if: {{{BirthYear|}}} | {{#expr: {{CurrentLoreYear}} - {{{BirthYear}}} }} <span style="color: #718096; font-size: 90%; margin-left: 0.3em;">(b. {{#if: {{{BirthMonth|}}} | {{{BirthMonth}}}, | }}{{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} EV | EN {{{BirthYear}}} }})</span> | {{{age|TBA}}} }}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Nationality
! Status
 
| {{{status|Unknown}}}
| {{{Nationality|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Nation
! Player
 
| {{{player|Unknown}}}
| {{{Nation|TBA}}}
|}
|-
</includeonly>
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Occupation
 
| {{{Occupation|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Religion
 
| {{{Religion|{{{religion|TBA}}}}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Languages


| {{{Languages|TBA}}}
<noinclude>
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Player
 
| style="font-family: monospace;" | {{{Player|{{{player|TBA}}}}}}
|-
 
<!-- BOTTOM STATUS ROW (Controls the final row border. Players can type Status = Dead on their own character page if things go south) -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #1a1a1a;" | Status
 
| style="padding: 0.4em 0.6em; font-weight: bold; color: {{#ifeq: {{lowercase: {{{Status|{{{status|Alive}}}}}} }} | dead | #e53e3e | #2f855a }}; border-bottom: 1px solid #1a1a1a;" | {{{Status|{{{status|Alive}}}}}}
|}</includeonly><noinclude>


== Infobox Character ==
== Infobox Character ==
Line 69: Line 38:
This template displays information about a character.
This template displays information about a character.


The appearance of the infobox can be customised using the <code>color</code> (or <code>Color</code>) and <code>textcolor</code> (or <code>TextColor</code>) parameters.
The appearance of the infobox can be customised using the <code>color</code> and <code>textcolor</code> parameters.


== Usage ==
== Usage ==
Line 77: Line 46:
<pre>
<pre>
{{Infobox Character
{{Infobox Character
| Color      = #6E473B
| title =
| TextColor  = #ffffff
| image =
| BorderColor = #4D3129
| color =
| LabelColor  = #F5EFEA
| textcolor =
| Name        =  
| religion =
| Image      = Image.png
| gender =
| Titles      =  
| ethnicity =
| Race        =  
| titles =
| Ethnicity  =  
| age =
| Gender      =  
| status =
| BirthMonth  =  
| player =
| BirthYear  =
| Nationality =
| Nation      =
| Occupation  =
| Religion    =
| Languages  =
| Player      =
| Status      = Alive
}}
}}
</pre>
</pre>
Line 102: Line 63:


{{Infobox Character
{{Infobox Character
| title = Henry Westcroft
| title = XQILL275
| image = Image.png
| image = Screenshot_2026-06-29_231702.png
| color = #6E473B
| color = #8B0000
| textcolor = white
| textcolor = white
| religion = Vormgeloof
| religion = The Old Faith
| gender = Male
| gender = Female
| ethnicity = Koperdamer
| ethnicity = Human
| titles = Chief Artificer, Head Architect
| titles = Pog
| BirthMonth = March--April
| age = 9
| BirthYear = -19
| Nation = fuck
| Nation = Technate of Koperdam
| status = Alive
| status = Alive
| player = _baseplate
| player = Xqill
}}
}}


Line 122: Line 82:
! Parameter !! Description !! Example
! Parameter !! Description !! Example
|-
|-
 
| title || Character name displayed at the top || Arlen Voss
| Color || Hex code for the top header background colour || #6E473B
|-
 
| TextColor || Color code for the title name text || white
|-
 
| BorderColor || Hex code for the thick accent bar below the header || #4D3129
|-
 
| LabelColor || Hex code for the faint background tint on the left labels || #F5EFEA
|-
 
| Name / title || Character name displayed at the top || Arlen Voss
|-
|-
 
| image || Character image filename || Arlen.png
| Image / image || Character image filename || Arlen.png
|-
 
| Titles / titles || Character titles or ranks || Knight Commander
|-
 
| Race || Character race || Human
|-
 
| Ethnicity / ethnicity || Character's species/ethnicity || Koperdamer
|-
 
| Gender / gender || Character's gender || Male
|-
|-
 
| color || Header and border colour || #8B0000
| BirthMonth || In-universe months matching timeline chronicles || March--April
|-
|-
 
| textcolor || Header text colour || white
| BirthYear || Birth year. Use negative numbers for EV and positive for EN || -19
|-
|-
 
| religion || Character's religion || The Old Faith
| age || Old static age parameter (falls back seamlessly if BirthYear isn't filled) || 34
|-
|-
 
| gender || Character's gender || Male
| Nationality || Character's country of ancestry || Koperdamer
|-
|-
 
| ethnicity || Character's species/ethnicity || Human
| Nation || Link to the Nation they are a part of || Technate of Koperdam
|-
|-
 
| titles || Character titles or ranks || Knight Commander
| Occupation || Character's job or core duty || Chief Artificer
|-
|-
 
| age || Character age || 34
| Religion / religion || Character's religion || Vormgeloof
|-
|-
 
| Nation || Link to the Nation they are a part of or None || None
| Languages || Languages spoken by the character || Common Tongue
|-
|-
 
| status || Whether the character is alive, deceased, missing, etc. || Alive
| Player / player || Player controlling the character || John
|-
|-
 
| player || Player controlling the character || John
| Status / status || Whether the character is alive, deceased, missing, etc. || Alive
|}
|}


Line 188: Line 112:
{
{
"params": {
"params": {
"Color": {
"label": "Banner Background Color",
"description": "Hex code for the top header background background (e.g., #6E473B).",
"type": "string"
},
"color": {
"label": "Infobox colour (Legacy)",
"description": "Legacy parameter for banner colour.",
"type": "string"
},
"TextColor": {
"label": "Banner Text Color",
"description": "Color code for the title name text (e.g., #ffffff or white).",
"type": "string"
},
"textcolor": {
"label": "Header text colour (Legacy)",
"description": "Legacy parameter for title text color.",
"type": "string"
},
"BorderColor": {
"label": "Banner Underline Color",
"description": "Hex code for the thick accent bar below the header (e.g., #4D3129).",
"type": "string"
},
"LabelColor": {
"label": "Label Background Color",
"description": "Hex code for the faint background tint on the left side labels (e.g., #F5EFEA).",
"type": "string"
},
"Name": {
"label": "Character Name",
"description": "The full name of the character.",
"type": "string"
},
"title": {
"title": {
"label": "Title (Legacy)",
"label": "Title",
"description": "Legacy character name field.",
"description": "Character name displayed at the top of the infobox.",
"type": "string"
"type": "string"
},
"Image": {
"label": "Image File",
"description": "Character profile image filename.",
"type": "wiki-file-name"
},
},
"image": {
"image": {
"label": "Image (Legacy)",
"label": "Image",
"description": "Legacy character image filename field.",
"description": "Character image filename.",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"Titles": {
"color": {
"label": "Titles/Ranks",
"label": "Infobox colour",
"description": "Character titles, ranks, or roles.",
"description": "Colour of the header and border.",
"type": "string"
"type": "string",
"default": "#555"
},
},
"titles": {
"textcolor": {
"label": "Titles (Legacy)",
"label": "Header text colour",
"description": "Legacy titles field.",
"description": "Colour of the title text.",
"type": "string"
"type": "string",
"default": "white"
},
},
"Race": {
"religion": {
"label": "Race",
"label": "Religion",
"description": "The character's primary species/race.",
"description": "Character's religion.",
"type": "string"
"type": "string",
"default": "Unknown"
},
},
"Ethnicity": {
"gender": {
"label": "Ethnicity",
"description": "The character's specific ethnicity or heritage background.",
"type": "string"
},
"ethnicity": {
"label": "Ethnicity (Legacy)",
"description": "Legacy ethnicity field.",
"type": "string"
},
"Gender": {
"label": "Gender",
"label": "Gender",
"description": "Character's gender.",
"description": "Character's gender.",
"type": "string"
"type": "string",
"default": "Unknown"
},
},
"gender": {
"ethnicity": {
"label": "Gender (Legacy)",
"label": "Ethnicity",
"description": "Legacy gender field.",
"description": "Character's ethnicity or species.",
"type": "string"
"type": "string",
"default": "Unknown"
},
},
"BirthMonth": {
"titles": {
"label": "Birth Month",
"label": "Titles",
"description": "In-universe months matching the timeline chronicles (e.g., March--April).",
"description": "Character titles, ranks, or roles.",
"type": "string"
"type": "string",
},
"default": "Unknown"
"BirthYear": {
"label": "Birth Year",
"description": "Use negative numbers for Era Vetus (e.g., -19) and positive numbers for Era Nova (e.g., 2).",
"type": "number"
},
},
"age": {
"age": {
"label": "Age (Legacy/Fallback)",
"label": "Age",
"description": "Legacy manual entry field for static character age.",
"description": "Character's age.",
"type": "string"
"type": "string",
},
"default": "Unknown"
"Nationality": {
"label": "Nationality",
"description": "Character's official nationality affiliation.",
"type": "string"
},
},
"Nation": {
"Nation": {
"label": "Nation",
"label": "Nation",
"description": "Link to the Nation they are a part of or None.",
"description": "Link to the Nation they are a part of or None",
"type": "string"
"type": "string",
"default": "None"
},
},
"Occupation": {
"status": {
"label": "Occupation",
"label": "Status",
"description": "Core profession or job details.",
"description": "Whether the character is alive, deceased, missing, etc.",
"type": "string"
"type": "string",
},
"default": "Unknown"
"Religion": {
"label": "Religion",
"description": "Character's practicing religion.",
"type": "string"
},
"religion": {
"label": "Religion (Legacy)",
"description": "Legacy religion field.",
"type": "string"
},
},
"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",
        "Nation",
"status",
"player"
]
}
</templatedata>
</noinclude>

Revision as of 13:52, 19 August 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 =
| status =
| player =
}}

Example

XQILL275

Religion The Old Faith
Gender Female
Ethnicity Human
Title(s) Pog
Age 9
Nation fuck
Status Alive
Player Xqill



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
Nation Link to the Nation they are a part of or None None
status Whether the character is alive, deceased, missing, etc. Alive
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
NationNation

Link to the Nation they are a part of or None

Default
None
Stringoptional
Statusstatus

Whether the character is alive, deceased, missing, etc.

Default
Unknown
Stringoptional
Playerplayer

Person controlling the character.

Default
Unknown
Stringoptional