Template:Infobox Character: Difference between revisions
No edit summary |
No edit summary |
||
| Line 28: | Line 28: | ||
{{!}} style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" {{!}} {{{Gender}}} | {{!}} style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" {{!}} {{{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}}};" | Age{{#if: {{{DeathYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(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;">(At Death)</span> }}{{#if: {{{UndeadAgeYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #805ad5; display: block;">(+ Un-life Span{{#if: {{{UndeadDeathYear|}}} | <span style="display: block;">(At Final Death)</span> | }})</span> }} | ||
| style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" | {{#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 | April--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|}}} | <br /><span style="color: #805ad5; font-size: 90%;">({{#expr: abs({{{UndeadAgeYear}}}) + {{CurrentLoreYear}} }} yrs undeath)</span> | }} | <span style="color: #c53030; font-weight: bold;">[Missing BirthYear]</span> }} | | style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" | {{#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 | April--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|}}} | <br /><span style="color: #805ad5; font-size: 90%;">({{#expr: abs({{{UndeadAgeYear}}}) + {{#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 | ||
| Line 41: | Line 41: | ||
! 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 Reanimation | ! 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 Reanimation | ||
{{!}} style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" {{!}} {{#ifexpr: {{{UndeadAgeYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{UndeadMonth|}}} |, {{{UndeadMonth}}} | }}, Year {{#ifexpr: {{{UndeadAgeYear}}} < 1 | {{#expr: abs({{{UndeadAgeYear}}}) }} | {{{UndeadAgeYear}}} }} | {{!}} style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" {{!}} {{#ifexpr: {{{UndeadAgeYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{UndeadMonth|}}} |, {{{UndeadMonth}}} | }}, Year {{#ifexpr: {{{UndeadAgeYear}}} < 1 | {{#expr: abs({{{UndeadAgeYear}}}) }} | {{{UndeadAgeYear}}} }} | ||
{{!}}-}} | |||
{{#if: {{{UndeadDeathYear|}}} | | |||
! 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 Final Death | |||
{{!}} style="border-bottom: 1px solid {{{LineColour|#e2e8f0}}}; padding: 0.4em 0.6em;" {{!}} {{#ifexpr: {{{UndeadDeathYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{UndeadDeathMonth|}}} |, {{{UndeadDeathMonth}}} | }}, Year {{#ifexpr: {{{UndeadDeathYear}}} < 1 | {{#expr: abs({{{UndeadDeathYear}}}) }} | {{{UndeadDeathYear}}} }} | |||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Nationality|}}} | | {{#if: {{{Nationality|}}} | | ||
| Line 89: | Line 93: | ||
== 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, and locks it automatically with an "(At Death)" indicator if | 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)" or "(At Final Death)" indicator if death dates are provided. | ||
== Usage == | == Usage == | ||
| Line 95: | Line 99: | ||
<pre> | <pre> | ||
{{Infobox Character | {{Infobox Character | ||
| Colour | | Colour = #6E473B | ||
| TextColour | | TextColour = #ffffff | ||
| BorderColour | | BorderColour = #4D3129 | ||
| LabelColour | | LabelColour = #F5EFEA | ||
| LabelTextColour = #2d3748 | | LabelTextColour = #2d3748 | ||
| LineColour | | LineColour = #4D3129 | ||
| Name | | Name = | ||
| Image | | Image = Image.png | ||
| Titles | | Titles = | ||
| Race | | Race = | ||
| UndeadRace | | UndeadRace = | ||
| Ethnicity | | Ethnicity = | ||
| Gender | | Gender = | ||
| BirthMonth | | BirthMonth = | ||
| BirthYear | | BirthYear = | ||
| DeathMonth | | DeathMonth = | ||
| DeathYear | | DeathYear = | ||
| UndeadAgeYear | | UndeadAgeYear = | ||
| UndeadMonth | | UndeadMonth = | ||
| Nationality | | UndeadDeathMonth = | ||
| Nation | | UndeadDeathYear = | ||
| Occupation | | Nationality = | ||
| Religion | | Nation = | ||
| Languages | | Occupation = | ||
| CharacterType | | Religion = | ||
| Player | | Languages = | ||
| Status | | CharacterType = Primary Character | ||
| Player = | |||
| Status = Alive | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 170: | Line 176: | ||
"UndeadAgeYear": { "label": "Undead Transformation Year", "description": "The year the character became undead (used for calculating un-life span). Optional.", "type": "number", "required": false }, | "UndeadAgeYear": { "label": "Undead Transformation Year", "description": "The year the character became undead (used for calculating un-life span). Optional.", "type": "number", "required": false }, | ||
"UndeadMonth": { "label": "Undead Transformation Month", "description": "The month the character became undead. Optional.", "type": "string", "suggested": false }, | "UndeadMonth": { "label": "Undead Transformation Month", "description": "The month the character became undead. Optional.", "type": "string", "suggested": false }, | ||
"UndeadDeathYear": { "label": "Final Death Year", "description": "The year the undead character suffered final death, pausing their un-life span calculation. Optional.", "type": "number", "required": false }, | |||
"UndeadDeathMonth": { "label": "Final Death Month", "description": "The month the undead character suffered final death. Optional.", "type": "string", "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. Automatically linked. Hides if blank.", "type": "wiki-page-name", "suggested": true }, | "Nation": { "label": "Nation Link", "description": "Internal link to the nation page. Automatically linked. Hides if blank.", "type": "wiki-page-name", "suggested": true }, | ||
| Line 195: | Line 203: | ||
"Status": { | "Status": { | ||
"label": "Status", | "label": "Status", | ||
"description": "Current status.Trusts parameters cleanly. Defaults to Alive.", | "description": "Current status. Trusts parameters cleanly. Defaults to Alive.", | ||
"type": "string", | "type": "string", | ||
"default": "Alive", | "default": "Alive", | ||
Revision as of 08:58, 22 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)" or "(At Final Death)" indicator if death dates are 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 =
| UndeadRace =
| Ethnicity =
| Gender =
| BirthMonth =
| BirthYear =
| DeathMonth =
| DeathYear =
| UndeadAgeYear =
| UndeadMonth =
| UndeadDeathMonth =
| UndeadDeathYear =
| Nationality =
| Nation =
| Occupation =
| Religion =
| Languages =
| CharacterType = Primary Character
| 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 |
| Label Text Colour | LabelTextColour | Hex code for text color inside the left-hand label cells (defaults to #2d3748). | String | suggested |
| Internal Grid Line Colour | LineColour | Hex code for the thin divider lines between table rows (defaults to #e2e8f0). | 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 | Original biological race of the character. Automatically linked and adds page to category. Hides if blank. | Page name | suggested |
| Undead Race / Transformation | UndeadRace | Secondary undead form/race if transformed (e.g. Ghoul, Vampire). Automatically linked and categorized. Hides if blank. | Page name | optional |
| 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 | required |
| Birth Year | BirthYear | The year of birth (negative for Era Vetus, positive for Era Nova). | Number | required |
| 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 |
| Undead Transformation Year | UndeadAgeYear | The year the character became undead (used for calculating un-life span). Optional. | Number | optional |
| Undead Transformation Month | UndeadMonth | The month the character became undead. Optional. | String | optional |
| Final Death Year | UndeadDeathYear | The year the undead character suffered final death, pausing their un-life span calculation. Optional. | Number | optional |
| Final Death Month | UndeadDeathMonth | The month the undead character suffered final death. Optional. | String | optional |
| Nationality | Nationality | Current country or region of allegiance. Hides if blank. | String | suggested |
| Nation Link | Nation | Internal link to the nation page. Automatically linked. Hides if blank. | Page name | 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 |
| Character Type | CharacterType | Indicates the narrative classification of the character relative to active players and server mechanics.
| String | optional |
| Minecraft Username | Player | The player behind the character. | Page name | required |
| Status | Status | Current status. Trusts parameters cleanly. Defaults to Alive.
| String | required |