Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tags: Manual revert Reverted
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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);"
<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);"
|-
|-
<!-- MAIN TITLE HEADER (Customizable main banner background color & title text color) -->
<!-- MAIN TITLE HEADER -->
! colspan="2" style="background-color: {{{Color|{{{color|#6E473B}}}}}}; color: {{{TextColor|{{{textcolor|#ffffff}}}}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColor|#4D3129}}};" | {{{Name|{{{title|{{PAGENAME}}}}}}}}}
! 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}}}}}
|-
|-
 
<!-- IMAGE ROW -->
<!-- IMAGE ROW (Controls background area around your flag/logo file) -->
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|Image.png}}}|280px|center]]
 
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|{{{image|Image.png}}}}}}}|280px|center]]
|-
|-
 
<!-- 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
<!-- "background-color: #F5EFEA" controls the faint mahogany/leather tint on the left labels, change this to whatever colour you'd like -->
| {{{Titles|TBA}}}
<!-- "border-bottom: 1px solid #e2e8f0" controls the thin divider lines between cells -->
<!-- If you want to change the text directly through source code ( u dont have to, you can just double click on normal edit mode ), only change text after the | -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Titles
 
| {{{Titles|{{{titles|TBA}}}}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Race
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Race
 
| {{{Race|TBA}}}
| {{{Race|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Ethnicity
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Ethnicity
 
| {{{Ethnicity|TBA}}}
| {{{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: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Gender
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Age
 
| {{#if: {{{BirthYear|}}}
| {{{Gender|{{{gender|TBA}}}}}}
  | {{#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: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Age
! 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 }}
| {{#if: {{{BirthYear|}}} | {{#expr: {{CurrentLoreYear}} - {{{BirthYear}}} }} <span style="color: #718096; font-size: 90%; margin-left: 0.3em;">(b. {{#if: {{{BirthMonth|}}} | {{{BirthMonth}}}, | }}{{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} EV | EN {{{BirthYear}}} }})</span> | {{{age|TBA}}} }}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Nationality
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Nationality
 
| {{{Nationality|TBA}}}
| {{{Nationality|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Nation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Nation
 
| {{{Nation|TBA}}}
| {{{Nation|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Occupation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Occupation
 
| {{{Occupation|TBA}}}
| {{{Occupation|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Religion
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Religion
 
| {{{Religion|TBA}}}
| {{{Religion|{{{religion|TBA}}}}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Languages
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Languages
 
| {{{Languages|TBA}}}
| {{{Languages|TBA}}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColor|#F5EFEA}}}; border-bottom: 1px solid #e2e8f0;" | Player
! 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}}}
| style="font-family: monospace;" | {{{Player|{{{player|TBA}}}}}}
|-
|-
 
<!-- BOTTOM STATUS ROW -->
<!-- BOTTOM STATUS ROW (Controls the final row border. Players can type Status = Dead on their own character page if things go south) -->
! 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: {{{LabelColor|#F5EFEA}}}; 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>
 
|} </includeonly><noinclude>
| style="padding: 0.4em 0.6em; font-weight: bold; color: {{#ifeq: {{lowercase: {{{Status|{{{status|Alive}}}}}} }} | dead | #e53e3e | #2f855a }}; border-bottom: 1px solid #1a1a1a;" | {{{Status|{{{status|Alive}}}}}}
|}</includeonly><noinclude>


== 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 information about a character.
 
The appearance of the infobox can be customised using the <code>color</code> (or <code>Color</code>) and <code>textcolor</code> (or <code>TextColor</code>) parameters.


== Usage ==
== Usage ==
 
Copy and paste this clean code snippet straight onto character profiles:
Copy and paste:
 
<pre>
<pre>
{{Infobox Character
{{Infobox Character
| Color       = #6E473B
| Colour       = #6E473B
| TextColor   = #ffffff
| TextColour   = #ffffff
| BorderColor = #4D3129
| BorderColour = #4D3129
| LabelColor = #F5EFEA
| LabelColour = #F5EFEA
| Name       =  
| Name         =  
| Image       = Image.png
| Image       = Image.png
| Titles     =  
| Titles       =  
| Race       =  
| Race         =  
| Ethnicity   =  
| Ethnicity   =  
| Gender     =  
| Gender       =  
| BirthMonth =  
| BirthMonth   =  
| BirthYear   =  
| BirthYear   =  
| Nationality =  
| Nationality =  
| Nation     =  
| Nation       =  
| Occupation =  
| Occupation   =  
| Religion   =  
| Religion     =  
| Languages   =  
| Languages   =  
| Player     =  
| Player       =  
| Status     = Alive
| Status       = Alive
}}
}}
</pre>
</pre>
== Example ==
{{Infobox Character
| title = Henry Westcroft
| image = Image.png
| color = #6E473B
| textcolor = white
| religion = Vormgeloof
| gender = Male
| ethnicity = Koperdamer
| titles = Chief Artificer, Head Architect
| BirthMonth = March--April
| BirthYear = -19
| Nation = Technate of Koperdam
| status = Alive
| player = _baseplate
}}
== Parameters ==
{| class="wikitable"
! Parameter !! Description !! Example
|-
| Color || Hex code for the top header background colour || #6E473B
|-
| TextColor || Color code for the title name text || white
|-
| BorderColor || Hex code for the thick accent bar below the header || #4D3129
|-
| LabelColor || Hex code for the faint background tint on the left labels || #F5EFEA
|-
| Name / title || Character name displayed at the top || Arlen Voss
|-
| Image / image || Character image filename || Arlen.png
|-
| Titles / titles || Character titles or ranks || Knight Commander
|-
| Race || Character race || Human
|-
| Ethnicity / ethnicity || Character's species/ethnicity || Koperdamer
|-
| Gender / gender || Character's gender || Male
|-
| BirthMonth || In-universe months matching timeline chronicles || March--April
|-
| BirthYear || Birth year. Use negative numbers for EV and positive for EN || -19
|-
| age || Old static age parameter (falls back seamlessly if BirthYear isn't filled) || 34
|-
| Nationality || Character's country of ancestry || Koperdamer
|-
| Nation || Link to the Nation they are a part of || Technate of Koperdam
|-
| Occupation || Character's job or core duty || Chief Artificer
|-
| Religion / religion || Character's religion || Vormgeloof
|-
| Languages || Languages spoken by the character || Common Tongue
|-
| Player / player || Player controlling the character || John
|-
| Status / status || Whether the character is alive, deceased, missing, etc. || Alive
|}


== TemplateData ==
== TemplateData ==
<templatedata>
<templatedata>
{
{
"description": "Project Aquila's official automated Character Infobox.",
"params": {
"params": {
"Color": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #6E473B).", "type": "string", "suggested": true },
"label": "Banner Background Color",
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the title text (e.g. #ffffff or white).", "type": "string", "suggested": true },
"description": "Hex code for the top header background background (e.g., #6E473B).",
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar directly below the main header.", "type": "string" },
"type": "string"
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on the left labels (e.g. #F5EFEA).", "type": "string", "suggested": true },
},
"Name": { "label": "Character Name", "type": "string", "suggested": true },
"color": {
"Image": { "label": "Image File Name", "type": "wiki-file-name", "default": "Image.png" },
"label": "Infobox colour (Legacy)",
"Titles": { "label": "Titles / Ranks", "type": "string" },
"description": "Legacy parameter for banner colour.",
"Race": { "label": "Race", "type": "string", "suggested": true },
"type": "string"
"Ethnicity": { "label": "Ethnicity / Heritage", "type": "string" },
},
"Gender": { "label": "Gender", "type": "string" },
"TextColor": {
"BirthMonth": {  
"label": "Banner Text Color",
"label": "Birth Month",  
"description": "Color code for the title name text (e.g., #ffffff or white).",
"description": "Select the in-universe calendar month matching your character's birthday.",  
"type": "string"
"type": "string",  
},
"suggested": true,
"textcolor": {
"suggestedvalues": [
"label": "Header text colour (Legacy)",
"January",
"description": "Legacy parameter for title text color.",
"January--February",
"type": "string"
"February--March",
},
"March--April",
"BorderColor": {
"April--May",
"label": "Banner Underline Color",
"May--June",
"description": "Hex code for the thick accent bar below the header (e.g., #4D3129).",
"June--July",
"type": "string"
"July--August",
},
"August--September",
"LabelColor": {
"September--October",
"label": "Label Background Color",
"October",
"description": "Hex code for the faint background tint on the left side labels (e.g., #F5EFEA).",
"October--November",
"type": "string"
"November--December",
},
"Late December"
"Name": {
]
"label": "Character Name",
"description": "The full name of the character.",
"type": "string"
},
"title": {
"label": "Title (Legacy)",
"description": "Legacy character name field.",
"type": "string"
},
"Image": {
"label": "Image File",
"description": "Character profile image filename.",
"type": "wiki-file-name"
},
"image": {
"label": "Image (Legacy)",
"description": "Legacy character image filename field.",
"type": "wiki-file-name"
},
"Titles": {
"label": "Titles/Ranks",
"description": "Character titles, ranks, or roles.",
"type": "string"
},
"titles": {
"label": "Titles (Legacy)",
"description": "Legacy titles field.",
"type": "string"
},
"Race": {
"label": "Race",
"description": "The character's primary species/race.",
"type": "string"
},
"Ethnicity": {
"label": "Ethnicity",
"description": "The character's specific ethnicity or heritage background.",
"type": "string"
},
"ethnicity": {
"label": "Ethnicity (Legacy)",
"description": "Legacy ethnicity field.",
"type": "string"
},
"Gender": {
"label": "Gender",
"description": "Character's gender.",
"type": "string"
},
"gender": {
"label": "Gender (Legacy)",
"description": "Legacy gender field.",
"type": "string"
},
"BirthMonth": {
"label": "Birth Month",
"description": "In-universe months matching the timeline chronicles (e.g., March--April).",
"type": "string"
},
"BirthYear": {
"label": "Birth Year",
"description": "Use negative numbers for Era Vetus (e.g., -19) and positive numbers for Era Nova (e.g., 2).",
"type": "number"
},
"age": {
"label": "Age (Legacy/Fallback)",
"description": "Legacy manual entry field for static character age.",
"type": "string"
},
"Nationality": {
"label": "Nationality",
"description": "Character's official nationality affiliation.",
"type": "string"
},
"Nation": {
"label": "Nation",
"description": "Link to the Nation they are a part of or None.",
"type": "string"
},
"Occupation": {
"label": "Occupation",
"description": "Core profession or job details.",
"type": "string"
},
"Religion": {
"label": "Religion",
"description": "Character's practicing religion.",
"type": "string"
},
"religion": {
"label": "Religion (Legacy)",
"description": "Legacy religion field.",
"type": "string"
},
},
"BirthYear": { "label": "Birth Year", "description": "Negative integers for Era Vetus (e.g. -19), positive for Era Nova (e.g. 2)", "type": "number", "suggested": true },
"Nationality": { "label": "Nationality", "type": "string" },
"Nation": { "label": "Nation Link", "type": "string" },
"Occupation": { "label": "Occupation", "type": "string" },
"Religion": { "label": "Religion", "type": "string" },
"Languages": { "label": "Languages Spoken", "type": "string" },
"Player": { "label": "Minecraft Username", "type": "string", "suggested": true },
"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).",
"type": "string",
"default": "Alive",
"suggested": true,
"suggestedvalues": [
"Alive",
"Active",
"Deceased",
"Dead",
"Missing",
"Unknown",
"Imprisoned",
"Captured",
"Retired",
"Undead",
"Archived"
]
}
}
}
</templatedata>
</noinclude>

Latest revision as of 19:56, 19 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 or white).

Stringsuggested
Banner Underline ColourBorderColour

Hex code for the thick accent bar directly below the main header.

Stringoptional
Label Background ColourLabelColour

Hex code for the background tint on the left labels (e.g. #F5EFEA).

Stringsuggested
Character NameName

no description

Stringsuggested
Image File NameImage

no description

Default
Image.png
Fileoptional
Titles / RanksTitles

no description

Stringoptional
RaceRace

no description

Stringsuggested
Ethnicity / HeritageEthnicity

no description

Stringoptional
GenderGender

no description

Stringoptional
Birth MonthBirthMonth

Select the in-universe calendar month matching your character's birthday.

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

Negative integers for Era Vetus (e.g. -19), positive for Era Nova (e.g. 2)

Numbersuggested
NationalityNationality

no description

Stringoptional
Nation LinkNation

no description

Stringoptional
OccupationOccupation

no description

Stringoptional
ReligionReligion

no description

Stringoptional
Languages SpokenLanguages

no description

Stringoptional
Minecraft UsernamePlayer

no description

Stringsuggested
StatusStatus

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

Suggested values
Alive Active Deceased Dead Missing Unknown Imprisoned Captured Retired Undead Archived
Default
Alive
Stringsuggested