Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
<!-- DATA ROWS BREAKDOWN -->
<!-- DATA ROWS BREAKDOWN -->
{{#if: {{{Titles|}}} |
{{#if: {{{Titles|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Titles
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Titles
{{!}} {{{Titles}}}
{{!}} {{{Titles}}}
{{!}}-}}
{{!}}-}}
{{#if: {{{Race|}}} |
{{#if: {{{Race|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Race
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Race
{{!}} [[{{{Race}}}]]
{{!}} [[{{{Race}}}]]
{{!}}-}}
{{!}}-}}
{{#if: {{{Ethnicity|}}} |
{{#if: {{{Ethnicity|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Ethnicity
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Ethnicity
{{!}} {{{Ethnicity}}}
{{!}} {{{Ethnicity}}}
{{!}}-}}
{{!}}-}}
{{#if: {{{Gender|}}} |
{{#if: {{{Gender|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Gender
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Gender
{{!}} {{{Gender}}}
{{!}} {{{Gender}}}
{{!}}-}}
{{!}}-}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Age{{#if: {{{DeathYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(At Death)</span> }}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Age{{#if: {{{DeathYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(At Death)</span> }}
| {{#if: {{{BirthYear|}}} | {{#expr: ({{#if: {{{DeathYear|}}} | {{{DeathYear}}} | {{CurrentLoreYear}} }} - {{{BirthYear}}}) - ({{#if: {{{DeathYear|}}} | {{#switch: {{{DeathMonth|}}} | January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June--July = 7 | July--August = 8 | August--September = 9 | September--October = 10 | October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }} | {{CurrentLoreMonthNumber}} }} < {{#switch: {{{BirthMonth|}}} | January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June--July = 7 | July--August = 8 | August--September = 9 | September--October = 10 | October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }})}} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear]</span> }}
| {{#if: {{{BirthYear|}}} | {{#expr: ({{#if: {{{DeathYear|}}} | {{{DeathYear}}} | {{CurrentLoreYear}} }} - {{{BirthYear}}}) - ({{#if: {{{DeathYear|}}} | {{#switch: {{{DeathMonth|}}} | January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June--July = 7 | July--August = 8 | August--September = 9 | September--October = 10 | October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }} | {{CurrentLoreMonthNumber}} }} < {{#switch: {{{BirthMonth|}}} | January = 1 | January--February = 2 | February--March = 3 | March--April = 4 | April--May = 5 | May--June = 6 | June--July = 7 | July--August = 8 | August--September = 9 | September--October = 10 | October = 11 | October--November = 12 | November--December = 13 | Late December = 14 | 1 }})}} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear]</span> }}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Date of Birth
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Date of Birth
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear/BirthMonth]</span> }}
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear/BirthMonth]</span> }}
|-
|-
{{#if: {{{DeathYear|}}} |
{{#if: {{{DeathYear|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Date of Death
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Date of Death
{{!}} {{#ifexpr: {{{DeathYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{DeathMonth|}}} |, {{{DeathMonth}}} | }}, Year {{#ifexpr: {{{DeathYear}}} < 1 | {{#expr: abs({{{DeathYear}}}) }} | {{{DeathYear}}} }}
{{!}} {{#ifexpr: {{{DeathYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{DeathMonth|}}} |, {{{DeathMonth}}} | }}, Year {{#ifexpr: {{{DeathYear}}} < 1 | {{#expr: abs({{{DeathYear}}}) }} | {{{DeathYear}}} }}
{{!}}-}}
{{!}}-}}
{{#if: {{{Nationality|}}} |
{{#if: {{{Nationality|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Nationality
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Nationality
{{!}} {{{Nationality}}}
{{!}} {{{Nationality}}}
{{!}}-}}
{{!}}-}}
{{#if: {{{Nation|}}} |
{{#if: {{{Nation|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Nation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Nation
{{!}} [[{{{Nation}}}]]
{{!}} [[{{{Nation}}}]]
{{!}}-}}
{{!}}-}}
{{#if: {{{Occupation|}}} |
{{#if: {{{Occupation|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Occupation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Occupation
{{!}} {{{Occupation}}}
{{!}} {{{Occupation}}}
{{!}}-}}
{{!}}-}}
{{#if: {{{Religion|}}} |
{{#if: {{{Religion|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Religion
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Religion
{{!}} {{{Religion}}}
{{!}} {{{Religion}}}
{{!}}-}}
{{!}}-}}
{{#if: {{{Languages|}}} |
{{#if: {{{Languages|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Languages
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Languages
{{!}} {{{Languages}}}
{{!}} {{{Languages}}}
{{!}}-}}
{{!}}-}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Character Type
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Character Type
| {{{CharacterType|Primary Character}}}
| {{{CharacterType|Primary Character}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Player
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Player
| <span style="font-family: monospace;">{{#if: {{{Player|}}} | [[{{{Player}}}]] | <span style="color: #c53030; font-weight: bold;">[Missing Player]</span> }}</span>
| <span style="font-family: monospace;">{{#if: {{{Player|}}} | [[{{{Player}}}]] | <span style="color: #c53030; font-weight: bold;">[Missing Player]</span> }}</span>
|-
|-
<!-- BOTTOM STATUS ROW -->
<!-- BOTTOM STATUS ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #1a1a1a;" | Status
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; color: {{{LabelTextColour|#2d3748}}}; border-bottom: 1px solid #1a1a1a;" | Status
| style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{Status|{{{status|alive}}}}}}}}|alive=#2f855a|deceased|dead=#c53030|missing|unknown=#dd6b20|imprisoned|captured=#d69e2e|retired=#3182ce|undead=#805ad5|archived=#718096|#2f855a}};">{{{Status|{{{status|Alive}}}}}}</span>
| style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{Status|{{{status|alive}}}}}}}}|alive=#2f855a|deceased|dead=#c53030|missing|unknown=#dd6b20|imprisoned|captured=#d69e2e|retired=#3182ce|undead=#805ad5|archived=#718096|#2f855a}};">{{{Status|{{{status|Alive}}}}}}</span>
|}<!--
|}<!--
Line 83: Line 83:
<pre>
<pre>
{{Infobox Character
{{Infobox Character
| Colour       = #6E473B
| Colour         = #6E473B
| TextColour   = #ffffff
| TextColour     = #ffffff
| BorderColour = #4D3129
| BorderColour   = #4D3129
| LabelColour   = #F5EFEA
| LabelColour     = #F5EFEA
| LineColour   = #4D3129
| LabelTextColour = #2d3748
| Name         =  
| LineColour     = #4D3129
| Image         = Image.png
| Name           =  
| Titles       =  
| Image           = Image.png
| Race         =  
| Titles         =  
| Ethnicity     =  
| Race           =  
| Gender       =  
| Ethnicity       =  
| BirthMonth   =  
| Gender         =  
| BirthYear     =  
| BirthMonth     =  
| DeathMonth   =  
| BirthYear       =  
| DeathYear     =  
| DeathMonth     =  
| Nationality   =  
| DeathYear       =  
| Nation       =  
| Nationality     =  
| Occupation   =  
| Nation         =  
| Religion     =  
| Occupation     =  
| Languages     =  
| Religion       =  
| CharacterType = Primary Character
| Languages       =  
| Player       =  
| CharacterType   = Primary Character
| Status       = Alive
| Player         =  
| Status         = Alive
}}
}}
</pre>
</pre>
Line 118: Line 119:
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar below the header.", "type": "string", "suggested": true },
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar below the header.", "type": "string", "suggested": true },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on left-hand labels.", "type": "string", "suggested": true },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on left-hand labels.", "type": "string", "suggested": true },
"LabelTextColour": { "label": "Label Text Colour", "description": "Hex code for text color inside the left-hand label cells (defaults to #2d3748).", "type": "string", "suggested": true },
"LineColour": { "label": "Internal Grid Line Colour", "description": "Hex code for the thin divider lines between table rows (defaults to #e2e8f0).", "type": "string", "suggested": true },
"LineColour": { "label": "Internal Grid Line Colour", "description": "Hex code for the thin divider lines between table rows (defaults to #e2e8f0).", "type": "string", "suggested": true },
"Name": { "label": "Character Name", "description": "Display name at the top. Defaults to the page title.", "type": "string", "suggested": true },
"Name": { "label": "Character Name", "description": "Display name at the top. Defaults to the page title.", "type": "string", "suggested": true },

Revision as of 13:52, 20 September 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, and locks it automatically with an "(At Death)" indicator if a death date is provided.

Usage

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

{{Infobox Character
| Colour          = #6E473B
| TextColour      = #ffffff
| BorderColour    = #4D3129
| LabelColour     = #F5EFEA
| LabelTextColour = #2d3748
| LineColour      = #4D3129
| Name            = 
| Image           = Image.png
| Titles          = 
| Race            = 
| Ethnicity       = 
| Gender          = 
| BirthMonth      = 
| BirthYear       = 
| DeathMonth      = 
| DeathYear       = 
| Nationality     = 
| Nation          = 
| Occupation      = 
| Religion        = 
| Languages       = 
| CharacterType   = Primary Character
| Player          = 
| Status          = Alive
}}

TemplateData

Project Aquila's official automated Character Infobox.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Banner Background ColourColour

Hex code for the top header background (e.g. #6E473B).

Stringsuggested
Banner Text ColourTextColour

Colour code for the title text (e.g. #ffffff).

Stringsuggested
Banner Underline ColourBorderColour

Hex code for the thick accent bar below the header.

Stringsuggested
Label Background ColourLabelColour

Hex code for the background tint on left-hand labels.

Stringsuggested
Label Text ColourLabelTextColour

Hex code for text color inside the left-hand label cells (defaults to #2d3748).

Stringsuggested
Internal Grid Line ColourLineColour

Hex code for the thin divider lines between table rows (defaults to #e2e8f0).

Stringsuggested
Character NameName

Display name at the top. Defaults to the page title.

Stringsuggested
Image File NameImage

Filename of the character portrait (e.g. Character.png).

Default
Image.png
Filesuggested
Titles / RanksTitles

Character's honorifics or titles. Hides if blank.

Stringsuggested
RaceRace

Biological race of the character. Automatically linked and adds page to corresponding category. Hides if blank.

Page namesuggested
Ethnicity / HeritageEthnicity

Cultural or ethnic background. Hides if blank.

Stringsuggested
GenderGender

Character's gender identity. Hides if blank.

Stringsuggested
Birth MonthBirthMonth

The birth month used for age calculation. Select from suggested list.

Suggested values
January January--February February--March March--April April--May May--June June--July July--August August--September September--October October October--November November--December Late December
Stringrequired
Birth YearBirthYear

The year of birth (negative for Era Vetus, positive for Era Nova).

Numberrequired
Death MonthDeathMonth

The month of death for locking the age calculation. Optional.

Suggested values
January January--February February--March March--April April--May May--June June--July July--August August--September September--October October October--November November--December Late December
Stringoptional
Death YearDeathYear

The year of death (negative for Era Vetus, positive for Era Nova). Locks character age calculation at this year. Optional.

Numberoptional
NationalityNationality

Current country or region of allegiance. Hides if blank.

Stringsuggested
Nation LinkNation

Internal link to the nation page. Automatically linked. Hides if blank.

Page namesuggested
OccupationOccupation

The character's job or primary role. Hides if blank.

Stringsuggested
ReligionReligion

Character's religious affiliation. Hides if blank.

Stringsuggested
Languages SpokenLanguages

Languages the character is fluent in. Hides if blank.

Stringsuggested
Character TypeCharacterType

Indicates the narrative classification of the character relative to active players and server mechanics.

Suggested values
Primary Character Secondary Character Side Character Archived Character
Default
Primary Character
Stringrequired
Minecraft UsernamePlayer

The player behind the character.

Page namerequired
StatusStatus

Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.

Suggested values
Alive Deceased Dead Missing Unknown Imprisoned Captured Retired Undead Archived
Default
Alive
Stringrequired