Template:Infobox Nation: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
No edit summary
Line 63: Line 63:
| {{{Enemies|TBA}}}
| {{{Enemies|TBA}}}
|-
|-
<!-- AUTOMATED AGE OF NATION ROW -->
<!-- IN-GAME AGE ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore)


| {{#if: {{{FoundedLore|}}}  
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }}
  | {{#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 -->
<!-- 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: {{{FoundedLore|}}}  
| {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }}
    | {{#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  
  }}
|-
|-
<!-- 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)


| {{{FoundedIRL|TBA}}}
| {{#if: {{{FoundedIRL|}}} | {{{FoundedIRL}}} - ({{#expr: floor( ({{#time: U}} - {{#time: U | {{{FoundedIRL}}} }}) / 86400 )}} days old) | TBA }}
|-
|-


Line 110: Line 86:


== 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. It dynamically tracks the age of the nation both in roleplay years and real-world server days.


== Usage ==
== Usage ==
Line 116: Line 92:
<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>
Line 155: Line 131:
"Culture": { "label": "Primary Culture", "type": "string" },
"Culture": { "label": "Primary Culture", "type": "string" },
"Location": { "label": "Territory Location", "description": "Geographical region or coordinates on the server map.", "type": "string", "suggested": true },
"Location": { "label": "Territory Location", "description": "Geographical region or coordinates on the server 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": "e.g., Feudal Monarchy, Technocracy, Republic, Democracy, Anarchy", "type": "string", "suggested": true },
"Leader": { "label": "Head of State / Ruler", "type": "string", "suggested": true },
"Leader": { "label": "Head of State / Ruler", "type": "string", "suggested": true },
"Religion": { "label": "State Religion", "type": "string" },
"Religion": { "label": "State Religion", "type": "string" },
Line 165: Line 141:
"Allies": { "label": "Allied Nations", "type": "string" },
"Allies": { "label": "Allied Nations", "type": "string" },
"Enemies": { "label": "Rival / Enemy Factions", "type": "string" },
"Enemies": { "label": "Rival / Enemy Factions", "type": "string" },
"FoundedLore": {  
"FoundedYearLore": { "label": "Founded Year (Lore)", "description": "The in-game calendar year this nation was established. Use negative numbers for Era Vetus (e.g. -19) and positive numbers for Era Nova (e.g. 2).", "type": "number", "suggested": true },
"label": "Founded (Lore)",  
"FoundedIRL": { "label": "Founded (Real Date)", "description": "CRITICAL: You MUST write this strictly in DD/MM/YY format (e.g., 28/07/26). This calculates the real-world days active automatically.", "type": "string", "suggested": 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).",  
"type": "string",  
"suggested": true
},
"FoundedIRL": { "label": "Founded (Real Date)", "description": "The real-world date the faction was created on the server (e.g. 15 August 2026).", "type": "string" },
"Status": { "label": "Status", "description": "Type 'Active', 'Inactive', or 'Collapsed'.", "type": "string", "default": "Active", "suggested": true }
"Status": { "label": "Status", "description": "Type 'Active', 'Inactive', or 'Collapsed'.", "type": "string", "default": "Active", "suggested": true }
}
}

Revision as of 15:54, 19 August 2026


Infobox Nation

This template displays structured profile data for nations, kingdoms, and factions. It dynamically tracks the age of the nation both in roleplay years and real-world server days.

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
}}

TemplateData

Project Aquila's official automated Nation and Faction Infobox.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Banner Background ColourColour

Hex code for the top header background (e.g. #1A365D). Defaults to theme blue.

Stringsuggested
Banner Text ColourTextColour

Colour code for the nation's name 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. #EDF2F7).

Stringsuggested
Nation NameName

The official name of the nation or kingdom.

Stringsuggested
Flag / Crest ImageImage

Filename of the national flag or emblem file.

Default
Image.png
Fileoptional
Capital CityCapital

no description

Stringsuggested
Primary CultureCulture

no description

Stringoptional
Territory LocationLocation

Geographical region or coordinates on the server map.

Stringsuggested
Government TypeGovernment

e.g., Feudal Monarchy, Technocracy, Republic, Democracy, Anarchy

Stringsuggested
Head of State / RulerLeader

no description

Stringsuggested
State ReligionReligion

no description

Stringoptional
Governing BodyLegislature

e.g., Parliament, High Council, Senate

Stringoptional
Official LanguagesOfficial Languages

no description

Stringoptional
DemonymDemonym

What citizens of this nation are called (e.g., Koperdamer).

Stringoptional
Major Cities / TownsMajor Settlements

no description

Stringoptional
Population SizePopulation

no description

Stringoptional
Allied NationsAllies

no description

Stringoptional
Rival / Enemy FactionsEnemies

no description

Stringoptional
Founded Year (Lore)FoundedYearLore

The in-game calendar year this nation was established. Use negative numbers for Era Vetus (e.g. -19) and positive numbers for Era Nova (e.g. 2).

Numbersuggested
Founded (Real Date)FoundedIRL

CRITICAL: You MUST write this strictly in DD/MM/YY format (e.g., 28/07/26). This calculates the real-world days active automatically.

Stringsuggested
StatusStatus

Type 'Active', 'Inactive', or 'Collapsed'.

Default
Active
Stringsuggested