Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 8: Line 8:
|-
|-
<!-- DATA ROWS BREAKDOWN -->
<!-- DATA ROWS BREAKDOWN -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Titles
{{#if: {{{Titles|}}} |
| {{{Titles|TBA}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Titles
{{!}} {{{Titles}}}
{{!}}-}}
{{#if: {{{Race|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Race
{{!}} {{{Race}}}
{{!}}-}}
{{#if: {{{Ethnicity|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Ethnicity
{{!}} {{{Ethnicity}}}
{{!}}-}}
{{#if: {{{Gender|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Gender
{{!}} {{{Gender}}}
{{!}}-}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Age
| {{#if: {{{BirthYear|}}} | {{#expr: ({{CurrentLoreYear}} - {{{BirthYear}}}) - ({{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 }})}} | {{{age|TBA}}} }}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Race
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth
| {{{Race|TBA}}}
| {{#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: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Ethnicity
| {{{Ethnicity|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Gender
| {{{Gender|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Age
| {{#if: {{{BirthYear|}}}
  | {{#expr: ({{CurrentLoreYear}} - {{{BirthYear}}}) - ({{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
  }}) }}
  | {{{age|TBA}}}
  }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; 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: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Nationality
| {{{Nationality|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Nation
| {{{Nation|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Occupation
| {{{Occupation|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Religion
| {{{Religion|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Languages
| {{{Languages|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Player
| style="font-family: monospace;" | {{{Player|TBA}}}
|-
|-
{{#if: {{{Nationality|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nationality
{{!}} {{{Nationality}}}
{{!}}-}}
{{#if: {{{Nation|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nation
{{!}} {{{Nation}}}
{{!}}-}}
{{#if: {{{Occupation|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Occupation
{{!}} {{{Occupation}}}
{{!}}-}}
{{#if: {{{Religion|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Religion
{{!}} {{{Religion}}}
{{!}}-}}
{{#if: {{{Languages|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Languages
{{!}} {{{Languages}}}
{{!}}-}}
{{#if: {{{Player|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Player
{{!}} <span style="font-family: monospace;">{{{Player}}}</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}}}; 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|active=#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>
|} </includeonly><noinclude>
|} </includeonly><noinclude>


Line 103: Line 94:
"params": {
"params": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #6E473B).", "type": "string", "suggested": true },
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #6E473B).", "type": "string", "suggested": true },
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the title text (e.g. #ffffff or white).", "type": "string", "suggested": true },
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the title text (e.g. #ffffff).", "type": "string", "suggested": true },
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar directly below the main header.", "type": "string" },
"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 the left labels (e.g. #F5EFEA).", "type": "string", "suggested": true },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on left-hand labels.", "type": "string", "suggested": true },
"Name": { "label": "Character Name", "type": "string", "suggested": true },
"Name": { "label": "Character Name", "description": "Display name at the top. Defaults to the page title.", "type": "string", "suggested": true },
"Image": { "label": "Image File Name", "type": "wiki-file-name", "default": "Image.png" },
"Image": { "label": "Image File Name", "description": "Filename of the character portrait (e.g. Character.png).", "type": "wiki-file-name", "default": "Image.png", "suggested": true },
"Titles": { "label": "Titles / Ranks", "type": "string" },
"Titles": { "label": "Titles / Ranks", "description": "Character's honorifics or titles. Hides if blank.", "type": "string", "suggested": true },
"Race": { "label": "Race", "type": "string", "suggested": true },
"Race": { "label": "Race", "description": "Biological race of the character. Hides if blank.", "type": "string", "suggested": true },
"Ethnicity": { "label": "Ethnicity / Heritage", "type": "string" },
"Ethnicity": { "label": "Ethnicity / Heritage", "description": "Cultural or ethnic background. Hides if blank.", "type": "string", "suggested": true },
"Gender": { "label": "Gender", "type": "string" },
"Gender": { "label": "Gender", "description": "Character's gender identity. Hides if blank.", "type": "string", "suggested": true },
"BirthMonth": {  
"BirthMonth": {  
"label": "Birth Month",  
"label": "Birth Month",  
"description": "Select the in-universe calendar month matching your character's birthday.",  
"description": "The birth month used for age calculation. Select from suggested list.",  
"type": "string",  
"type": "string",  
"suggested": true,
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"January",
"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"
"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"
]
]
},
},
"BirthYear": { "label": "Birth Year", "description": "Negative integers for Era Vetus (e.g. -19), positive for Era Nova (e.g. 2)", "type": "number", "suggested": true },
"BirthYear": { "label": "Birth Year", "description": "The year of birth (negative for Era Vetus, positive for Era Nova). This automatically calculates Age. For example, if your character is 50 and the current in-universe year is Year 2, you put -48.", "type": "number", "suggested": true },
"Nationality": { "label": "Nationality", "type": "string" },
"Nationality": { "label": "Nationality", "description": "Current country or region of allegiance. Hides if blank.", "type": "string", "suggested": true },
"Nation": { "label": "Nation Link", "type": "string" },
"Nation": { "label": "Nation Link", "description": "Internal link to the nation page. Hides if blank.", "type": "string", "suggested": true },
"Occupation": { "label": "Occupation", "type": "string" },
"Occupation": { "label": "Occupation", "description": "The character's job or primary role. Hides if blank.", "type": "string", "suggested": true },
"Religion": { "label": "Religion", "type": "string" },
"Religion": { "label": "Religion", "description": "Character's religious affiliation. Hides if blank.", "type": "string", "suggested": true },
"Languages": { "label": "Languages Spoken", "type": "string" },
"Languages": { "label": "Languages Spoken", "description": "Languages the character is fluent in. Hides if blank.", "type": "string", "suggested": true },
"Player": { "label": "Minecraft Username", "type": "string", "suggested": true },
"Player": { "label": "Minecraft Username", "description": "The player behind the character. Hides if blank.", "type": "string", "suggested": true },
"Status": {
"Status": {
"label": "Status",
"label": "Status",
"description": "Current status of the character. Auto-colors text: Alive/Active (Green #2f855a), Deceased/Dead (Red #c53030), Missing/Unknown (Orange #dd6b20), Imprisoned/Captured (Yellow #d69e2e), Retired (Blue #3182ce), Undead (Purple #805ad5), Archived (Grey #718096).",
"description": "Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.",
"type": "string",
"type": "string",
"default": "Alive",
"default": "Alive",
"suggested": true,
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"Alive",
"Alive", "Deceased", "Dead", "Missing", "Unknown", "Imprisoned", "Captured", "Retired", "Undead", "Archived"
"Active",
"Deceased",
"Dead",
"Missing",
"Unknown",
"Imprisoned",
"Captured",
"Retired",
"Undead",
"Archived"
]
]
}
}

Latest revision as of 12:17, 22 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
| Colour       = #6E473B
| TextColour   = #ffffff
| BorderColour = #4D3129
| LabelColour  = #F5EFEA
| Name         = 
| Image        = Image.png
| Titles       = 
| Race         = 
| Ethnicity    = 
| Gender       = 
| BirthMonth   = 
| BirthYear    = 
| Nationality  = 
| Nation       = 
| Occupation   = 
| Religion     = 
| Languages    = 
| 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
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. Hides if blank.

Stringsuggested
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
Stringsuggested
Birth YearBirthYear

The year of birth (negative for Era Vetus, positive for Era Nova). This automatically calculates Age. For example, if your character is 50 and the current in-universe year is Year 2, you put -48.

Numbersuggested
NationalityNationality

Current country or region of allegiance. Hides if blank.

Stringsuggested
Nation LinkNation

Internal link to the nation page. Hides if blank.

Stringsuggested
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
Minecraft UsernamePlayer

The player behind the character. Hides if blank.

Stringsuggested
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
Stringsuggested