Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 30: Line 30:
! 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;">(Biological at Death)</span> }}{{#if: {{{UndeadAgeYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #805ad5; display: block;">(+ Un-life Span)</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;">(Biological at Death)</span> }}{{#if: {{{UndeadAgeYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #805ad5; display: block;">(+ Un-life Span)</span> }}
| style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" | {{#if: {{{BirthYear|}}} | {{#expr:  
| style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" | {{#if: {{{BirthYear|}}} | {{#expr:  
    <!-- Biological Age Calculation -->
     (abs({{{BirthYear}}}) - abs({#if: {{{DeathYear|}}} | {{{DeathYear}}} | {{CurrentLoreYear}} }))  
     (abs({{{BirthYear}}}) - abs({#if: {{{DeathYear|}}} | {{{DeathYear}}} | {{CurrentLoreYear}} }))  
     - ({{#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 }})
     - ({{#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 }})
    {{#if: {{{UndeadAgeYear|}}} |
   }} {{#if: {{{UndeadAgeYear|}}} | <br /><span style="color: #805ad5; font-size: 90%;">({#expr: abs({{{UndeadAgeYear}}}) - abs({#if: {{{UndeadDeathYear|}}} | {{{UndeadDeathYear}}} | {{CurrentLoreYear}} }})} yrs undeath)</span> | }} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear]</span> }}
      + (abs({{{UndeadAgeYear}}}) - abs({#if: {{{UndeadDeathYear|}}} | {{{UndeadDeathYear}}} | {{CurrentLoreYear}} }))
    | }}
   }} {{#if: {{{UndeadAgeYear|}}} | <br /><span style="color: #805ad5; font-size: 90%;">({#expr: abs({{{UndeadAgeYear}}}) - abs({#if: {{{UndeadDeathYear|}}} | {{{UndeadDeathYear}}} | {{CurrentLoreYear}} })} yrs undeath)</span> | }} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear]</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}}};" | 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

Revision as of 17:04, 21 September 2026


Infobox Character

This template displays automated information about a character page. It dynamically calculates a character's total existence (living age + un-life span) based on the server timeline tracking clock.

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            = 
| UndeadRace      = 
| Ethnicity       = 
| Gender          = 
| BirthMonth      = 
| BirthYear       = 
| DeathMonth      = 
| DeathYear       = 
| UndeadMonth     = 
| UndeadAgeYear   = 
| UndeadDeathMonth= 
| UndeadDeathYear = 
| 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

Original biological race of the character. Automatically linked and adds page to category. Hides if blank.

Page namesuggested
Undead Race / TransformationUndeadRace

Secondary undead form/race if transformed (e.g. Ghoul, Vampire). Automatically linked and categorized. Hides if blank.

Page nameoptional
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.

Stringrequired
Birth YearBirthYear

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

Numberrequired
Death MonthDeathMonth

Month of biological death.

Stringoptional
Death YearDeathYear

Year of biological death.

Numberoptional
Reanimation MonthUndeadMonth

Month the character became undead.

Stringoptional
Reanimation YearUndeadAgeYear

The year the character became undead (used for un-life span calculation).

Numberoptional
Final Death MonthUndeadDeathMonth

Month of final true death for undead.

Stringoptional
Final Death YearUndeadDeathYear

Year of final true death for undead (locks un-life span).

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.

Default
Primary Character
Stringrequired
Minecraft UsernamePlayer

The player behind the character.

Page namerequired
StatusStatus

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

Default
Alive
Stringrequired