Template:Infobox Nation: Difference between revisions

From aquila
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{{Culture}}} }}
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{{Culture}}} }}
|-
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Location{{#if: {{{Coordinates|{{{coordinates|}}}}}} | <span style="font-size: 75%; font-weight: normal; color: {{{LabelTextColour|#2d3748}}}; display: block;">(Coords: {{{Coordinates|{{{coordinates|}}}}}})</span> }}
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Location
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{{Location|TBA}}}
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{{Location|TBA}}}{{#if: {{{Coordinates|{{{coordinates|}}}}}} | <div style="font-size: 85%; color: #64748b; margin-top: 3px;">Coords: {{{Coordinates|{{{coordinates|}}}}}}</div> }}
|-
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Government
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Government
Line 35: Line 35:
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{{Major Settlements}}} }}
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{{Major Settlements}}} }}
|-
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Population{{#if: {{{PlayerCount|{{{player_count|{{{Players|{{{players|}}}}}}}}}}}} | <span style="font-size: 75%; font-weight: normal; color: {{{LabelTextColour|#2d3748}}}; display: block;">({{{PlayerCount|{{{player_count|{{{Players|{{{players|}}}}}}}}}}}} members)</span> }}
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Population
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{{Population|TBA}}}
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{{Population|TBA}}}{{#if: {{{PlayerCount|{{{player_count|{{{Players|{{{players|}}}}}}}}}}}} | <div style="font-size: 85%; color: #64748b; margin-top: 3px;">({{{PlayerCount|{{{player_count|{{{Players|{{{players|}}}}}}}}}}}} members)</div> }}
{{#if: {{{Allies|}}} | {{!}}-
{{#if: {{{Allies|}}} | {{!}}-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} Allies
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} Allies
Line 44: Line 44:
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{{Enemies}}} }}
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{{Enemies}}} }}
|-
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Age (Lore){{#if: {{{DissolvedYearLore|}}} | <span style="font-size: 75%; font-weight: normal; color: {{{LabelTextColour|#2d3748}}}; display: block;">(Active Span)</span> }}
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Age{{#if: {{{DissolvedYearLore|}}} | <span style="font-size: 75%; font-weight: normal; color: {{{LabelTextColour|#2d3748}}}; display: block;">(Active Span)</span> }}
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{#if: {{{FoundedYearLore|}}} | {{#expr: ({{#if: {{{DissolvedYearLore|}}} | {{{DissolvedYearLore}}} | {{CurrentLoreYear}} }} - {{{FoundedYearLore}}}) }} Years | TBA }}
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{#if: {{{FoundedYearLore|}}} | {{#expr: ({{#if: {{{DissolvedYearLore|}}} | {{{DissolvedYearLore}}} | {{CurrentLoreYear}} }} - {{{FoundedYearLore}}}) }} Years old | TBA }}
|-
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Founded (Lore)
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Founded
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }}
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus, Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova, Year {{{FoundedYearLore}}} }} | TBA }}{{#if: {{{FoundedIRL|}}} | <div style="font-size: 85%; color: #64748b; margin-top: 3px;">{{{FoundedIRL}}} {{#iferror: ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old) | }}</div> }}
|-
{{#if: {{{DissolvedYearLore|}}} | {{!}}-
{{#if: {{{DissolvedYearLore|}}} |
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} Dissolved
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} Dissolved (Lore)
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{#ifexpr: {{{DissolvedYearLore}}} < 1 | Era Vetus, Year {{#expr: abs({{{DissolvedYearLore}}}) }} | Era Nova, Year {{{DissolvedYearLore}}} }} }}
{{!}} class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" {{!}} {{#ifexpr: {{{DissolvedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{DissolvedYearLore}}}) }} | Era Nova Year {{{DissolvedYearLore}}} }}
{{!}}-}}
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}}; border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | Founded (IRL)
| class="aquila-infobox-data" style="border-bottom: 1px solid {{{LineColour|#cbd5e1}}};" | {{#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 }}
|-
|-
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}};" | Status
! class="aquila-infobox-label" style="background-color: {{{LabelColour|#EDF2F7}}}; color: {{{LabelTextColour|#2d3748}}}; border-right: 1px solid {{{LineColour|#cbd5e1}}};" | Status
| class="aquila-infobox-data" | <span class="aquila-status-badge" style="background: {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#f0fdf4|vassal|subject|puppet=#fefce8|union=#eff6ff|declining=#fff7ed|inactive|collapsed|fallen=#fef2f2|annexed|dissolved=#fef2f2|#f0fdf4}}; color: {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#15803d|vassal|subject|puppet=#a16207|union=#1d4ed8|declining=#c2410c|inactive|collapsed|fallen=#b91c1c|annexed|dissolved=#7f1d1d|#15803d}}; border: 1px solid {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#bbf7d0|vassal|subject|puppet=#fef08a|union=#bfdbfe|declining=#ffedd5|inactive|collapsed|fallen=#fecaca|annexed|dissolved=#fecaca|#bbf7d0}};">{{{Status|{{{status|Operational}}}}}}</span>
| class="aquila-infobox-data" | <span class="aquila-status-badge" style="background: {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#f0fdf4|vassal|subject|puppet=#fefce8|union=#eff6ff|declining=#fff7ed|inactive|collapsed|fallen=#fef2f2|annexed|dissolved=#fef2f2|#f0fdf4}}; color: {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#15803d|vassal|subject|puppet=#a16207|union=#1d4ed8|declining=#c2410c|inactive|collapsed|fallen=#b91c1c|annexed|dissolved=#7f1d1d|#15803d}}; border: 1px solid {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#bbf7d0|vassal|subject|puppet=#fef08a|union=#bfdbfe|declining=#ffedd5|inactive|collapsed|fallen=#fecaca|annexed|dissolved=#fecaca|#bbf7d0}};">{{{Status|{{{status|Operational}}}}}}</span>
|}
|}
[[Category:Nations]]
</includeonly><noinclude>
</includeonly><noinclude>


