Template:Infobox Character: Difference between revisions
No edit summary |
No edit summary |
||
| (18 intermediate revisions by the same user not shown) | |||
| Line 14: | Line 14: | ||
{{#if: {{{Race|}}} | | {{#if: {{{Race|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; 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;" {{!}} Race | ||
{{!}} {{{Race}}} | {{!}} [[{{{Race}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Ethnicity|}}} | | {{#if: {{{Ethnicity|}}} | | ||
| Line 40: | Line 40: | ||
{{#if: {{{Nation|}}} | | {{#if: {{{Nation|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nation | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nation | ||
{{!}} {{{Nation}}} | {{!}} [[{{{Nation}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#if: {{{Occupation|}}} | | {{#if: {{{Occupation|}}} | | ||
| Line 54: | Line 54: | ||
{{!}} {{{Languages}}} | {{!}} {{{Languages}}} | ||
{{!}}-}} | {{!}}-}} | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Character Type | |||
| {{{CharacterType|Primary Character}}} | |||
|- | |||
{{#if: {{{Player|}}} | | {{#if: {{{Player|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} 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> | {{!}} <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=#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> | |}<!-- | ||
--><span style="display:none;">{{#switch: {{#ifeq:{{PAGENAME}}|Character Example|EXCLUDE|{{#ifeq:{{PAGENAME}}|Character Template|EXCLUDE|OK}}}} | |||
| EXCLUDE = | |||
| #default = {{#switch: {{lc:{{{CharacterType|Primary Character}}}}} | |||
| side character = [[Category:Side Characters]] | |||
| archived character = [[Category:Archived Characters]] | |||
| #default = [[Category:Characters]] | |||
}} | |||
}}</span>{{#if: {{{Race|}}} |{{#switch: {{#ifeq:{{PAGENAME}}|Character Example|EXCLUDE|{{#ifeq:{{PAGENAME}}|Character Template|EXCLUDE|OK}}}} | |||
| EXCLUDE = | |||
| #default = [[Category:{{{Race}}} Characters]] | |||
}}}}{{#ifeq:{{PAGENAME}}|Character Template|[[Category:Character Templates]]}}</includeonly><noinclude> | |||
== Infobox Character == | == Infobox Character == | ||
| Line 70: | Line 84: | ||
<pre> | <pre> | ||
{{Infobox Character | {{Infobox Character | ||
| Colour | | Colour = #6E473B | ||
| TextColour | | TextColour = #ffffff | ||
| BorderColour = #4D3129 | | BorderColour = #4D3129 | ||
| LabelColour | | LabelColour = #F5EFEA | ||
| Name | | Name = | ||
| Image | | Image = Image.png | ||
| Titles | | Titles = | ||
| Race | | Race = | ||
| Ethnicity | | Ethnicity = | ||
| Gender | | Gender = | ||
| BirthMonth | | BirthMonth = | ||
| BirthYear | | BirthYear = | ||
| DeathMonth | | DeathMonth = | ||
| DeathYear | | DeathYear = | ||
| Nationality | | Nationality = | ||
| Nation | | Nation = | ||
| Occupation | | Occupation = | ||
| Religion = | | Religion = | ||
| | | Languages = | ||
| Player | | CharacterType = Primary Character | ||
| Status | | Player = | ||
| Status = Alive | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 106: | Line 121: | ||
"Image": { "label": "Image File Name", "description": "Filename of the character portrait (e.g. Character.png).", "type": "wiki-file-name", "default": "Image.png", "suggested": true }, | "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", "description": "Character's honorifics or titles. Hides if blank.", "type": "string", "suggested": true }, | "Titles": { "label": "Titles / Ranks", "description": "Character's honorifics or titles. Hides if blank.", "type": "string", "suggested": true }, | ||
"Race": { "label": "Race", "description": "Biological race of the character. Hides if blank.", "type": " | "Race": { "label": "Race", "description": "Biological race of the character. Automatically linked and adds page to corresponding category. Hides if blank.", "type": "wiki-page-name", "suggested": true }, | ||
"Ethnicity": { "label": "Ethnicity / Heritage", "description": "Cultural or ethnic background. Hides if blank.", "type": "string", "suggested": true }, | "Ethnicity": { "label": "Ethnicity / Heritage", "description": "Cultural or ethnic background. Hides if blank.", "type": "string", "suggested": true }, | ||
"Gender": { "label": "Gender", "description": "Character's gender identity. Hides if blank.", "type": "string", "suggested": true }, | "Gender": { "label": "Gender", "description": "Character's gender identity. Hides if blank.", "type": "string", "suggested": true }, | ||
| Line 130: | Line 145: | ||
"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 }, | "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": " | "Nation": { "label": "Nation Link", "description": "Internal link to the nation page. Automatically linked. Hides if blank.", "type": "wiki-page-name", "suggested": true }, | ||
"Occupation": { "label": "Occupation", "description": "The character's job or primary role. Hides if blank.", "type": "string", "suggested": true }, | "Occupation": { "label": "Occupation", "description": "The character's job or primary role. Hides if blank.", "type": "string", "suggested": true }, | ||
"Religion": { "label": "Religion", "description": "Character's religious affiliation. Hides if blank.", "type": "string", "suggested": true }, | "Religion": { "label": "Religion", "description": "Character's religious affiliation. Hides if blank.", "type": "string", "suggested": true }, | ||
"Languages": { "label": "Languages Spoken", "description": "Languages the character is fluent in. Hides if blank.", "type": "string", "suggested": true }, | "Languages": { "label": "Languages Spoken", "description": "Languages the character is fluent in. Hides if blank.", "type": "string", "suggested": true }, | ||
"Player": { "label": "Minecraft Username", "description": "The player behind the character. Hides if blank.", "type": " | "CharacterType": { | ||
"label": "Character Type", | |||
"description": "Indicates the narrative classification of the character relative to active players and server mechanics.", | |||
"type": "string", | |||
"required": true, | |||
"default": "Primary Character", | |||
"suggestedvalues": [ | |||
"Primary Character", | |||
"Secondary Character", | |||
"Side Character", | |||
"Archived Character" | |||
] | |||
}, | |||
"Player": { "label": "Minecraft Username", "description": "The player behind the character. Hides if blank.", "type": "wiki-page-name", "suggested": true }, | |||
"Status": { | "Status": { | ||
"label": "Status", | "label": "Status", | ||
Latest revision as of 21:17, 5 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
| 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.
| 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. Automatically linked and adds page to corresponding category. Hides if blank. | Page name | 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. 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 | required |
| Minecraft Username | Player | The player behind the character. Hides if blank. | Page name | suggested |
| Status | Status | Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.
| String | suggested |