Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
m Protected "Template:Infobox Character" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<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);"
{| class="character-infobox" style="--infobox-color: {{{color|#555}}}; --infobox-text: {{{textcolor|white}}};"
|+ class="character-infobox-title" | {{{title|{{PAGENAME}}}}}
|-
|-
| colspan="2" class="character-infobox-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}}}}}
|-
|-
! Religion
<!-- IMAGE ROW -->
| {{{religion|Unknown}}}
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image|Image.png}}}|280px|center]]
|-
|-
! Gender
<!-- DATA ROWS BREAKDOWN -->
| {{{gender|Unknown}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Titles
| {{{Titles|TBA}}}
|-
|-
! Ethnicity
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Race
| {{{ethnicity|Unknown}}}
| {{{Race|TBA}}}
|-
|-
! Title(s)
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Ethnicity
| {{{titles|Unknown}}}
| {{{Ethnicity|TBA}}}
|-
|-
! Age
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Gender
| {{{age|Unknown}}}
| {{{Gender|TBA}}}
|-
|-
! Nation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Age
| {{{Nation|Unknown}}}
| {{#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}}}
  }}
|-
|-
! Status
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Date of Birth
| {{{status|Unknown}}}
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}, {{#if: {{{BirthMonth|}}} | {{{BirthMonth}}}, | }} Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }}
|-
|-
! Player
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Nationality
| {{{player|Unknown}}}
| {{{Nationality|TBA}}}
|}
|-
</includeonly>
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Nation
 
| {{{Nation|TBA}}}
<noinclude>
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Occupation
| {{{Occupation|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Religion
| {{{Religion|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #e2e8f0;" | Languages
| {{{Languages|TBA}}}
|-
! 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}}}
|-
<!-- 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|active=#2f855a|deceased|dead=#c53030|missing|unknown=#dd6b20|imprisoned|captured=#d69e2e|retired=#3182ce|undead=#805ad5|archived=#718096|#2f855a}};">{{{Status|{{{status|Alive}}}}}}</span>
|} </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> and <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
| title =
| Colour      = #6E473B
| image =
| TextColour  = #ffffff
| color =
| BorderColour = #4D3129
| textcolor =
| LabelColour  = #F5EFEA
| religion =
| Name        =  
| gender =
| Image        = Image.png
| ethnicity =
| Titles      =  
| titles =
| Race        =  
| age =
| Ethnicity    =  
| status =
| Gender      =  
| player =
| BirthMonth  =  
| BirthYear    =
| Nationality  =
| Nation      =
| Occupation  =
| Religion    =
| Languages    =
| Player      =
| Status      = Alive
}}
}}
</pre>
</pre>
== Example ==
{{Infobox Character
| title = XQILL275
| image = Screenshot_2026-06-29_231702.png
| color = #8B0000
| textcolor = white
| religion = The Old Faith
| gender = Female
| ethnicity = Human
| titles = Pog
| age = 9
| Nation = fuck
| status = Alive
| player = Xqill
}}
== Parameters ==
{| class="wikitable"
! Parameter !! Description !! Example
|-
| title || Character name displayed at the top || Arlen Voss
|-
| image || Character image filename || Arlen.png
|-
| color || Header and border colour || #8B0000
|-
| textcolor || Header text colour || white
|-
| religion || Character's religion || The Old Faith
|-
| gender || Character's gender || Male
|-
| ethnicity || Character's species/ethnicity || Human
|-
| titles || Character titles or ranks || Knight Commander
|-
| age || Character age || 34
|-
| Nation || Link to the Nation they are a part of or None || None
|-
| status || Whether the character is alive, deceased, missing, etc. || Alive
|-
| player || Player controlling the character || John
|}


== TemplateData ==
== TemplateData ==
<templatedata>
<templatedata>
{
{
"description": "Project Aquila's official automated Character Infobox.",
"params": {
"params": {
"title": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #6E473B).", "type": "string", "suggested": true },
"label": "Title",
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the title text (e.g. #ffffff or white).", "type": "string", "suggested": true },
"description": "Character name displayed at the top of the infobox.",
"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 },
"Image": { "label": "Image File Name", "type": "wiki-file-name", "default": "Image.png" },
"Titles": { "label": "Titles / Ranks", "type": "string" },
"Race": { "label": "Race", "type": "string", "suggested": true },
"Ethnicity": { "label": "Ethnicity / Heritage", "type": "string" },
"Gender": { "label": "Gender", "type": "string" },
"BirthMonth": {  
"label": "Birth Month",  
"description": "Select the in-universe calendar month matching your character's birthday.",  
"type": "string",
"suggested": true,
"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"
]
},
},
"image": {
"BirthYear": { "label": "Birth Year", "description": "Negative integers for Era Vetus (e.g. -19), positive for Era Nova (e.g. 2)", "type": "number", "suggested": true },
"label": "Image",
"Nationality": { "label": "Nationality", "type": "string" },
"description": "Character image filename.",
"Nation": { "label": "Nation Link", "type": "string" },
"type": "wiki-file-name"
"Occupation": { "label": "Occupation", "type": "string" },
},
"Religion": { "label": "Religion", "type": "string" },
"color": {
"Languages": { "label": "Languages Spoken", "type": "string" },
"label": "Infobox colour",
"Player": { "label": "Minecraft Username", "type": "string", "suggested": true },
"description": "Colour of the header and border.",
"Status": {
"type": "string",
"default": "#555"
},
"textcolor": {
"label": "Header text colour",
"description": "Colour of the title text.",
"type": "string",
"default": "white"
},
"religion": {
"label": "Religion",
"description": "Character's religion.",
"type": "string",
"default": "Unknown"
},
"gender": {
"label": "Gender",
"description": "Character's gender.",
"type": "string",
"default": "Unknown"
},
"ethnicity": {
"label": "Ethnicity",
"description": "Character's ethnicity or species.",
"type": "string",
"default": "Unknown"
},
"titles": {
"label": "Titles",
"description": "Character titles, ranks, or roles.",
"type": "string",
"default": "Unknown"
},
"age": {
"label": "Age",
"description": "Character's age.",
"type": "string",
"default": "Unknown"
},
"Nation": {
"label": "Nation",
"description": "Link to the Nation they are a part of or None",
"type": "string",
"default": "None"
},
"status": {
"label": "Status",
"label": "Status",
"description": "Whether the character is alive, deceased, missing, etc.",
"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": "Unknown"
},
"player": {
"label": "Player",
"description": "Person controlling the character.",
"type": "string",
"type": "string",
"default": "Unknown"
"default": "Alive",
"suggested": true,
"suggestedvalues": [
"Alive",
"Active",
"Deceased",
"Dead",
"Missing",
"Unknown",
"Imprisoned",
"Captured",
"Retired",
"Undead",
"Archived"
]
}
}
},
}
"description": "An infobox for character information.",
"paramOrder": [
"title",
"image",
"color",
"textcolor",
"religion",
"gender",
"ethnicity",
"titles",
"age",
        "Nation",
"status",
"player"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</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