Line 115: Line 111:
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string", "suggested": true },
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string", "suggested": true },
"Location": { "label": "Territory Location", "description": "Geographic location, region, or general area.", "type": "string", "suggested": true },
"Location": { "label": "Territory Location", "description": "Geographic location, region, or general area.", "type": "string", "suggested": true },
"Coordinates": { "label": "Coordinates", "description": "Raw in-game map coordinates. Do NOT write 'Coords:' — enter the numbers only (e.g., -1000, 2500). Renders automatically as (Coords: X, Y, Z).", "type": "string", "suggested": true },
"Coordinates": { "label": "Coordinates", "description": "Raw in-game map coordinates. Do NOT write 'Coords:' — enter the numbers only (e.g., -1000, 2500). Renders automatically as Coords: X, Y, Z.", "type": "string", "suggested": true },
"Government": { "label": "Government Type", "description": "System of governance (e.g., Technocracy, Monarchy, Republic).", "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", "description": "Current head(s) of state, ruler(s), or primary executive leadership.", "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 },
Line 124: Line 120:
"Major Settlements": { "label": "Major Cities / Towns", "description": "Key settlements, cities, or outposts. Hides automatically if left blank.", "type": "string", "suggested": true },
"Major Settlements": { "label": "Major Cities / Towns", "description": "Key settlements, cities, or outposts. Hides automatically if left blank.", "type": "string", "suggested": true },
"Population": { "label": "In-Lore Population Size", "description": "Estimated total in-lore population size.", "type": "string", "suggested": true },
"Population": { "label": "In-Lore Population Size", "description": "Estimated total in-lore population size.", "type": "string", "suggested": true },
"PlayerCount": { "label": "Real Player Count", "description": "Actual real-world player count. Enter the raw number (e.g., 4). Renders automatically as (4 members).", "type": "number", "suggested": true },
"PlayerCount": { "label": "Number of Players", "description": "Actual real-world player count. Enter the raw number (e.g., 4). Renders automatically as (4 members).", "type": "number", "suggested": true },
"Allies": { "label": "Allied Nations", "description": "Formally allied factions, nations, or blocs. Hides automatically if left blank.", "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 },
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string", "suggested": true },

Latest revision as of 21:16, 16 October 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
| LabelTextColour    = #2d3748
| LineColour         = #cbd5e1
| Name               = 
| Image              = Image.png
| Capital            = 
| Culture            = 
| Location           = 
| Coordinates        = -1000, 2500
| Government         = 
| Leader             = 
| Religion           = 
| Legislature        = 
| Official Languages = 
| Demonym            = 
| Major Settlements  = 
| Population         = 125,000
| PlayerCount        = 4
| Allies             = 
| Enemies            = 
| FoundedYearLore    = 
| DissolvedYearLore  = 
| FoundedIRL         = 
| Status             = Operational
}}

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
Label Text ColourLabelTextColour

Hex code for text color inside the left-hand label cells (defaults to #2d3748). Also styles subtext labels.

Stringsuggested
Internal Grid Line ColourLineColour

Hex code for the thin divider lines between table rows (defaults to #cbd5e1).

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
Stringsuggested
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 general area.

Stringsuggested
CoordinatesCoordinates

Raw in-game map coordinates. Do NOT write 'Coords:' — enter the numbers only (e.g., -1000, 2500). Renders automatically as Coords: X, Y, Z.

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
In-Lore Population SizePopulation

Estimated total in-lore population size.

Stringsuggested
Number of PlayersPlayerCount

Actual real-world player count. Enter the raw number (e.g., 4). Renders automatically as (4 members).

Numbersuggested
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. Automatically updates based on current lore year.

Numberrequired
Dissolved Year (Lore)DissolvedYearLore

In-lore year the nation collapsed or dissolved. Locks the active lifespan calculation. Optional.

Numberoptional
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
Operational Prosperous Vassal Subject Puppet Union Declining Inactive Collapsed Fallen Annexed Dissolved
Default
Operational
Stringrequired