Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
 
(72 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="wikitable" style="float:right; width:300px; margin-left:1em;"
<includeonly>{| style="float: right; width: 300px; margin: 0 0 1em 1em; border: 1px solid #1a1a1a; background-color: #f8f9fa; font-size: 88%; line-height: 1.5em; border-collapse: collapse; box-shadow: 0 2px 4px rgba(0,0,0,0.1);"
|+ {{{title|{{PAGENAME}}}}}
|-
|-
! Image
<!-- MAIN TITLE HEADER -->
| [[File:{{{image|No image.png}}}|250px]]
! colspan="2" style="background-color: {{{Colour|#b0b0b1}}}; color: {{{TextColour|#ffffff}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColour|#bebebe}}};" | {{{Name|{{PAGENAME}}}}}
|-
|-
! Name
<!-- IMAGE ROW -->
| {{{name|Unknown}}}
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|Image.png}}}|280px|center]]
|-
|-
! Age
<!-- DATA ROWS BREAKDOWN -->
| {{{age|Unknown}}}
{{#if: {{{Titles|}}} |
! 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: {{{DeathYear|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(At Death)</span> }}
| {{#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}}} }}
|-
|-
! Occupation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth
| {{{occupation|Unknown}}}
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }}
|-
|-
! Status
{{#if: {{{DeathYear|}}} |
| {{{status|Unknown}}}
! 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|}}} |
! 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}}}
{{!}}-}}
! 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|}}} |
! 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 -->
! 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>
|}<!--
--><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 ==
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:
<pre>
{{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
}}
</pre>


<noinclude>
== TemplateData ==
<templatedata>
<templatedata>
{
{
    "description": "Displays a character infobox.",
"description": "Project Aquila's official automated Character Infobox.",
    "params": {
"params": {
        "name": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #6E473B).", "type": "string", "suggested": true },
            "label": "Name",
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the title text (e.g. #ffffff).", "type": "string", "suggested": true },
            "description": "The character's name",
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar below the header.", "type": "string", "suggested": true },
            "type": "string"
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on left-hand labels.", "type": "string", "suggested": true },
        },
"Name": { "label": "Character Name", "description": "Display name at the top. Defaults to the page title.", "type": "string", "suggested": true },
        "image": {
"Image": { "label": "Image File Name", "description": "Filename of the character portrait (e.g. Character.png).", "type": "wiki-file-name", "default": "Image.png", "suggested": true },
            "label": "Image",
"Titles": { "label": "Titles / Ranks", "description": "Character's honorifics or titles. Hides if blank.", "type": "string", "suggested": true },
            "description": "Image filename",
"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 },
            "type": "wiki-file-name"
"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 },
        "age": {
"BirthMonth": {  
            "label": "Age",
"label": "Birth Month",  
            "type": "number"
"description": "The birth month used for age calculation. Select from suggested list.",  
        },
"type": "string",
        "occupation": {
"suggested": true,
            "label": "Occupation",
"suggestedvalues": [
            "type": "string"
"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"
        },
]
        "status": {
},
            "label": "Status",
"BirthYear": { "label": "Birth Year", "description": "The year of birth (negative for Era Vetus, positive for Era Nova).", "type": "number", "suggested": true },
            "type": "string"
"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 },
"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 },
"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 },
"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": {
"label": "Status",
"description": "Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.",
"type": "string",
"default": "Alive",
"suggested": true,
"suggestedvalues": [
"Alive", "Deceased", "Dead", "Missing", "Unknown", "Imprisoned", "Captured", "Retired", "Undead", "Archived"
]
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

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.

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. Automatically linked and adds page to corresponding category. Hides if blank.

Page namesuggested
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).

Numbersuggested
Death MonthDeathMonth

The month of death for locking the age calculation. Optional.

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
Stringoptional
Death YearDeathYear

The year of death (negative for Era Vetus, positive for Era Nova). Locks character age calculation at this year. Optional.

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 relative to active players and server mechanics.

Suggested values
Primary Character Secondary Character Side Character Archived Character
Default
Primary Character
Stringrequired
Minecraft UsernamePlayer

The player behind the character. Hides if blank.

Page namesuggested
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