Template:Infobox Nation: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 2: | Line 2: | ||
|- | |- | ||
<!-- MAIN TITLE HEADER --> | <!-- MAIN TITLE HEADER --> | ||
! colspan="2" style="background-color: {{{Colour|# | ! 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}}}}} | ||
|- | |- | ||
| Line 10: | Line 10: | ||
|- | |- | ||
<!-- | <!-- DATA ROWS BREAKDOWN --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! 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|# | <!-- HIDDEN CULTURE ROW --> | ||
{{#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|# | }} | ||
! 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|# | ! 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}}} | ||
{{#if: {{{ | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | <!-- HIDDEN RELIGION ROW --> | ||
{{#if: {{{Religion|}}} | | |||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Religion | |||
| {{{ | | {{{Religion}}} | ||
|- | |- | ||
}} | }} | ||
{{#if: {{{ | <!-- HIDDEN LEGISLATURE ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | {{#if: {{{Legislature|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Legislature | |||
| {{{ | | {{{Legislature}}} | ||
|- | |- | ||
}} | }} | ||
{{#if: {{{ | <!-- HIDDEN OFFICIAL LANGUAGES ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | {{#if: {{{Official Languages|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Official Languages | |||
| {{{ | | {{{Official Languages}}} | ||
|- | |- | ||
}} | }} | ||
{{#if: {{{ | <!-- HIDDEN DEMONYM ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | {{#if: {{{Demonym|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Demonym | |||
| {{{ | | {{{Demonym}}} | ||
|- | |- | ||
}} | }} | ||
{{#if: {{{ | <!-- HIDDEN MAJOR SETTLEMENTS ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | {{#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}}} | ||
|- | |- | ||
}} | }} | ||
{{#if: {{{ | ! 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|# | |||
| {{{Population|TBA}}} | |||
|- | |||
<!-- HIDDEN ALLIES ROW --> | |||
{{#if: {{{Allies|}}} | | |||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Allies | |||
| {{{ | | {{{Allies}}} | ||
|- | |- | ||
}} | }} | ||
{{#if: {{{ | <!-- HIDDEN ENEMIES ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | {{#if: {{{Enemies|}}} | | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Enemies | |||
| {{{ | | {{{Enemies}}} | ||
|- | |- | ||
}} | }} | ||
<!-- IN-GAME AGE ROW --> | <!-- IN-GAME AGE ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore) | ||
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }} | | {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }} | ||
|- | |- | ||
<!-- IN-GAME FOUNDED ROW --> | <!-- IN-GAME FOUNDED ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #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 }} | ||
|- | |- | ||
<!-- AUTOMATED REAL-WORLD FOUNDED & AGE ROW --> | <!-- AUTOMATED REAL-WORLD FOUNDED & AGE ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL) | ||
| {{#if: {{{FoundedIRL|}}} | {{{FoundedIRL}}} - ({{#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}}} - ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old) | TBA }} | ||
| Line 91: | Line 104: | ||
<!-- BOTTOM STATUS ROW --> | <!-- BOTTOM STATUS ROW --> | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! 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}}} | | style="padding: 0.4em 0.6em; font-weight: bold; color: #2f855a; border-bottom: 1px solid #1a1a1a;" | {{{Status|Active}}} | ||
|} </includeonly><noinclude> | |} </includeonly><noinclude> | ||
== Infobox | == Infobox Nation == | ||
This template displays | This template displays structured profile data for nations, kingdoms, and factions. Optional secondary parameters hide automatically if left blank to save screen space. | ||
== Usage == | == Usage == | ||
Copy and paste this clean code snippet straight onto | Copy and paste this clean code snippet straight onto nation wiki pages: | ||
<pre> | <pre> | ||
{{Infobox | {{Infobox Nation | ||
| Colour | | Colour = #1A365D | ||
| TextColour | | TextColour = #ffffff | ||
| BorderColour | | BorderColour = #0F172A | ||
| LabelColour | | LabelColour = #EDF2F7 | ||
| Name | | Name = | ||
| Image | | Image = Image.png | ||
| | | Capital = | ||
| | | Culture = | ||
| | | Location = | ||
| | | Government = | ||
| | | Leader = | ||
| | | Religion = | ||
| | | Legislature = | ||
| | | Official Languages = | ||
| | | Demonym = | ||
| | | Major Settlements = | ||
| | | Population = | ||
| FoundedYearLore | | Allies = | ||
| FoundedIRL | | Enemies = | ||
| Status | | FoundedYearLore = | ||
| FoundedIRL = | |||
| Status = Active | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 129: | Line 144: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Project Aquila's official | "description": "Project Aquila's official automated Nation and Faction Infobox.", | ||
"params": { | "params": { | ||
"Colour": { "label": " | "Colour": { "label": "Banner Background Colour", "description": "Hex code for top banner background.", "type": "string", "suggested": true }, | ||
"TextColour": { "label": " | "TextColour": { "label": "Banner Text Colour", "type": "string", "suggested": true }, | ||
"BorderColour": { "label": " | "BorderColour": { "label": "Banner Underline Colour", "type": "string" }, | ||
"LabelColour": { "label": "Label Background", "type": "string", " | "LabelColour": { "label": "Label Background Colour", "type": "string", "suggested": true }, | ||
"Name": { "label": " | "Name": { "label": "Nation Name", "type": "string", "suggested": true }, | ||
"Image": { "label": " | "Image": { "label": "Flag / Crest Image", "type": "wiki-file-name", "default": "Image.png" }, | ||
" | "Capital": { "label": "Capital City", "type": "string", "suggested": true }, | ||
" | "Culture": { "label": "Primary Culture", "description": "Hides automatically if left blank.", "type": "string" }, | ||
" | "Location": { "label": "Territory Location", "type": "string", "suggested": true }, | ||
" | "Government": { "label": "Government Type", "type": "string", "suggested": true }, | ||
" | "Leader": { "label": "Head of State / Ruler", "type": "string", "suggested": true }, | ||
" | "Religion": { "label": "State Religion", "description": "Hides automatically if left blank.", "type": "string" }, | ||
" | "Legislature": { "label": "Governing Body", "description": "Hides automatically if left blank.", "type": "string" }, | ||
" | "Official Languages": { "label": "Official Languages", "description": "Hides automatically if left blank.", "type": "string" }, | ||
" | "Demonym": { "label": "Demonym", "description": "Hides automatically if left blank.", "type": "string" }, | ||
" | "Major Settlements": { "label": "Major Cities / Towns", "description": "Hides automatically if left blank.", "type": "string" }, | ||
" | "Population": { "label": "Population Size", "type": "string", "suggested": true }, | ||
"Allies": { "label": "Allied Nations", "description": "Hides automatically if left blank.", "type": "string" }, | |||
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hides automatically if left blank.", "type": "string" }, | |||
"FoundedYearLore": { "label": "Founded Year (Lore)", "type": "number", "suggested": true }, | "FoundedYearLore": { "label": "Founded Year (Lore)", "type": "number", "suggested": true }, | ||
"FoundedIRL": { "label": "Founded (Real Date)", "description": "Must be written strictly in DD/MM/YY format (e.g., 28/07/26).", "type": "string", "suggested": true }, | "FoundedIRL": { "label": "Founded (Real Date)", "description": "Must be written strictly in DD/MM/YY format (e.g., 28/07/26).", "type": "string", "suggested": true }, | ||
Revision as of 16:57, 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
}}
TemplateData
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 | no description | String | suggested |
| Banner Underline Colour | BorderColour | no description | String | optional |
| Label Background Colour | LabelColour | no description | String | suggested |
| Nation Name | Name | no description | String | suggested |
| Flag / Crest Image | Image | no description
| File | optional |
| Capital City | Capital | no description | String | suggested |
| Primary Culture | Culture | Hides automatically if left blank. | String | optional |
| Territory Location | Location | no description | String | suggested |
| Government Type | Government | no description | String | suggested |
| Head of State / Ruler | Leader | no description | String | suggested |
| State Religion | Religion | Hides automatically if left blank. | String | optional |
| Governing Body | Legislature | Hides automatically if left blank. | String | optional |
| Official Languages | Official Languages | Hides automatically if left blank. | String | optional |
| Demonym | Demonym | Hides automatically if left blank. | String | optional |
| Major Cities / Towns | Major Settlements | Hides automatically if left blank. | String | optional |
| Population Size | Population | no description | String | suggested |
| Allied Nations | Allies | Hides automatically if left blank. | String | optional |
| Rival / Enemy Factions | Enemies | Hides automatically if left blank. | String | optional |
| Founded Year (Lore) | FoundedYearLore | no description | Number | suggested |
| Founded (Real Date) | FoundedIRL | Must be written strictly in DD/MM/YY format (e.g., 28/07/26). | String | suggested |
| Status | Status | no description
| String | suggested |