Template:Infobox Character: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
| Line 25: | Line 25: | ||
{{!}}-}} | {{!}}-}} | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Age | ! 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}}} }} | | {{#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 }})}} | {{{age|TBA}}} }} | ||
|- | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; 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 }} | | {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }} | ||
|- | |- | ||
{{#if: {{{DeathYear|}}} | | |||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Date of Death | |||
{{!}} {{#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 #e2e8f0;" {{!}} Nationality | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nationality | ||
| Line 60: | Line 64: | ||
== Infobox Character == | == 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. | 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 pauses it automatically if a death date is provided. | ||
== Usage == | == Usage == | ||
| Line 78: | Line 82: | ||
| BirthMonth = | | BirthMonth = | ||
| BirthYear = | | BirthYear = | ||
| DeathMonth = | |||
| DeathYear = | |||
| Nationality = | | Nationality = | ||
| Nation = | | Nation = | ||
| Line 112: | Line 118: | ||
] | ] | ||
}, | }, | ||
"BirthYear": { "label": "Birth Year", "description": "The year of birth (negative for Era Vetus, positive for Era Nova). | "BirthYear": { "label": "Birth Year", "description": "The year of birth (negative for Era Vetus, positive for Era Nova).", "type": "number", "suggested": true }, | ||
"DeathMonth": { | |||
"label": "Death Month", | |||
"description": "The month of death for locking the age calculation. Optional.", | |||
"type": "string", | |||
"suggested": false, | |||
"suggestedvalues": [ | |||
"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" | |||
] | |||
}, | |||
"DeathYear": { "label": "Death Year", "description": "The year of death (negative for Era Vetus, positive for Era Nova). Locks character age calculation at this year. Optional.", "type": "number", "suggested": false }, | |||
"Nationality": { "label": "Nationality", "description": "Current country or region of allegiance. Hides if blank.", "type": "string", "suggested": true }, | "Nationality": { "label": "Nationality", "description": "Current country or region of allegiance. Hides if blank.", "type": "string", "suggested": true }, | ||
"Nation": { "label": "Nation Link", "description": "Internal link to the nation page. Hides if blank.", "type": "string", "suggested": true }, | "Nation": { "label": "Nation Link", "description": "Internal link to the nation page. Hides if blank.", "type": "string", "suggested": true }, | ||
Revision as of 16:24, 24 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, and pauses it automatically 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
| Name =
| Image = Image.png
| Titles =
| Race =
| Ethnicity =
| Gender =
| BirthMonth =
| BirthYear =
| DeathMonth =
| DeathYear =
| Nationality =
| Nation =
| Occupation =
| Religion =
| Languages =
| Player =
| Status = Alive
}}
TemplateData
Project Aquila's official automated Character Infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Banner Background Colour | Colour | Hex code for the top header background (e.g. #6E473B). | String | suggested |
| Banner Text Colour | TextColour | Colour code for the title text (e.g. #ffffff). | String | suggested |
| Banner Underline Colour | BorderColour | Hex code for the thick accent bar below the header. | String | suggested |
| Label Background Colour | LabelColour | Hex code for the background tint on left-hand labels. | String | suggested |
| Character Name | Name | Display name at the top. Defaults to the page title. | String | suggested |
| Image File Name | Image | Filename of the character portrait (e.g. Character.png).
| File | suggested |
| Titles / Ranks | Titles | Character's honorifics or titles. Hides if blank. | String | suggested |
| Race | Race | Biological race of the character. Hides if blank. | String | suggested |
| Ethnicity / Heritage | Ethnicity | Cultural or ethnic background. Hides if blank. | String | suggested |
| Gender | Gender | Character's gender identity. Hides if blank. | String | suggested |
| Birth Month | BirthMonth | The birth month used for age calculation. Select from suggested list.
| String | suggested |
| Birth Year | BirthYear | The year of birth (negative for Era Vetus, positive for Era Nova). | Number | suggested |
| Death Month | DeathMonth | The month of death for locking the age calculation. Optional.
| String | optional |
| Death Year | DeathYear | The year of death (negative for Era Vetus, positive for Era Nova). Locks character age calculation at this year. Optional. | Number | optional |
| Nationality | Nationality | Current country or region of allegiance. Hides if blank. | String | suggested |
| Nation Link | Nation | Internal link to the nation page. Hides if blank. | String | suggested |
| Occupation | Occupation | The character's job or primary role. Hides if blank. | String | suggested |
| Religion | Religion | Character's religious affiliation. Hides if blank. | String | suggested |
| Languages Spoken | Languages | Languages the character is fluent in. Hides if blank. | String | suggested |
| Minecraft Username | Player | The player behind the character. Hides if blank. | String | suggested |
| Status | Status | Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.
| String | suggested |