Template:Infobox Nation: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
 
(28 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
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Culture
 
{{!}} {{{Culture}}} }}
| {{{Culture|TBA}}}
|-
|-
! 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}}}
|-
|-
! 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|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Government
| {{{Government|TBA}}}
| {{{Government|TBA}}}
|-
|-
! 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
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Religion
 
{{!}} {{{Religion}}} }}
| {{{Religion|TBA}}}
{{#if: {{{Legislature|}}} | {{!}}-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Legislature
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Legislature
{{!}} {{{Legislature}}} }}
 
{{#if: {{{Official Languages|}}} | {{!}}-
| {{{Legislature|TBA}}}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Official Languages
|-
{{!}} {{{Official Languages}}} }}
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Official Languages
{{#if: {{{Demonym|}}} | {{!}}-
 
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Demonym
| {{{Official Languages|TBA}}}
{{!}} {{{Demonym}}} }}
|-
{{#if: {{{Major Settlements|}}} | {{!}}-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Demonym
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Major Settlements
 
{{!}} {{{Major Settlements}}} }}
| {{{Demonym|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Major Settlements
 
| {{{Major Settlements|TBA}}}
|-
|-
! 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}}} }}
|-
|-
! 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|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore)
 
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }}
| {{{Allies|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Enemies
 
| {{{Enemies|TBA}}}
|-
<!-- AUTOMATED AGE OF NATION ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age
 
| {{#if: {{{FoundedLore|}}}  
  | {{#expr: ({{CurrentLoreYear}} - {{#titleparts: {{{FoundedLore}}} | 1 | 2 }}) - ({{CurrentLoreMonthNumber}} < {{#switch: {{#titleparts: {{{FoundedLore}}} | 1 | 1 }}
    | 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
  }}) }} Years
  | TBA  
  }}
|-
|-
<!-- MERGED DATE OF FOUNDING 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: {{{FoundedLore|}}}  
    | {{#ifexpr: {{#titleparts: {{{FoundedLore}}} | 1 | 2 }} < 1  
        | Era Vetus, {{#titleparts: {{{FoundedLore}}} | 1 | 1 }}, Year {{#expr: abs({{#titleparts: {{{FoundedLore}}} | 1 | 2 }}) }}
        | Era Nova, {{#titleparts: {{{FoundedLore}}} | 1 | 1 }}, Year {{#titleparts: {{{FoundedLore}}} | 1 | 2 }}
      }}
    | TBA  
  }}
|-
|-
! 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}}} {{#iferror: ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old) | }} | TBA }}
| {{{FoundedIRL|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; 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>
| style="padding: 0.4em 0.6em; font-weight: bold; color: #2f855a; border-bottom: 1px solid #1a1a1a;" | {{{Status|Active}}}
|}
|} </includeonly><noinclude>
</includeonly><noinclude>


== Infobox Nation ==
== Infobox Nation ==
This template displays structured profile data for nations, kingdoms, and factions. It dynamically tracks the age and chronology of the faction across server days.
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 ==
Line 116: Line 65:
<pre>
<pre>
{{Infobox Nation
{{Infobox Nation
| Colour           = #1A365D
| Colour             = #1A365D
| TextColour       = #ffffff
| TextColour         = #ffffff
| BorderColour     = #0F172A
| BorderColour       = #0F172A
| LabelColour     = #EDF2F7
| LabelColour       = #EDF2F7
| Name             =  
| Name               =  
| Image           = Image.png
| Image             = Image.png
| Capital         =  
| Capital           =  
| Culture         =  
| Culture           =  
| Location         =  
| Location           =  
| Government       =  
| Government         =  
| Leader           =  
| Leader             =  
| Religion         =  
| Religion           =  
| Legislature     =  
| Legislature       =  
| Official Languages =  
| Official Languages =  
| Demonym         =  
| Demonym           =  
| Major Settlements =  
| Major Settlements =  
| Population       =  
| Population         =  
| Allies           =  
| Allies             =  
| Enemies         =  
| Enemies           =  
| FoundedLore      =  
| FoundedYearLore    =  
| FoundedIRL       =  
| FoundedIRL         =  
| Status           = Active
| Status             = Active
}}
}}
</pre>
</pre>


== TemplateData ==
<templatedata>
<templatedata>
{
{
"description": "Project Aquila's official automated Nation and Faction 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. #1A365D). Defaults to theme blue.", "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 nation's name text (e.g. #ffffff or white).", "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 directly below the main header.", "type": "string" },
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string" },
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for the background tint on the left labels (e.g. #EDF2F7).", "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", "description": "The official name of the nation or kingdom.", "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", "description": "Filename of the national flag or emblem file.", "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", "type": "string" },
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string" },
"Location": { "label": "Territory Location", "description": "Geographical region or coordinates on the server map.", "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", "description": "e.g., Feudal Monarchy, Technocracy, 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", "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", "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": "e.g., Parliament, High Council, Senate", "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", "type": "string" },
"Official Languages": { "label": "Official Languages", "description": "Languages recognized by the state. Hides automatically if left blank.", "type": "string" },
"Demonym": { "label": "Demonym", "description": "What citizens of this nation are called (e.g., Koperdamer).", "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", "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" },
"Population": { "label": "Population Size", "description": "Estimated total in-lore population size or member count.", "type": "string", "suggested": true },
"Allies": { "label": "Allied Nations", "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", "type": "string" },
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string" },
"FoundedLore": {  
"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 },
"label": "Founded (Lore)",  
"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 },
"description": "Enter the month and raw year index separated strictly by a comma. (e.g., March--April, -19 for Era Vetus or January, 2 for Era Nova).",  
"Status": {
"type": "string",  
"label": "Current Status",
"suggested": true
"description": "Select the political state of the nation. Auto-colors text based on selection.",
},
"type": "string",
"FoundedIRL": { "label": "Founded (Real Date)", "description": "The real-world date the faction was created on the server (e.g. 15 August 2026).", "type": "string" },
"default": "Active",
"Status": { "label": "Status", "description": "Type 'Active', 'Inactive', or 'Collapsed'.", "type": "string", "default": "Active", "suggested": true }
"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