Template:Infobox settlement: Difference between revisions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><table 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);"> | ||
<tr> | |||
<th 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}}}}}</th> | |||
</tr> | |||
<tr> | |||
<td colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;"><nowiki/>[[File:{{{Image}}}|280px|center]]</td> | |||
</tr> | |||
{{#if: {{{Capital|}}} | | {{#if: {{{Capital|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Capital</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Capital}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Culture|}}} | | {{#if: {{{Culture|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Culture</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Culture}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Location|}}} | | {{#if: {{{Location|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Location</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Location}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Government|}}} | | {{#if: {{{Government|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Government</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Government}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Leader|}}} | | {{#if: {{{Leader|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Leader</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Leader}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Religion|}}} | | {{#if: {{{Religion|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Religion</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Religion}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Legislature|}}} | | {{#if: {{{Legislature|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Legislature</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Legislature}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Official Languages|}}} | | {{#if: {{{Official Languages|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Official Languages</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Official Languages}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Demonym|}}} | | {{#if: {{{Demonym|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Demonym</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Demonym}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Major Settlements|}}} | | {{#if: {{{Major Settlements|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Major Settlements</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Major Settlements}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Population|}}} | | {{#if: {{{Population|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Population</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Population}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Allies|}}} | | {{#if: {{{Allies|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Allies</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Allies}}}</td> | |||
</tr> | |||
}} | }} | ||
{{#if: {{{Enemies|}}} | | {{#if: {{{Enemies|}}} | | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Enemies</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{Enemies}}}</td> | |||
</tr> | |||
}} | }} | ||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Age (Lore)</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years</td> | |||
</tr> | |||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Founded (Lore)</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }}</td> | |||
</tr> | |||
<tr> | |||
<th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;">Founded (IRL)</th> | |||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #e2e8f0;">{{{FoundedIRL}}} {{#iferror: ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old) | }}</td> | |||
</tr> | |||
<tr> | |||
</includeonly><noinclude> | <th style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #1a1a1a;">Status</th> | ||
<td style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;"><span style="font-weight: bold; color: {{#switch: {{lc:{{{Status|{{{status|Operational}}}}}}}}|operational|prosperous=#2f855a|vassal|subject|puppet=#d69e2e|union=#3182ce|declining=#dd6b20|inactive|collapsed|fallen=#c53030|annexed|dissolved=#742a2a|#2f855a}};">{{{Status|{{{status|Operational}}}}}}</span></td> | |||
</tr> | |||
</table></includeonly><noinclude> | |||
== Infobox Nation == | == Infobox Nation == | ||
Revision as of 21:17, 6 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
| Name =
| Image = Image.png
| Capital =
| Culture =
| Location =
| Government =
| Leader =
| Religion =
| Legislature =
| Official Languages =
| Demonym =
| Major Settlements =
| Population =
| Allies =
| Enemies =
| FoundedYearLore =
| FoundedIRL = DD/MM/YY
| 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 |
| Nation Name | Name | The official name of the nation or faction. Defaults to page title if blank. | String | suggested |
| Flag / Crest Image (Mandatory) | Image | Filename of the national flag or crest (e.g., Flag.png).
| String | required |
| Capital City | Capital | The primary capital city or headquarters of the nation. Hides automatically if left blank. | 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. Hides automatically if left blank. | String | suggested |
| Government Type | Government | System of governance. Hides automatically if left blank. | String | suggested |
| Head of State / Ruler | Leader | Current head(s) of state or ruler(s). Hides automatically if left blank. | String | suggested |
| State Religion | Religion | Official or primary state religion/faith. Hides automatically if left blank. | String | suggested |
| Governing Body | Legislature | Primary legislative assembly or council. 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. Hides automatically if left blank. | String | suggested |
| Major Cities / Towns | Major Settlements | Key settlements or cities. Hides automatically if left blank. | String | suggested |
| Population Size | Population | Estimated total in-lore population size. Hides automatically if left blank. | String | suggested |
| Allied Nations | Allies | Formally allied factions or blocs. Hides automatically if left blank. | String | suggested |
| Rival / Enemy Factions | Enemies | Hostile nations or adversaries. Hides automatically if left blank. | String | suggested |
| Founded Year (Lore) (Mandatory) | FoundedYearLore | In-lore year the nation was founded. | Number | required |
| Founded (Real Date) (Mandatory) | FoundedIRL | Real-world creation date in DD/MM/YY format. | String | required |
| Current Status (Mandatory) | Status | Select the political state of the nation. Auto-colors text based on selection.
| String | required |