Template:Infobox Nation: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
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 -->
! 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|#1A365D}}}; color: {{{TextColour|#ffffff}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid {{{BorderColour|#0F172A}}};" | {{{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
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Capital
| {{{Capital|TBA}}}
| {{{Capital|TBA}}}
{{#if: {{{Culture|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Culture
{{!}} {{{Culture}}} }}
|-
|-
{{#if: {{{Culture|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Culture</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Culture}}}</td></tr> }}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Location
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Location
| {{{Location|TBA}}}
| {{{Location|TBA}}}
Line 22: Line 19:
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Leader
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Leader
| {{{Leader|TBA}}}
| {{{Leader|TBA}}}
{{#if: {{{Religion|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Religion
{{!}} {{{Religion}}} }}
{{#if: {{{Legislature|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Legislature
{{!}} {{{Legislature}}} }}
{{#if: {{{Official Languages|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Official Languages
{{!}} {{{Official Languages}}} }}
{{#if: {{{Demonym|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Demonym
{{!}} {{{Demonym}}} }}
{{#if: {{{Major Settlements|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Major Settlements
{{!}} {{{Major Settlements}}} }}
|-
|-
{{#if: {{{Religion|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Religion</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Religion}}}</td></tr> }}
{{#if: {{{Legislature|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Legislature</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Legislature}}}</td></tr> }}
{{#if: {{{Official Languages|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Official Languages</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Official Languages}}}</td></tr> }}
{{#if: {{{Demonym|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Demonym</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Demonym}}}</td></tr> }}
{{#if: {{{Major Settlements|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Major Settlements</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Major Settlements}}}</td></tr> }}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Population
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Population
| {{{Population|TBA}}}
| {{{Population|TBA}}}
{{#if: {{{Allies|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Allies
{{!}} {{{Allies}}} }}
{{#if: {{{Enemies|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Enemies
{{!}} {{{Enemies}}} }}
|-
|-
{{#if: {{{Allies|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Allies</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Allies}}}</td></tr> }}
{{#if: {{{Enemies|}}} | <tr><th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;">Enemies</th><td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Enemies}}}</td></tr> }}
<!-- IN-GAME AGE ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore)
! 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 }}
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }}
|-
|-
<!-- IN-GAME FOUNDED ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (Lore)
! 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 }}
| {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }}
|-
|-
<!-- AUTOMATED REAL-WORLD FOUNDED & AGE ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL)
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL)
| {{#if: {{{FoundedIRL|}}} | {{{FoundedIRL}}} - ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old) | TBA }}
| {{#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 }}
|-
|-
<!-- BOTTOM STATUS ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #1a1a1a;" | Status
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #1a1a1a;" | Status
| style="padding: 0.4em 0.6em; font-weight: bold; color: #2f855a; border-bottom: 1px solid #1a1a1a;" | {{{Status|Active}}}
| style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{Status|{{{status|active}}}}}}}}|active|operational|prosperous=#2f855a|vassal|subject|puppet=#d69e2e|union=#3182ce|declining=#dd6b20|inactive|collapsed|fallen=#c53030|annexed|dissolved=#742a2a|#2f855a}};">{{{Status|{{{status|Active}}}}}}</span>
|} </includeonly><noinclude>
|}
</includeonly><noinclude>


== Infobox Nation ==
== Infobox Nation ==
Line 83: Line 90:
</pre>
</pre>


== TemplateData ==
<templatedata>
<templatedata>
{
{
Line 89: Line 95:
"params": {
"params": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for top banner background.", "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", "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", "type": "string" },
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string" },
"LabelColour": { "label": "Label Background Colour", "type": "string", "suggested": true },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for lower background label cells.", "type": "string", "suggested": true },
"Name": { "label": "Nation Name", "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": "Flag / Crest Image", "type": "wiki-file-name", "default": "Image.png" },
"Image": { "label": "Flag / Crest Image", "description": "Filename of the national flag or crest (e.g., Flag.png).", "type": "wiki-file-name", "default": "Image.png" },
"Capital": { "label": "Capital City", "type": "string", "suggested": true },
"Capital": { "label": "Capital City", "description": "The primary capital city or headquarters of the nation.", "type": "string", "suggested": true },
"Culture": { "label": "Primary Culture", "description": "Hides automatically if left blank.", "type": "string" },
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string" },
"Location": { "label": "Territory Location", "type": "string", "suggested": true },
"Location": { "label": "Territory Location", "description": "Geographic location, region, or coordinates on the world map.", "type": "string", "suggested": true },
"Government": { "label": "Government Type", "type": "string", "suggested": true },
"Government": { "label": "Government Type", "description": "System of governance (e.g., Technocracy, Monarchy, Republic).", "type": "string", "suggested": true },
"Leader": { "label": "Head of State / Ruler", "type": "string", "suggested": true },
"Leader": { "label": "Head of State / Ruler", "description": "Current head(s) of state, ruler(s), or primary executive leadership.", "type": "string", "suggested": true },
"Religion": { "label": "State Religion", "description": "Hides automatically if left blank.", "type": "string" },
"Religion": { "label": "State Religion", "description": "Official or primary state religion/faith. Hides automatically if left blank.", "type": "string" },
"Legislature": { "label": "Governing Body", "description": "Hides automatically if left blank.", "type": "string" },
"Legislature": { "label": "Governing Body", "description": "Primary legislative assembly, council, or parliament. Hides automatically if left blank.", "type": "string" },
"Official Languages": { "label": "Official Languages", "description": "Hides automatically if left blank.", "type": "string" },
"Official Languages": { "label": "Official Languages", "description": "Languages recognized by the state. Hides automatically if left blank.", "type": "string" },
"Demonym": { "label": "Demonym", "description": "Hides automatically if left blank.", "type": "string" },
"Demonym": { "label": "Demonym", "description": "Term used to describe inhabitants or members. Hides automatically if left blank.", "type": "string" },
"Major Settlements": { "label": "Major Cities / Towns", "description": "Hides automatically if left blank.", "type": "string" },
"Major Settlements": { "label": "Major Cities / Towns", "description": "Key settlements, cities, or outposts. Hides automatically if left blank.", "type": "string" },
"Population": { "label": "Population Size", "type": "string", "suggested": true },
"Population": { "label": "Population Size", "description": "Estimated total in-lore population size or member count.", "type": "string", "suggested": true },
"Allies": { "label": "Allied Nations", "description": "Hides automatically if left blank.", "type": "string" },
"Allies": { "label": "Allied Nations", "description": "Formally allied factions, nations, or blocs. Hides automatically if left blank.", "type": "string" },
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hides automatically if left blank.", "type": "string" },
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string" },
"FoundedYearLore": { "label": "Founded Year (Lore)", "type": "number", "required": 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. Automatically updates based on current lore year.", "type": "number", "required": true },
"FoundedIRL": { "label": "Founded (Real Date)", "description": "Must be written strictly in DD/MM/YY format (e.g., 28/07/26).", "type": "string", "required": 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).", "type": "string", "required": true },
"Status": { "label": "Status", "type": "string", "default": "Active", "required": true }
"Status": {
"label": "Current Status",
"description": "Select the political state of the nation. Auto-colors text based on selection.",
"type": "string",
"default": "Active",
"suggested": true,
"suggestedvalues": [
"Active",
"Operational",
"Prosperous",
"Vassal",
"Subject",
"Puppet",
"Union",
"Declining",
"Inactive",
"Collapsed",
"Fallen",
"Annexed",
"Dissolved"
]
}
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 21:33, 19 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             = Active
}}

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.

Stringoptional
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
Fileoptional
Capital CityCapital

The primary capital city or headquarters of the nation.

Stringsuggested
Primary CultureCulture

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

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

Stringoptional
Governing BodyLegislature

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

Stringoptional
Official LanguagesOfficial Languages

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

Stringoptional
DemonymDemonym

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

Stringoptional
Major Cities / TownsMajor Settlements

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

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

Stringoptional
Rival / Enemy FactionsEnemies

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

Stringoptional
Founded Year (Lore)FoundedYearLore

In-lore year the nation was founded. If your nation was made 1000 years ago in lore, put -1000. Automatically updates based on current lore year.

Numberrequired
Founded (Real Date)FoundedIRL

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

Stringrequired
Current StatusStatus

Select the political state of the nation. Auto-colors text based on selection.

Suggested values
Active Operational Prosperous Vassal Subject Puppet Union Declining Inactive Collapsed Fallen Annexed Dissolved
Default
Active
Stringsuggested