Template:Infobox Character: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
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 -->
! colspan="2" style="background-color: {{{Colour|#1A365D}}}; color: {{{TextColour|#ffffff}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColour|#0F172A}}};" | {{{Name|{{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 -->
| 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.png}}}|280px|center]]
|-
|-
<!-- DATA ROWS BREAKDOWN -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Capital
{{#if: {{{Titles|}}} |
| {{{Capital|TBA}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Titles
{{#if: {{{Culture|}}} | {{!}}-
{{!}} {{{Titles}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Culture
{{!}}-}}
{{!}} {{{Culture}}} }}
{{#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: {{{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}}} }}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Date of Birth
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Location
| {{#if: {{{BirthYear|}}} | {{#ifexpr: {{{BirthYear}}} < 1 | Era Vetus | Era Nova }}{{#if: {{{BirthMonth|}}} |, {{{BirthMonth}}} | }}, Year {{#ifexpr: {{{BirthYear}}} < 1 | {{#expr: abs({{{BirthYear}}}) }} | {{{BirthYear}}} }} | TBA }}
| {{{Location|TBA}}}
|-
|-
{{#if: {{{Nationality|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Government
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nationality
| {{{Government|TBA}}}
{{!}} {{{Nationality}}}
|-
{{!}}-}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Leader
{{#if: {{{Nation|}}} |
| {{{Leader|TBA}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Nation
{{#if: {{{Religion|}}} | {{!}}-
{{!}} {{{Nation}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Religion
{{!}}-}}
{{!}} {{{Religion}}} }}
{{#if: {{{Occupation|}}} |
{{#if: {{{Legislature|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Occupation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Legislature
{{!}} {{{Occupation}}}
{{!}} {{{Legislature}}} }}
{{!}}-}}
{{#if: {{{Official Languages|}}} | {{!}}-
{{#if: {{{Religion|}}} |
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Official Languages
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Religion
{{!}} {{{Official Languages}}} }}
{{!}} {{{Religion}}}
{{#if: {{{Demonym|}}} | {{!}}-
{{!}}-}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Demonym
{{#if: {{{Languages|}}} |
{{!}} {{{Demonym}}} }}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" {{!}} Languages
{{#if: {{{Major Settlements|}}} | {{!}}-
{{!}} {{{Languages}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Major Settlements
{{!}}-}}
{{!}} {{{Major Settlements}}} }}
{{#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|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Population
{{!}} <span style="font-family: monospace;">{{{Player}}}</span>
| {{{Population|TBA}}}
{{!}}-}}
{{#if: {{{Allies|}}} | {{!}}-
<!-- BOTTOM STATUS ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Allies
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#b0b0b1}}}; border-bottom: 1px solid #1a1a1a;" | Status
{{!}} {{{Allies}}} }}
| 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>
{{#if: {{{Enemies|}}} | {{!}}-
|} </includeonly><noinclude>
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Enemies
{{!}} {{{Enemies}}} }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore)
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (Lore)
| {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL)
| {{#if: {{{FoundedIRL|}}} | {{{FoundedIRL}}} {{#iferror: ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old) | }} | TBA }}
{{#if: {{{Status|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #1a1a1a;" {{!}} Status
{{!}} <span style="color: {{#switch: {{{Status}}} | Active = #27ae60 | Functional = #27ae60 | Flourishing = #27ae60 | Declining = #e67e22 | At War = #c0392b | Occupied = #c0392b | Fallen = #7f8c8d | Annexed = #7f8c8d | Destroyed = #c0392b | #default = #000000}};">{{{Status}}}</span> }}
|}
</includeonly><noinclude>


== Infobox Character ==
== Infobox Nation ==
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 structured profile data for nations, kingdoms, and factions. Optional secondary parameters hide automatically if left blank to save screen space.


== Usage ==
== Usage ==
Copy and paste this clean code snippet straight onto character profiles:
Copy and paste this clean code snippet straight onto nation wiki pages:
<pre>
<pre>
{{Infobox Character
{{Infobox Nation
| Colour       = #6E473B
| Colour             = #1A365D
| TextColour   = #ffffff
| TextColour         = #ffffff
| BorderColour = #4D3129
| BorderColour       = #0F172A
| LabelColour = #F5EFEA
| LabelColour       = #EDF2F7
| Name         =  
| Name               =  
| Image       = Image.png
| Image             = Image.png
| Titles      =  
| Capital            =
| Race         =  
| Culture            =
| Ethnicity    =  
| Location          =  
| Gender      =  
| Government         =  
| BirthMonth  =  
| Leader            =
| BirthYear    =  
| Religion          =  
| Nationality =  
| Legislature        =  
| Nation      =  
| Official Languages =  
| Occupation  =  
| Demonym            =  
| Religion    =  
| Major Settlements =  
| Languages   =  
| Population        =  
| Player      =  
| Allies            =  
| Status       = Alive
| Enemies            =  
| FoundedYearLore   =  
| FoundedIRL        =  
| Status             = Functional
}}
}}
</pre>
</pre>


== TemplateData ==
<templatedata>
<templatedata>
{
{
"description": "Project Aquila's official automated Character Infobox.",
"description": "Project Aquila's official automated Nation and Faction Infobox.",
"params": {
"params": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #6E473B).", "type": "string", "suggested": true },
"Colour": { "label": "Banner Background Colour", "description": "Hex code for top banner background.", "type": "string", "suggested": true },
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the title text (e.g. #ffffff).", "type": "string", "suggested": true },
"TextColour": { "label": "Banner Text Colour", "description": "Hex code for top banner text.", "type": "string", "suggested": true },
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar below the header.", "type": "string", "suggested": true },
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string", "suggested": true },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on left-hand labels.", "type": "string", "suggested": true },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for lower background label cells.", "type": "string", "suggested": true },
"Name": { "label": "Character Name", "description": "Display name at the top. Defaults to the page title.", "type": "string", "suggested": true },
"Name": { "label": "Nation Name", "description": "The official name of the nation or faction. Defaults to page title if blank.", "type": "string", "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 },
"Image": { "label": "Flag / Crest Image", "description": "Filename of the national flag or crest (e.g., Flag.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 },
"Capital": { "label": "Capital City", "description": "The primary capital city or headquarters of the nation.", "type": "string", "suggested": true },
"Race": { "label": "Race", "description": "Biological race of the character. Hides if blank.", "type": "string", "suggested": true },
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string", "suggested": true },
"Ethnicity": { "label": "Ethnicity / Heritage", "description": "Cultural or ethnic background. Hides if blank.", "type": "string", "suggested": true },
"Location": { "label": "Territory Location", "description": "Geographic location, region, or coordinates on the world map.", "type": "string", "suggested": true },
"Gender": { "label": "Gender", "description": "Character's gender identity. Hides if blank.", "type": "string", "suggested": true },
"Government": { "label": "Government Type", "description": "System of governance (e.g., Technocracy, Monarchy, Republic).", "type": "string", "suggested": true },
"BirthMonth": {  
"Leader": { "label": "Head of State / Ruler", "description": "Current head(s) of state, ruler(s), or primary executive leadership.", "type": "string", "suggested": true },
"label": "Birth Month",  
"Religion": { "label": "State Religion", "description": "Official or primary state religion/faith. Hides automatically if left blank.", "type": "string", "suggested": true },
"description": "The birth month used for age calculation. Select from suggested list.",  
"Legislature": { "label": "Governing Body", "description": "Primary legislative assembly, council, or parliament. Hides automatically if left blank.", "type": "string", "suggested": true },
"type": "string",  
"Official Languages": { "label": "Official Languages", "description": "Languages recognized by the state. Hides automatically if left blank.", "type": "string", "suggested": true },
"suggested": true,
"Demonym": { "label": "Demonym", "description": "Term used to describe inhabitants or members. Hides automatically if left blank.", "type": "string", "suggested": true },
"suggestedvalues": [
"Major Settlements": { "label": "Major Cities / Towns", "description": "Key settlements, cities, or outposts. Hides automatically if left blank.", "type": "string", "suggested": true },
"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"
"Population": { "label": "Population Size", "description": "Estimated total in-lore population size or member count.", "type": "string", "suggested": true },
]
"Allies": { "label": "Allied Nations", "description": "Formally allied factions, nations, or blocs. Hides automatically if left blank.", "type": "string", "suggested": true },
},
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string", "suggested": true },
"BirthYear": { "label": "Birth Year", "description": "The year of birth (negative for Era Vetus, positive for Era Nova). This automatically calculates Age. For example, if your character is 50 and the current in-universe year is Year 2, you put -48.", "type": "number", "suggested": true },
"FoundedYearLore": { "label": "Founded Year (Lore)", "description": "In-lore year the nation was founded. If your nation was made 1000 years ago in lore, put -1000. This automatically calculates Age (Lore) and Founded (Lore). Do not alter.", "type": "number", "required": true },
"Nationality": { "label": "Nationality", "description": "Current country or region of allegiance. Hides if blank.", "type": "string", "suggested": true },
"FoundedIRL": { "label": "Founded (Real Date)", "description": "Real-world creation date. Must be written strictly in DD/MM/YY format (e.g., 28/07/26). Do not alter.", "type": "string", "required": true },
"Nation": { "label": "Nation Link", "description": "Internal link to the nation page. 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 },
"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": "string", "suggested": true },
"Status": {
"Status": {
"label": "Status",
"label": "National Status",
"description": "Current status. Auto-colors (Alive, Deceased, Missing, etc). Defaults to Alive.",
"description": "Current status of the nation. Auto-colors based on condition. Hides automatically if blank.",
"type": "string",
"type": "string",
"default": "Alive",
"suggested": true,
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"Alive", "Deceased", "Dead", "Missing", "Unknown", "Imprisoned", "Captured", "Retired", "Undead", "Archived"
"Functional", "Flourishing", "Declining", "At War", "Occupied", "Fallen", "Annexed", "Destroyed"
]
]
}
}

Revision as of 10:45, 23 August 2026


Infobox Nation

This template displays structured profile data for nations, kingdoms, and factions. Optional secondary parameters hide automatically if left blank to save screen space.

Usage

Copy and paste this clean code snippet straight onto nation wiki pages:

{{Infobox Nation
| Colour             = #1A365D
| TextColour         = #ffffff
| BorderColour       = #0F172A
| LabelColour        = #EDF2F7
| Name               = 
| Image              = Image.png
| Capital            = 
| Culture            = 
| Location           = 
| Government         = 
| Leader             = 
| Religion           = 
| Legislature        = 
| Official Languages = 
| Demonym            = 
| Major Settlements  = 
| Population         = 
| Allies             = 
| Enemies            = 
| FoundedYearLore    = 
| FoundedIRL         = 
| Status             = Functional
}}

Project Aquila's official automated Nation and Faction Infobox.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Banner Background ColourColour

Hex code for top banner background.

Stringsuggested
Banner Text ColourTextColour

Hex code for top banner text.

Stringsuggested
Banner Underline ColourBorderColour

Hex code for top banner underline colour.

Stringsuggested
Label Background ColourLabelColour

Hex code for lower background label cells.

Stringsuggested
Nation NameName

The official name of the nation or faction. Defaults to page title if blank.

Stringsuggested
Flag / Crest ImageImage

Filename of the national flag or crest (e.g., Flag.png).

Default
Image.png
Filesuggested
Capital CityCapital

The primary capital city or headquarters of the nation.

Stringsuggested
Primary CultureCulture

Dominant culture or cultural group. Hides automatically if left blank.

Stringsuggested
Territory LocationLocation

Geographic location, region, or coordinates on the world map.

Stringsuggested
Government TypeGovernment

System of governance (e.g., Technocracy, Monarchy, Republic).

Stringsuggested
Head of State / RulerLeader

Current head(s) of state, ruler(s), or primary executive leadership.

Stringsuggested
State ReligionReligion

Official or primary state religion/faith. Hides automatically if left blank.

Stringsuggested
Governing BodyLegislature

Primary legislative assembly, council, or parliament. Hides automatically if left blank.

Stringsuggested
Official LanguagesOfficial Languages

Languages recognized by the state. Hides automatically if left blank.

Stringsuggested
DemonymDemonym

Term used to describe inhabitants or members. Hides automatically if left blank.

Stringsuggested
Major Cities / TownsMajor Settlements

Key settlements, cities, or outposts. Hides automatically if left blank.

Stringsuggested
Population SizePopulation

Estimated total in-lore population size or member count.

Stringsuggested
Allied NationsAllies

Formally allied factions, nations, or blocs. Hides automatically if left blank.

Stringsuggested
Rival / Enemy FactionsEnemies

Hostile nations, rival factions, or adversaries. Hides automatically if left blank.

Stringsuggested
Founded Year (Lore)FoundedYearLore

In-lore year the nation was founded. If your nation was made 1000 years ago in lore, put -1000. This automatically calculates Age (Lore) and Founded (Lore). Do not alter.

Numberrequired
Founded (Real Date)FoundedIRL

Real-world creation date. Must be written strictly in DD/MM/YY format (e.g., 28/07/26). Do not alter.

Stringrequired
National StatusStatus

Current status of the nation. Auto-colors based on condition. Hides automatically if blank.

Suggested values
Functional Flourishing Declining At War Occupied Fallen Annexed Destroyed
Stringsuggested