Template:Infobox Nation: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 3: | Line 3: | ||
! 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}}}}} | ||
|- | |- | ||
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid # | | colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | [[File:{{{Image|Image.png}}}|280px|center]] | ||
|- | |- | ||
! 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 {{{LineColour|#e2e8f0}}};" | Capital | ||
| {{{Capital|TBA}}} | | {{{Capital|TBA}}} | ||
{{#if: {{{Culture|}}} | {{!}}- | {{#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 {{{LineColour|#e2e8f0}}};" {{!}} Culture | ||
{{!}} {{{Culture}}} }} | {{!}} {{{Culture}}} }} | ||
|- | |- | ||
! 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}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#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}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#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}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Leader | ||
| {{{Leader|TBA}}} | | {{{Leader|TBA}}} | ||
{{#if: {{{Religion|}}} | {{!}}- | {{#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 {{{LineColour|#e2e8f0}}};" {{!}} Religion | ||
{{!}} {{{Religion}}} }} | {{!}} {{{Religion}}} }} | ||
{{#if: {{{Legislature|}}} | {{!}}- | {{#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 {{{LineColour|#e2e8f0}}};" {{!}} Legislature | ||
{{!}} {{{Legislature}}} }} | {{!}} {{{Legislature}}} }} | ||
{{#if: {{{Official Languages|}}} | {{!}}- | {{#if: {{{Official Languages|}}} | {{!}}- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Official Languages | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Official Languages | ||
{{!}} {{{Official Languages}}} }} | {{!}} {{{Official Languages}}} }} | ||
{{#if: {{{Demonym|}}} | {{!}}- | {{#if: {{{Demonym|}}} | {{!}}- | ||
! 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 {{{LineColour|#e2e8f0}}};" {{!}} Demonym | ||
{{!}} {{{Demonym}}} }} | {{!}} {{{Demonym}}} }} | ||
{{#if: {{{Major Settlements|}}} | {{!}}- | {{#if: {{{Major Settlements|}}} | {{!}}- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Major Settlements | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Major Settlements | ||
{{!}} {{{Major Settlements}}} }} | {{!}} {{{Major Settlements}}} }} | ||
|- | |- | ||
! 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}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Population | ||
| {{{Population|TBA}}} | | {{{Population|TBA}}} | ||
{{#if: {{{Allies|}}} | {{!}}- | {{#if: {{{Allies|}}} | {{!}}- | ||
! 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 {{{LineColour|#e2e8f0}}};" {{!}} Allies | ||
{{!}} {{{Allies}}} }} | {{!}} {{{Allies}}} }} | ||
{{#if: {{{Enemies|}}} | {{!}}- | {{#if: {{{Enemies|}}} | {{!}}- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Enemies | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Enemies | ||
{{!}} {{{Enemies}}} }} | {{!}} {{{Enemies}}} }} | ||
|- | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore) | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Age (Lore){{#if: {{{DissolvedYearLore|}}} | <span style="font-size: 75%; font-weight: normal; color: #718096; display: block;">(Active Span)</span> }} | ||
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }} | | {{#if: {{{FoundedYearLore|}}} | {{#expr: ({{#if: {{{DissolvedYearLore|}}} | {{{DissolvedYearLore}}} | {{CurrentLoreYear}} }} - {{{FoundedYearLore}}}) }} Years | TBA }} | ||
|- | |- | ||
! 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}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" | Founded (Lore) | ||
| {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }} | | {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }} | ||
|- | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL) | {{#if: {{{DissolvedYearLore|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#e2e8f0}}};" {{!}} Dissolved (Lore) | |||
{{!}} {{#ifexpr: {{{DissolvedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{DissolvedYearLore}}}) }} | Era Nova Year {{{DissolvedYearLore}}} }} | |||
{{!}}-}} | |||
|- | |||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid {{{LineColour|#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 }} | | {{#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 }} | ||
|- | |- | ||
| Line 69: | Line 74: | ||
| BorderColour = #0F172A | | BorderColour = #0F172A | ||
| LabelColour = #EDF2F7 | | LabelColour = #EDF2F7 | ||
| LineColour = #e2e8f0 | |||
| Name = | | Name = | ||
| Image = Image.png | | Image = Image.png | ||
| Line 85: | Line 91: | ||
| Enemies = | | Enemies = | ||
| FoundedYearLore = | | FoundedYearLore = | ||
| DissolvedYearLore = | |||
| FoundedIRL = | | FoundedIRL = | ||
| Status = Operational | | Status = Operational | ||
| Line 98: | Line 105: | ||
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string", "suggested": true }, | "BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string", "suggested": true }, | ||
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for lower background label cells.", "type": "string", "suggested": true }, | "LabelColour": { "label": "Label Background Colour", "description": "Hex code for lower background label cells.", "type": "string", "suggested": true }, | ||
"LineColour": { "label": "Internal Grid Line Colour", "description": "Hex code for the thin divider lines between table rows (defaults to #e2e8f0).", "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 }, | "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 crest (e.g., Flag.png).", "type": "string", "default": "Image.png", "suggested": true }, | "Image": { "label": "Flag / Crest Image", "description": "Filename of the national flag or crest (e.g., Flag.png).", "type": "string", "default": "Image.png", "suggested": true }, | ||
| Line 114: | Line 122: | ||
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string", "suggested": true }, | "Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string", "suggested": true }, | ||
"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", "suggested": true, "required": true }, | "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", "suggested": true, "required": true }, | ||
"DissolvedYearLore": { "label": "Dissolved Year (Lore)", "description": "In-lore year the nation collapsed or dissolved. Locks the active lifespan span calculation. Optional.", "type": "number", "required": false }, | |||
"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", "suggested": true, "required": true }, | "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", "suggested": true, "required": true }, | ||
"Status": { | "Status": { | ||
| Line 120: | Line 129: | ||
"type": "string", | "type": "string", | ||
"default": "Operational", | "default": "Operational", | ||
" | "required": true, | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Operational", | "Operational", | ||
Revision as of 13:49, 20 September 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
| LineColour = #e2e8f0
| Name =
| Image = Image.png
| Capital =
| Culture =
| Location =
| Government =
| Leader =
| Religion =
| Legislature =
| Official Languages =
| Demonym =
| Major Settlements =
| Population =
| Allies =
| Enemies =
| FoundedYearLore =
| DissolvedYearLore =
| FoundedIRL =
| Status = Operational
}}
Project Aquila's official automated Nation and Faction Infobox.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Banner Background Colour | Colour | Hex code for top banner background. | String | suggested |
| Banner Text Colour | TextColour | Hex code for top banner text. | String | suggested |
| Banner Underline Colour | BorderColour | Hex code for top banner underline colour. | String | suggested |
| Label Background Colour | LabelColour | Hex code for lower background label cells. | String | suggested |
| Internal Grid Line Colour | LineColour | Hex code for the thin divider lines between table rows (defaults to #e2e8f0). | String | suggested |
| Nation Name | Name | The official name of the nation or faction. Defaults to page title if blank. | String | suggested |
| Flag / Crest Image | Image | Filename of the national flag or crest (e.g., Flag.png).
| String | suggested |
| Capital City | Capital | The primary capital city or headquarters of the nation. | String | suggested |
| Primary Culture | Culture | Dominant culture or cultural group. Hides automatically if left blank. | String | suggested |
| Territory Location | Location | Geographic location, region, or coordinates on the world map. | String | suggested |
| Government Type | Government | System of governance (e.g., Technocracy, Monarchy, Republic). | String | suggested |
| Head of State / Ruler | Leader | Current head(s) of state, ruler(s), or primary executive leadership. | String | suggested |
| State Religion | Religion | Official or primary state religion/faith. Hides automatically if left blank. | String | suggested |
| Governing Body | Legislature | Primary legislative assembly, council, or parliament. Hides automatically if left blank. | String | suggested |
| Official Languages | Official Languages | Languages recognized by the state. Hides automatically if left blank. | String | suggested |
| Demonym | Demonym | Term used to describe inhabitants or members. Hides automatically if left blank. | String | suggested |
| Major Cities / Towns | Major Settlements | Key settlements, cities, or outposts. Hides automatically if left blank. | String | suggested |
| Population Size | Population | Estimated total in-lore population size or member count. | String | suggested |
| Allied Nations | Allies | Formally allied factions, nations, or blocs. Hides automatically if left blank. | String | suggested |
| Rival / Enemy Factions | Enemies | Hostile nations, rival factions, or adversaries. Hides automatically if left blank. | String | suggested |
| 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. | Number | required |
| Dissolved Year (Lore) | DissolvedYearLore | In-lore year the nation collapsed or dissolved. Locks the active lifespan span calculation. Optional. | Number | optional |
| Founded (Real Date) | FoundedIRL | Real-world creation date. Must be written strictly in DD/MM/YY format (e.g., 28/07/26). | String | required |
| Current Status | Status | Select the political state of the nation. Auto-colors text based on selection.
| String | required |