Template:Infobox Nation: Difference between revisions

From aquila
Jump to navigation Jump to search
m Protected "Template:Infobox Nation" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
Line 1: Line 1:
<includeonly>
<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);"
{| class="character-infobox" style="--infobox-color: {{{color|#555}}}; --infobox-text: {{{textcolor|white}}};"
|+ class="character-infobox-title" | {{{title|{{PAGENAME}}}}}
|-
|-
| colspan="2" class="character-infobox-image" |
<!-- MAIN TITLE HEADER -->
[[File:{{{image|No image.png}}}|250px]]
! 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}}}}}
|-
|-
! Capital
 
| {{{capital|Unknown}}}
<!-- 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]]
|-
 
<!-- DATA ROWS BREAKDOWN -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Capital
 
| {{{Capital|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Culture
 
| {{{Culture|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Location
 
| {{{Location|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Government
 
| {{{Government|TBA}}}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Leader
 
| {{{Leader|TBA}}}
|-
|-
! Culture
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Religion
| {{{culture|Unknown}}}
 
| {{{Religion|TBA}}}
|-
|-
! Location
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Legislature
| {{{location|Unknown}}}
 
| {{{Legislature|TBA}}}
|-
|-
! Government
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Official Languages
| {{{government|Unknown}}}
 
| {{{Official Languages|TBA}}}
|-
|-
! Leader
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Demonym
| {{{leader|Unknown}}}
 
| {{{Demonym|TBA}}}
|-
|-
! Religion
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Major Settlements
| {{{religion|Unknown}}}
 
| {{{Major Settlements|TBA}}}
|-
|-
! Legislature
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Population
| {{{legislature|Unknown}}}
 
| {{{Population|TBA}}}
|-
|-
! Date of Founding (IRL)
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Allies
| {{{founding_real|Unknown}}}
 
| {{{Allies|TBA}}}
|-
|-
! Date of Founding (Lore)
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Enemies
| {{{founding_lore|Unknown}}}
|}
</includeonly>


<noinclude>
| {{{Enemies|TBA}}}
|-
<!-- AUTOMATED FOUNDED (LORE) ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (Lore)


== Infobox Nation ==
| {{#if: {{{FoundedIRL|}}}
    | Era Nova Year {{#expr: 1 + floor( ({{#time: U | {{{FoundedIRL}}} }} - {{#time: U | 2026-07-28}}) / 1209600 )}}
    | {{#if: {{{FoundedYearLore|}}}
        | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }}
        | 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)


This template displays information about a nation or state.
| {{#if: {{{FoundedIRL|}}} | {{#time: j F Y | {{{FoundedIRL}}} }} | TBA }}
|-


The appearance of the infobox can be customised using the <code>color</code> and <code>textcolor</code> parameters.
<!-- BOTTOM STATUS ROW -->
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #1a1a1a;" | Status


== Usage ==
| style="padding: 0.4em 0.6em; font-weight: bold; color: #2f855a; border-bottom: 1px solid #1a1a1a;" | {{{Status|Active}}}
|} </includeonly><noinclude>


Copy and paste:
== 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.


== Usage ==
Copy and paste this clean code snippet straight onto nation wiki pages:
<pre>
<pre>
{{Infobox Nation
{{Infobox Nation
| title =
| Colour            = #1A365D
| image =
| TextColour        = #ffffff
| color =
| BorderColour      = #0F172A
| textcolor =
| LabelColour        = #EDF2F7
| capital =
| Name              =  
| culture =
| Image              = Image.png
| location =
| Capital            =  
| government =
| Culture            =  
| leader =
| Location          =  
| religion =
| Government        =  
| legislature =
| Leader            =  
| founding_real =
| Religion          =  
| founding_lore =
| Legislature        =  
| Official Languages =
| Demonym            =
| Major Settlements  =
| Population        =
| Allies            =
| Enemies            =
| FoundedIRL        =
| FoundedYearLore    =
| Status            = Active
}}
}}
</pre>
</pre>


== Example ==
=== 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!
{{Infobox Nation
* '''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'').
| title = AHHHHHH TOWN
| image = AHHHHHH_Flag.png
| color = #8B0000
| textcolor = white
| capital = AHHHH CITY
| culture = Screaming
| location = West of shouting country
| government = Loudness Monarchy
| leader = Miss Scream
| religion = XQILL Religion
| legislature = wdwdwd
| founding_real = 24/07/26
| founding_lore = the 1st of shoutington
}}
 
== Parameters ==
 
{| class="wikitable"
! Parameter !! Description
|-
| title || Name of the nation
|-
| image || Flag, coat of arms or national symbol
|-
| color || Header and border colour
|-
| textcolor || Header text colour
|-
| capital || Capital city
|-
| culture || Dominant culture(s)
|-
| location || Geographic location
|-
| government || Form of government
|-
| leader || Current ruler or head of state
|-
| religion || State or predominant religion
|-
| legislature || Constitution, charter or legislature
|-
| founding_real || Real-world founding date
|-
| founding_lore || In-universe founding date
|}


== TemplateData ==
== TemplateData ==
<templatedata>
<templatedata>
{
{
    "description": "An infobox for nations and states.",
"description": "Project Aquila's official automated Nation and Faction Infobox.",
    "params": {
"params": {
        "title": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for the top header background (e.g. #1A365D). Defaults to theme blue.", "type": "string", "suggested": true },
            "label": "Title",
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the nation's name text (e.g. #ffffff or white).", "type": "string", "suggested": true },
            "type": "string"
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for the thick accent bar directly below the main header.", "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 },
        "image": {
"Name": { "label": "Nation Name", "description": "The official name of the nation or kingdom.", "type": "string", "suggested": true },
            "label": "Image",
"Image": { "label": "Flag / Crest Image", "description": "Filename of the national flag or emblem file.", "type": "wiki-file-name", "default": "Image.png" },
            "type": "wiki-file-name"
"Capital": { "label": "Capital City", "type": "string", "suggested": true },
        },
"Culture": { "label": "Primary Culture", "type": "string" },
        "color": {
"Location": { "label": "Territory Location", "description": "Geographical region or coordinates on the server map.", "type": "string", "suggested": true },
            "label": "Colour",
"Government": { "label": "Government Type", "description": "e.g., Feudal Monarchy, Technocracy, Republic", "type": "string", "suggested": true },
            "type": "string",
"Leader": { "label": "Head of State / Ruler", "type": "string", "suggested": true },
            "default": "#555"
"Religion": { "label": "State Religion", "type": "string" },
        },
"Legislature": { "label": "Governing Body", "description": "e.g., Parliament, High Council, Senate", "type": "string" },
        "textcolor": {
"Official Languages": { "label": "Official Languages", "type": "string" },
            "label": "Text Colour",
"Demonym": { "label": "Demonym", "description": "What citizens of this nation are called (e.g., Koperdamer).", "type": "string" },
            "type": "string",
"Major Settlements": { "label": "Major Cities / Towns", "type": "string" },
            "default": "white"
"Population": { "label": "Population Size", "type": "string" },
        },
"Allies": { "label": "Allied Nations", "type": "string" },
        "capital": {
"Enemies": { "label": "Rival / Enemy Factions", "type": "string" },
            "label": "Capital",
"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 },
            "type": "string"
"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" },
        },
"Status": { "label": "Status", "description": "Type 'Active', 'Inactive', or 'Collapsed'.", "type": "string", "default": "Active", "suggested": true }
        "culture": {
}
            "label": "Culture",
            "type": "string"
        },
        "location": {
            "label": "Location",
            "type": "string"
        },
        "government": {
            "label": "Government",
            "type": "string"
        },
        "leader": {
            "label": "Leader",
            "type": "string"
        },
        "religion": {
            "label": "Religion",
            "type": "string"
        },
        "legislature": {
            "label": "Legislature",
            "type": "string"
        },
        "founding_real": {
            "label": "Date of Founding (IRL)",
            "type": "string"
        },
        "founding_lore": {
            "label": "Date of Founding (Lore)",
            "type": "string"
        }
    },
    "paramOrder": [
        "title",
        "image",
        "color",
        "textcolor",
        "capital",
        "culture",
        "location",
        "government",
        "leader",
        "religion",
        "legislature",
        "founding_real",
        "founding_lore"
    ]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 15:44, 19 August 2026


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.

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            = 
| FoundedIRL         = 
| FoundedYearLore    = 
| Status             = Active
}}

=== How to use the automated Founding System:

  • Option A (Automatic): Simply type the real-world date the faction was created into FoundedIRL (e.g., | FoundedIRL = 11 August 2026). 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 FoundedIRL blank. Instead, use FoundedYearLore with a negative number (e.g., | FoundedYearLore = -15 will output Era Vetus Year 15).

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 (Real Date)FoundedIRL

Type the real-world date this faction was created (e.g., 11 August 2026). This calculates the lore year automatically.

Stringsuggested
Founded (Ancient Lore Year)FoundedYearLore

Only use this if founded before server launch. Use negative numbers for Era Vetus (e.g., -5).

Numberoptional
StatusStatus

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

Default
Active
Stringsuggested