Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
<includeonly>
<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);"
{| class="character-infobox" style="--infobox-color: {{{color|#555}}}; --infobox-text: {{{textcolor|white}}};"
|+ class="character-infobox-title" | {{{title|{{PAGENAME}}}}}
|-
|-
| colspan="2" class="character-infobox-image" |
<!-- MAIN TITLE HEADER (Controls main banner color (e.g #6E473B) & title text (e.g #ffffff)) -->
[[File:{{{image|No image.png}}}|250px]]
! colspan="2" style="background-color: #6E473B; color: #ffffff; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid #4D3129;" | {{{Name|{{PAGENAME}}}}}
|-
|-
! Religion
 
| {{{religion|Unknown}}}
<!-- IMAGE ROW (Controls background area around your flag/logo file) -->
 
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|Image.png}}}|280px|center]]
|-
|-
! Gender
 
| {{{gender|Unknown}}}
<!-- DATA ROWS BREAKDOWN: -->
<!-- "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: #F5EFEA; width: 40%; border-bottom: 1px solid #e2e8f0;" | Titles
 
| {{{Titles|TBA}}}
|-
|-
! Ethnicity
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Race
| {{{ethnicity|Unknown}}}
 
| {{{Race|TBA}}}
|-
|-
! Title(s)
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Ethnicity
| {{{titles|Unknown}}}
 
| {{{Ethnicity|TBA}}}
|-
|-
! Age
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Gender
| {{{age|Unknown}}}
 
| {{{Gender|TBA}}}
|-
|-
! Nation
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Age
| {{{Nation|Unknown}}}
 
| {{#if: {{{BirthYear|}}} | {{#expr: {{CurrentLoreYear}} - {{{BirthYear}}} }} | {{{age|TBA}}} }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Date of Birth
 
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}, {{#if: {{{BirthMonth|}}} | {{{BirthMonth}}}, | }} Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Nationality
 
| {{{Nationality|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Nation
 
| {{{Nation|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Occupation
 
| {{{Occupation|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Religion
 
| {{{Religion|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Languages
 
| {{{Languages|TBA}}}
|-
|-
! Status
! style="text-align: left; padding: 0.4em 0.6em; background-color: #F5EFEA; border-bottom: 1px solid #e2e8f0;" | Player
| {{{status|Unknown}}}
 
| style="font-family: monospace;" | {{{Player|TBA}}}
|-
|-
! Player
| {{{player|Unknown}}}
|}
</includeonly>


<noinclude>
<!-- 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: #F5EFEA; border-bottom: 1px solid #1a1a1a;" | Status
 
| style="padding: 0.4em 0.6em; font-weight: bold; color: #2f855a; border-bottom: 1px solid #1a1a1a;" | {{{Status|Alive}}}
|}</includeonly><noinclude>


== Infobox Character ==
== Infobox Character ==


This template displays information about a character.
This template displays automated information about a character page. It dynamically calculates a character's current age based on the server timeline tracking clock.
 
The appearance of the infobox can be customised using the <code>color</code> and <code>textcolor</code> parameters.


== Usage ==
== Usage ==


Copy and paste:
Copy and paste this clean code snippet straight onto character profiles:


<pre>
<pre>
{{Infobox Character
{{Infobox Character
| title =
| Name        =  
| image =
| Image      = Image.png
| color =
| Titles      =  
| textcolor =
| Race        =  
| religion =
| Ethnicity  =  
| gender =
| Gender      =  
| ethnicity =
| BirthMonth  =  
| titles =
| BirthYear  =  
| age =
| Nationality =  
| status =
| Nation      =  
| player =
| Occupation  =  
| Religion    =
| Languages  =
| Player      =
| Status      = Alive
}}
}}
</pre>
</pre>


== Example ==
== Input Instructions for Dates ==
 
{{Infobox Character
| title = XQILL275
| image = Screenshot_2026-06-29_231702.png
| color = #8B0000
| textcolor = white
| religion = The Old Faith
| gender = Female
| ethnicity = Human
| titles = Pog
| age = 9
| Nation = fuck
| status = Alive
| player = Xqill
}}
 
== 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
|-
| 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 ==


<templatedata>
* '''BirthMonth''': Type the precise double-dash formatted months from the event categories (e.g., <code>January--February</code>, <code>March--April</code>).
{
"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"
},
"Nation": {
"label": "Nation",
"description": "Link to the Nation they are a part of or None",
"type": "string",
"default": "None"
},
"status": {
"label": "Status",
"description": "Whether the character is alive, deceased, missing, etc.",
"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",
        "Nation",
"status",
"player"
]
}
</templatedata>


* '''BirthYear''': Use a simple whole integer. Use '''negative numbers''' for years before server launch (e.g., <code>-19</code> prints out as ''Era Vetus, Year 19''). Use '''positive numbers''' for years since the server launched (e.g., <code>2</code> prints out as ''Era Nova, Year 2'').
</noinclude>
</noinclude>

Revision as of 14:24, 19 August 2026


Infobox Character

This template displays automated information about a character page. It dynamically calculates a character's current age based on the server timeline tracking clock.

Usage

Copy and paste this clean code snippet straight onto character profiles:

{{Infobox Character
| Name        = 
| Image       = Image.png
| Titles      = 
| Race        = 
| Ethnicity   = 
| Gender      = 
| BirthMonth  = 
| BirthYear   = 
| Nationality = 
| Nation      = 
| Occupation  = 
| Religion    = 
| Languages   = 
| Player      = 
| Status      = Alive
}}

Input Instructions for Dates

  • BirthMonth: Type the precise double-dash formatted months from the event categories (e.g., January--February, March--April).
  • BirthYear: Use a simple whole integer. Use negative numbers for years before server launch (e.g., -19 prints out as Era Vetus, Year 19). Use positive numbers for years since the server launched (e.g., 2 prints out as Era Nova, Year 2).