Template:Infobox settlement: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Tag: Reverted
Line 1: Line 1:
<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);"
<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);"
|-
|-
! colspan="2" style="background-color: {{{HeaderColour|#5A6B7C}}}; color: {{{HeaderTitleColour|#ffffff}}}; text-align: center; font-size: 125%; font-weight: bold; padding: 0.6em; border-bottom: 3px solid #3E4B57;" | {{{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 #a2a9b1;" | {{#if:{{{image|}}}|[[File:{{{image}}}|280px|center]]|[[File:Image.png|280px|center]]}}
| colspan="2" style="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image}}}|280px|center]]
{{#if: {{{Capital|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Nation
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Capital
| {{{nation|TBA}}}
| {{{Capital}}}
}}
{{#if: {{{Culture|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; 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 #e2e8f0;" | Culture
| {{{location|TBA}}}
| {{{Culture}}}
}}
{{#if: {{{Location|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Region
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Location
| {{{region|TBA}}}
| {{{Location}}}
}}
{{#if: {{{Government|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; 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 #e2e8f0;" | Government
| {{{population|TBA}}}
| {{{Government}}}
}}
{{#if: {{{Leader|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; 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 #e2e8f0;" | Leader
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }}
| {{{Leader}}}
}}
{{#if: {{{Religion|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; 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 #e2e8f0;" | Religion
| {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }}
| {{{Religion}}}
}}
{{#if: {{{Legislature|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL)
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Legislature
| {{#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 }}
| {{{Legislature}}}
}}
{{#if: {{{Official Languages|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founder
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Official Languages
| {{{founder|TBA}}}
| {{{Official Languages}}}
}}
{{#if: {{{Demonym|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; 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 #e2e8f0;" | Demonym
| {{{leader|TBA}}}
| {{{Demonym}}}
}}
{{#if: {{{Major Settlements|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Culture
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Major Settlements
| {{{culture|TBA}}}
| {{{Major Settlements}}}
}}
{{#if: {{{Population|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Religion
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Population
| {{{religion|TBA}}}
| {{{Population}}}
}}
{{#if: {{{Allies|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Languages
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Allies
| {{{languages|TBA}}}
| {{{Allies}}}
}}
{{#if: {{{Enemies|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Economy
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40% ; border-bottom: 1px solid #e2e8f0;" | Enemies
| {{{economy|TBA}}}
| {{{Enemies}}}
}}
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Major Landmarks
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore)
| {{{landmarks|TBA}}}
| {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #1a1a1a;" | Status
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (Lore)
| style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{status|Operational}}}}} | operational | prosperous = #2f855a | declining | inactive | abandoned | ruined | collapsed | fallen | dissolved = #c53030 | #2f855a }};">{{{status|Operational}}}</span>
| {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }}
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL)
| {{{FoundedIRL}}} ({{#expr: floor( ({{#time: U}} - {{#time: U | 20{{#titleparts:{{{FoundedIRL}}}|1|3}}-{{#titleparts:{{{FoundedIRL}}}|1|2}}-{{#titleparts:{{{FoundedIRL}}}|1|1}} }}) / 86400 )}} days old)
|-
! 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; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{Status}}}}}|operational|prosperous=#2f855a|vassal|subject|puppet=#d69e2e|union=#3182ce|declining=#dd6b20|inactive|collapsed|fallen=#c53030|annexed|dissolved=#742a2a|#2f855a}};">{{{Status}}}</span>
|}
|}
</includeonly><noinclude>
</includeonly><noinclude>
== 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 ==
== Usage ==
Copy and paste this clean code snippet straight onto nation wiki pages:
<pre>
<pre>
{{Infobox settlement
{{Infobox Nation
| HeaderColour      = #5A6B7C
| Colour            = #1A365D
| HeaderTitleColour = #ffffff
| TextColour        = #ffffff
| LabelColour       = #EDF1F5
| BorderColour      = #0F172A
| name             =  
| LabelColour       = #EDF2F7
| image            =  
| Name              =
| nation           =  
| Image             = Image.png
| location          =  
| Capital            =  
| region            =  
| Culture           =  
| population        =  
| Location          =  
| FoundedYearLore  =  
| Government        =  
| FoundedIRL       = DD/MM/YY
| Leader            =  
| founder          =  
| Religion          =  
| leader           =  
| Legislature       =  
| culture          =  
| Official Languages =  
| religion          =  
| Demonym           =  
| languages        =  
| Major Settlements  =
| economy          =  
| Population        =  
| landmarks         =  
| Allies            =  
| status            = Operational
| Enemies            =  
| FoundedYearLore    =  
| FoundedIRL         = DD/MM/YY
| Status            = Operational
}}
}}
</pre>
</pre>
Line 79: Line 118:
<templatedata>
<templatedata>
{
{
"description": "Standard Infobox for Cities and Settlements.",
"description": "Project Aquila's official automated Nation and Faction Infobox.",
"params": {
"params": {
"name": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for top banner background.", "type": "string", "suggested": true },
"label": "Settlement Name",
"TextColour": { "label": "Banner Text Colour", "description": "Hex code for top banner text.", "type": "string", "suggested": true },
"description": "The official name of the city, town, or settlement. Defaults to the page title if left empty.",
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string", "suggested": true },
"type": "string"
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for lower background label cells.", "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 },
"HeaderColour": {
"Image": { "label": "Flag / Crest Image (Mandatory)", "description": "Filename of the national flag or crest (e.g., Flag.png).", "type": "string", "default": "Image.png", "required": true, "suggested": true },
"label": "Header Banner Background Hex",
"Capital": { "label": "Capital City", "description": "The primary capital city or headquarters of the nation. Hides automatically if left blank.", "type": "string", "suggested": true },
"description": "Hex color code for the main top header banner (e.g. #5A6B7C).",
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string", "suggested": true },
"type": "string",
"Location": { "label": "Territory Location", "description": "Geographic location, region, or coordinates on the world map. Hides automatically if left blank.", "type": "string", "suggested": true },
"default": "#5A6B7C"
"Government": { "label": "Government Type", "description": "System of governance. Hides automatically if left blank.", "type": "string", "suggested": true },
},
"Leader": { "label": "Head of State / Ruler", "description": "Current head(s) of state or ruler(s). Hides automatically if left blank.", "type": "string", "suggested": true },
"HeaderTitleColour": {
"Religion": { "label": "State Religion", "description": "Official or primary state religion/faith. Hides automatically if left blank.", "type": "string", "suggested": true },
"label": "Header Title Text Hex",
"Legislature": { "label": "Governing Body", "description": "Primary legislative assembly or council. Hides automatically if left blank.", "type": "string", "suggested": true },
"description": "Hex color code for the text inside the main top header (e.g. #ffffff).",
"Official Languages": { "label": "Official Languages", "description": "Languages recognized by the state. Hides automatically if left blank.", "type": "string", "suggested": true },
"type": "string",
"Demonym": { "label": "Demonym", "description": "Term used to describe inhabitants. Hides automatically if left blank.", "type": "string", "suggested": true },
"default": "#ffffff"
"Major Settlements": { "label": "Major Cities / Towns", "description": "Key settlements or cities. Hides automatically if left blank.", "type": "string", "suggested": true },
},
"Population": { "label": "Population Size", "description": "Estimated total in-lore population size. Hides automatically if left blank.", "type": "string", "suggested": true },
"LabelColour": {
"Allies": { "label": "Allied Nations", "description": "Formally allied factions or blocs. Hides automatically if left blank.", "type": "string", "suggested": true },
"label": "Side Label Column Hex",
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations or adversaries. Hides automatically if left blank.", "type": "string", "suggested": true },
"description": "Hex color code for the grey background on the left-side attribute labels (e.g. #EDF1F5).",
"FoundedYearLore": { "label": "Founded Year (Lore) (Mandatory)", "description": "In-lore year the nation was founded.", "type": "number", "suggested": true, "required": true },
"type": "string",
"FoundedIRL": { "label": "Founded (Real Date) (Mandatory)", "description": "Real-world creation date in DD/MM/YY format.", "type": "string", "suggested": true, "required": true },
"default": "#EDF1F5"
"Status": {
},
"label": "Current Status (Mandatory)",
"image": {
"description": "Select the political state of the nation. Auto-colors text based on selection.",
"label": "Image File Name",
"description": "The image file name for the settlement flag, crest, or portrait. Example: City_Flag.png (Do not wrap in [[File:]]).",
"type": "wiki-file-name"
},
"nation": {
"label": "Sovereign Nation",
"description": "The nation or empire that controls or owns this settlement.",
"type": "string"
},
"location": {
"label": "Geographic Location",
"description": "The specific local geographic features, island, river, or province where the settlement sits.",
"type": "string"
},
"region": {
"label": "World Region",
"description": "The broader continent, world region, or territory district.",
"type": "string"
},
"population": {
"label": "Population Count",
"description": "Estimated total number of inhabitants or citizens residing in the settlement.",
"type": "string"
},
"FoundedYearLore": {
"label": "Founded Year (Lore)",
"description": "The in-universe year number when the settlement was founded (e.g. 3 for Era Nova Year 3, or -5 for Era Vetus Year 5). Used to automatically calculate age and era.",
"type": "number"
},
"FoundedIRL": {
"label": "Founded Date (IRL)",
"description": "The real-world date this settlement was built or established on the server. Must be formatted strictly as DD/MM/YY (e.g. 28/07/26) to calculate days old automatically.",
"type": "string"
},
"founder": {
"label": "Founder(s)",
"description": "The character, group, or nation that original established or built the settlement.",
"type": "string"
},
"leader": {
"label": "Current Leader / Mayor",
"description": "The current ruler, mayor, governor, or administrator in charge of the settlement.",
"type": "string"
},
"culture": {
"label": "Dominant Culture",
"description": "The primary ethnic or cultural groups inhabiting the settlement.",
"type": "string"
},
"religion": {
"label": "Primary Religion",
"description": "The main faith, deity worship, or religious practice present in the settlement.",
"type": "string"
},
"languages": {
"label": "Spoken Languages",
"description": "The official or primary languages spoken by the inhabitants.",
"type": "string"
},
"economy": {
"label": "Economic Focus / Exports",
"description": "The primary industries, resources, trade goods, or financial activities of the settlement.",
"type": "string"
},
"landmarks": {
"label": "Major Landmarks",
"description": "Notable buildings, monuments, castles, or geographical highlights within or near the settlement.",
"type": "string"
},
"status": {
"label": "Current Status",
"description": "Select the operational or structural state of the settlement. Auto-colors text based on selection.",
"type": "string",
"type": "string",
"default": "Operational",
"default": "Operational",
"required": true,
"suggested": true,
"suggested": true,
"suggestedvalues": [
"suggestedvalues": [
"Operational",
"Operational",
"Prosperous",
"Prosperous",
"Vassal",
"Subject",
"Puppet",
"Union",
"Declining",
"Declining",
"Inactive",
"Inactive",
"Abandoned",
"Ruined",
"Collapsed",
"Collapsed",
"Fallen",
"Fallen",
"Annexed",
"Dissolved"
"Dissolved"
]
]

Revision as of 21:16, 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Banner Background ColourColour

Hex code for top banner background.

Stringsuggested
Banner Text ColourTextColour

Hex code for top banner text.

Stringsuggested
Banner Underline ColourBorderColour

Hex code for top banner underline colour.

Stringsuggested
Label Background ColourLabelColour

Hex code for lower background label cells.

Stringsuggested
Nation NameName

The official name of the nation or faction. Defaults to page title if blank.

Stringsuggested
Flag / Crest Image (Mandatory)Image

Filename of the national flag or crest (e.g., Flag.png).

Default
Image.png
Stringrequired
Capital CityCapital

The primary capital city or headquarters of the nation. Hides automatically if left blank.

Stringsuggested
Primary CultureCulture

Dominant culture or cultural group. Hides automatically if left blank.

Stringsuggested
Territory LocationLocation

Geographic location, region, or coordinates on the world map. Hides automatically if left blank.

Stringsuggested
Government TypeGovernment

System of governance. Hides automatically if left blank.

Stringsuggested
Head of State / RulerLeader

Current head(s) of state or ruler(s). Hides automatically if left blank.

Stringsuggested
State ReligionReligion

Official or primary state religion/faith. Hides automatically if left blank.

Stringsuggested
Governing BodyLegislature

Primary legislative assembly or council. Hides automatically if left blank.

Stringsuggested
Official LanguagesOfficial Languages

Languages recognized by the state. Hides automatically if left blank.

Stringsuggested
DemonymDemonym

Term used to describe inhabitants. Hides automatically if left blank.

Stringsuggested
Major Cities / TownsMajor Settlements

Key settlements or cities. Hides automatically if left blank.

Stringsuggested
Population SizePopulation

Estimated total in-lore population size. Hides automatically if left blank.

Stringsuggested
Allied NationsAllies

Formally allied factions or blocs. Hides automatically if left blank.

Stringsuggested
Rival / Enemy FactionsEnemies

Hostile nations or adversaries. Hides automatically if left blank.

Stringsuggested
Founded Year (Lore) (Mandatory)FoundedYearLore

In-lore year the nation was founded.

Numberrequired
Founded (Real Date) (Mandatory)FoundedIRL

Real-world creation date in DD/MM/YY format.

Stringrequired
Current Status (Mandatory)Status

Select the political state of the nation. Auto-colors text based on selection.

Suggested values
Operational Prosperous Vassal Subject Puppet Union Declining Inactive Collapsed Fallen Annexed Dissolved
Default
Operational
Stringrequired