Template:Infobox Nation: Difference between revisions
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);" | ||
{| | |||
|- | |- | ||
<!-- 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}}}}} | |||
|- | |- | ||
! Capital | |||
| {{{ | <!-- 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}}} | |||
|- | |- | ||
! | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Religion | ||
| {{{ | |||
| {{{Religion|TBA}}} | |||
|- | |- | ||
! | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Legislature | ||
| {{{ | |||
| {{{Legislature|TBA}}} | |||
|- | |- | ||
! | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Official Languages | ||
| {{{ | |||
| {{{Official Languages|TBA}}} | |||
|- | |- | ||
! | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Demonym | ||
| {{{ | |||
| {{{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 | ||
| {{{ | |||
| {{{Population|TBA}}} | |||
|- | |- | ||
! | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Allies | ||
| {{{ | |||
| {{{Allies|TBA}}} | |||
|- | |- | ||
! | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Enemies | ||
| | |||
< | | {{{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) | |||
= | | {{#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) | |||
| {{#if: {{{FoundedIRL|}}} | {{#time: j F Y | {{{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="padding: 0.4em 0.6em; font-weight: bold; color: #2f855a; border-bottom: 1px solid #1a1a1a;" | {{{Status|Active}}} | ||
|} </includeonly><noinclude> | |||
== 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 | ||
| | | 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 | |||
}} | }} | ||
</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 == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Project Aquila's official automated Nation and Faction Infobox.", | |||
"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 }, | |||
"TextColour": { "label": "Banner Text Colour", "description": "Colour code for the nation's name text (e.g. #ffffff or white).", "type": "string", "suggested": true }, | |||
"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 }, | |||
"Name": { "label": "Nation Name", "description": "The official name of the nation or kingdom.", "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" }, | |||
"Capital": { "label": "Capital City", "type": "string", "suggested": true }, | |||
"Culture": { "label": "Primary Culture", "type": "string" }, | |||
"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 }, | |||
"Leader": { "label": "Head of State / Ruler", "type": "string", "suggested": true }, | |||
"Religion": { "label": "State Religion", "type": "string" }, | |||
"Legislature": { "label": "Governing Body", "description": "e.g., Parliament, High Council, Senate", "type": "string" }, | |||
"Official Languages": { "label": "Official Languages", "type": "string" }, | |||
"Demonym": { "label": "Demonym", "description": "What citizens of this nation are called (e.g., Koperdamer).", "type": "string" }, | |||
"Major Settlements": { "label": "Major Cities / Towns", "type": "string" }, | |||
"Population": { "label": "Population Size", "type": "string" }, | |||
"Allies": { "label": "Allied Nations", "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 }, | |||
"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 } | |||
} | |||
} | } | ||
</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
FoundedIRLblank. Instead, useFoundedYearLorewith a negative number (e.g.,| FoundedYearLore = -15will output Era Vetus Year 15).
TemplateData
Project Aquila's official automated Nation and Faction Infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Banner Background Colour | Colour | Hex code for the top header background (e.g. #1A365D). Defaults to theme blue. | String | suggested |
| Banner Text Colour | TextColour | Colour code for the nation's name text (e.g. #ffffff or white). | String | suggested |
| Banner Underline Colour | BorderColour | Hex code for the thick accent bar directly below the main header. | String | optional |
| Label Background Colour | LabelColour | Hex code for the background tint on the left labels (e.g. #EDF2F7). | String | suggested |
| Nation Name | Name | The official name of the nation or kingdom. | String | suggested |
| Flag / Crest Image | Image | Filename of the national flag or emblem file.
| File | optional |
| Capital City | Capital | no description | String | suggested |
| Primary Culture | Culture | no description | String | optional |
| Territory Location | Location | Geographical region or coordinates on the server map. | String | suggested |
| Government Type | Government | e.g., Feudal Monarchy, Technocracy, Republic | String | suggested |
| Head of State / Ruler | Leader | no description | String | suggested |
| State Religion | Religion | no description | String | optional |
| Governing Body | Legislature | e.g., Parliament, High Council, Senate | String | optional |
| Official Languages | Official Languages | no description | String | optional |
| Demonym | Demonym | What citizens of this nation are called (e.g., Koperdamer). | String | optional |
| Major Cities / Towns | Major Settlements | no description | String | optional |
| Population Size | Population | no description | String | optional |
| Allied Nations | Allies | no description | String | optional |
| Rival / Enemy Factions | Enemies | no description | String | optional |
| Founded (Real Date) | FoundedIRL | Type the real-world date this faction was created (e.g., 11 August 2026). This calculates the lore year automatically. | String | suggested |
| Founded (Ancient Lore Year) | FoundedYearLore | Only use this if founded before server launch. Use negative numbers for Era Vetus (e.g., -5). | Number | optional |
| Status | Status | Type 'Active', 'Inactive', or 'Collapsed'.
| String | suggested |