Template:Infobox Nation: Difference between revisions
No edit summary |
No edit summary |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 7: | Line 7: | ||
! 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 #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 | ||
{{!}} {{{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}}}; border-bottom: 1px solid #e2e8f0;" | Location | ||
| Line 18: | Line 19: | ||
! 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}}}; border-bottom: 1px solid #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 | ||
{{!}} {{{Religion}}} }} | |||
{{#if: {{{Legislature|}}} | | {{#if: {{{Legislature|}}} | {{!}}- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Legislature | |||
{{#if: {{{Official Languages|}}} | | {{!}} {{{Legislature}}} }} | ||
{{#if: {{{Official Languages|}}} | {{!}}- | |||
{{#if: {{{Demonym|}}} | | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Official Languages | ||
{{!}} {{{Official Languages}}} }} | |||
{{#if: {{{Major Settlements|}}} | | {{#if: {{{Demonym|}}} | {{!}}- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} Demonym | |||
{{!}} {{{Demonym}}} }} | |||
{{#if: {{{Major Settlements|}}} | {{!}}- | |||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} 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}}}; border-bottom: 1px solid #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 | ||
{{!}} {{{Allies}}} }} | |||
{{#if: {{{Enemies|}}} | | {{#if: {{{Enemies|}}} | {{!}}- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" {{!}} 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}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore) | ||
| Line 43: | Line 51: | ||
|- | |- | ||
! 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|}}} | {{{FoundedIRL}}} | | {{#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 }} | ||
|- | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #1a1a1a;" | Status | ! 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: {{#switch: {{lc:{{{status|active}}}}} | active | | style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{Status|{{{status|active}}}}}}}}|active|operational|prosperous=#2f855a|vassal|subject|puppet=#d69e2e|union=#3182ce|declining=#dd6b20|inactive|collapsed|fallen=#c53030|annexed|dissolved=#742a2a|#2f855a}};">{{{Status|{{{status|Active}}}}}}</span> | ||
|} </includeonly><noinclude> | |} | ||
</includeonly><noinclude> | |||
== Infobox Nation == | == Infobox Nation == | ||
| Line 105: | Line 113: | ||
"Allies": { "label": "Allied Nations", "description": "Formally allied factions, nations, or blocs. Hides automatically if left blank.", "type": "string" }, | "Allies": { "label": "Allied Nations", "description": "Formally allied factions, nations, or blocs. Hides automatically if left blank.", "type": "string" }, | ||
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string" }, | "Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations, rival factions, or adversaries. Hides automatically if left blank.", "type": "string" }, | ||
"FoundedYearLore": { "label": "Founded Year (Lore)", "description": "In-lore year the nation was founded. If your nation was made 1000 years ago in lore, | "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", "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", "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", "required": true }, | ||
"Status": { | |||
"label": "Current Status", | |||
"description": "Select the political state of the nation. Auto-colors text based on selection.", | |||
"type": "string", | |||
"default": "Active", | |||
"suggested": true, | |||
"suggestedvalues": [ | |||
"Active", | |||
"Operational", | |||
"Prosperous", | |||
"Vassal", | |||
"Subject", | |||
"Puppet", | |||
"Union", | |||
"Declining", | |||
"Inactive", | |||
"Collapsed", | |||
"Fallen", | |||
"Annexed", | |||
"Dissolved" | |||
] | |||
} | |||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | |||
Latest revision as of 21:33, 19 August 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
| Name =
| Image = Image.png
| Capital =
| Culture =
| Location =
| Government =
| Leader =
| Religion =
| Legislature =
| Official Languages =
| Demonym =
| Major Settlements =
| Population =
| Allies =
| Enemies =
| FoundedYearLore =
| FoundedIRL =
| Status = Active
}}
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 | optional |
| Label Background Colour | LabelColour | Hex code for lower background label cells. | 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).
| File | optional |
| 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 | optional |
| 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 | optional |
| Governing Body | Legislature | Primary legislative assembly, council, or parliament. Hides automatically if left blank. | String | optional |
| Official Languages | Official Languages | Languages recognized by the state. Hides automatically if left blank. | String | optional |
| Demonym | Demonym | Term used to describe inhabitants or members. Hides automatically if left blank. | String | optional |
| Major Cities / Towns | Major Settlements | Key settlements, cities, or outposts. Hides automatically if left blank. | String | optional |
| 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 | optional |
| Rival / Enemy Factions | Enemies | Hostile nations, rival factions, or adversaries. Hides automatically if left blank. | String | optional |
| 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 |
| 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 | suggested |