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 FOUNDED (LORE) ROW -->
<!-- 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: {{{FoundedIRL|}}}  
| {{#if: {{{FoundedLore|}}}  
     | Era Nova Year {{#expr: 1 + floor( ({{#time: U | {{{FoundedIRL}}} }} - {{#time: U | 2026-07-28}}) / 1209600 )}}
     | {{#ifexpr: {{#titleparts: {{{FoundedLore}}} | 1 | 2 }} < 1
    | {{#if: {{{FoundedYearLore|}}}  
        | Era Vetus, {{#titleparts: {{{FoundedLore}}} | 1 | 1 }}, Year {{#expr: abs({{#titleparts: {{{FoundedLore}}} | 1 | 2 }}) }}
         | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }}
         | Era Nova, {{#titleparts: {{{FoundedLore}}} | 1 | 1 }}, Year {{#titleparts: {{{FoundedLore}}} | 1 | 2 }}
        | TBA  
      }}
      }}
    | TBA  
   }}
   }}
|-
|-
<!-- AUTOMATED FOUNDED (IRL) 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|}}} | {{#time: j F Y | {{{FoundedIRL}}} }} | TBA }}
| {{{FoundedIRL|TBA}}}
|-
|-


Line 87: Line 110:


== Infobox Nation ==
== Infobox Nation ==
This template displays structured profile data for nations, kingdoms, and factions. It features an automated time engine that converts real-world dates into exact roleplay lore years.
This template displays structured profile data for nations, kingdoms, and factions. It dynamically tracks the age and chronology of the faction across server days.


== Usage ==
== Usage ==
Line 93: Line 116:
<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         =  
| FoundedIRL        =  
| FoundedLore      =  
| FoundedYearLore    =  
| FoundedIRL      =  
| Status             = Active
| Status           = Active
}}
}}
</pre>
</pre>
=== How to use the automated Founding System:
* '''Option A (Automatic):''' Simply type the real-world date the faction was created into <code>FoundedIRL</code> (e.g., <code>| FoundedIRL = 11 August 2026</code>). The template will automatically display the formatted real-world date ''and'' calculate that it was **Era Nova Year 2** in lore!
* '''Option B (Pre-Launch Lore):''' If the kingdom existed in ancient history before the server opened, leave <code>FoundedIRL</code> blank. Instead, use <code>FoundedYearLore</code> with a negative number (e.g., <code>| FoundedYearLore = -15</code> will output ''Era Vetus Year 15'').


== TemplateData ==
== TemplateData ==
Line 146: Line 165:
"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" },
"FoundedIRL": { "label": "Founded (Real Date)", "description": "Type the real-world date this faction was created (e.g., 11 August 2026). This calculates the lore year automatically.", "type": "string", "suggested": true },
"FoundedLore": {  
"FoundedYearLore": { "label": "Founded (Ancient Lore Year)", "description": "Only use this if founded before server launch. Use negative numbers for Era Vetus (e.g., -5).", "type": "number" },
"label": "Founded (Lore)",  
"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:50, 19 August 2026


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.

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          = 
| FoundedLore      = 
| 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

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 (Lore)FoundedLore

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

Stringsuggested
Founded (Real Date)FoundedIRL

The real-world date the faction was created on the server (e.g. 15 August 2026).

Stringoptional
StatusStatus

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

Default
Active
Stringsuggested