Template:Infobox settlement: Difference between revisions

From aquila
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(One intermediate revision by the same user not shown)
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: {{{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: {{{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="text-align: center; padding: 0.5em; background-color: #ffffff; border-bottom: 1px solid #a2a9b1;" | [[File:{{{Image}}}|280px|center]]
| 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]]}}
{{#if: {{{Capital|}}} |
|-
|-
! 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|#EDF1F5}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Nation
| {{{Capital}}}
| {{{nation|TBA}}}
}}
{{#if: {{{Culture|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Culture
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Location
| {{{Culture}}}
| {{{location|TBA}}}
}}
{{#if: {{{Location|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Location
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Region
| {{{Location}}}
| {{{region|TBA}}}
}}
{{#if: {{{Government|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Government
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Population
| {{{Government}}}
| {{{population|TBA}}}
}}
{{#if: {{{Leader|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Leader
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore)
| {{{Leader}}}
| {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | TBA }}
}}
{{#if: {{{Religion|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Religion
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founded (Lore)
| {{{Religion}}}
| {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | TBA }}
}}
{{#if: {{{Legislature|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Legislature
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founded (IRL)
| {{{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 }}
}}
{{#if: {{{Official Languages|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Official Languages
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founder
| {{{Official Languages}}}
| {{{founder|TBA}}}
}}
{{#if: {{{Demonym|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Demonym
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Leader
| {{{Demonym}}}
| {{{leader|TBA}}}
}}
{{#if: {{{Major Settlements|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Major Settlements
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Culture
| {{{Major Settlements}}}
| {{{culture|TBA}}}
}}
{{#if: {{{Population|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Population
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Religion
| {{{Population}}}
| {{{religion|TBA}}}
}}
{{#if: {{{Allies|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Allies
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Languages
| {{{Allies}}}
| {{{languages|TBA}}}
}}
{{#if: {{{Enemies|}}} |
|-
|-
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF2F7}}}; width: 40% ; border-bottom: 1px solid #e2e8f0;" | Enemies
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Economy
| {{{Enemies}}}
| {{{economy|TBA}}}
}}
|-
|-
! 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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Major Landmarks
| {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years
| {{{landmarks|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|#EDF1F5}}}; border-bottom: 1px solid #1a1a1a;" | Status
| {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }}
| 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>
|-
! 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 Nation
{{Infobox settlement
| Colour            = #1A365D
| HeaderColour      = #5A6B7C
| TextColour        = #ffffff
| HeaderTitleColour = #ffffff
| BorderColour       = #0F172A
| LabelColour       = #EDF1F5
| LabelColour        = #EDF2F7
| name             =  
| Name              =
| image            =  
| Image             = Image.png
| nation           =  
| Capital            =  
| location          =  
| Culture           =  
| region            =  
| Location          =  
| population        =  
| Government        =  
| FoundedYearLore  =  
| Leader            =  
| FoundedIRL       = DD/MM/YY
| Religion          =  
| founder          =  
| Legislature       =  
| leader           =  
| Official Languages =  
| culture          =  
| Demonym           =  
| religion          =  
| Major Settlements  =  
| languages        =  
| Population        =  
| economy          =  
| Allies            =  
| landmarks         =  
| Enemies            =  
| status            = Operational
| FoundedYearLore    =
| FoundedIRL         = DD/MM/YY
| Status            = Operational
}}
}}
</pre>
</pre>
Line 118: Line 79:
<templatedata>
<templatedata>
{
{
"description": "Project Aquila's official automated Nation and Faction Infobox.",
"description": "Standard Infobox for Cities and Settlements.",
"params": {
"params": {
"Colour": { "label": "Banner Background Colour", "description": "Hex code for top banner background.", "type": "string", "suggested": true },
"name": {
"TextColour": { "label": "Banner Text Colour", "description": "Hex code for top banner text.", "type": "string", "suggested": true },
"label": "Settlement Name",
"BorderColour": { "label": "Banner Underline Colour", "description": "Hex code for top banner underline colour.", "type": "string", "suggested": true },
"description": "The official name of the city, town, or settlement. Defaults to the page title if left empty.",
"LabelColour": { "label": "Label Background Colour", "description": "Hex code for lower background label cells.", "type": "string", "suggested": true },
"type": "string"
"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 (Mandatory)", "description": "Filename of the national flag or crest (e.g., Flag.png).", "type": "string", "default": "Image.png", "required": true, "suggested": true },
"HeaderColour": {
"Capital": { "label": "Capital City", "description": "The primary capital city or headquarters of the nation. Hides automatically if left blank.", "type": "string", "suggested": true },
"label": "Header Banner Background Hex",
"Culture": { "label": "Primary Culture", "description": "Dominant culture or cultural group. Hides automatically if left blank.", "type": "string", "suggested": true },
"description": "Hex color code for the main top header banner (e.g. #5A6B7C).",
"Location": { "label": "Territory Location", "description": "Geographic location, region, or coordinates on the world map. Hides automatically if left blank.", "type": "string", "suggested": true },
"type": "string",
"Government": { "label": "Government Type", "description": "System of governance. Hides automatically if left blank.", "type": "string", "suggested": true },
"default": "#5A6B7C"
"Leader": { "label": "Head of State / Ruler", "description": "Current head(s) of state or ruler(s). Hides automatically if left blank.", "type": "string", "suggested": true },
},
"Religion": { "label": "State Religion", "description": "Official or primary state religion/faith. Hides automatically if left blank.", "type": "string", "suggested": true },
"HeaderTitleColour": {
"Legislature": { "label": "Governing Body", "description": "Primary legislative assembly or council. Hides automatically if left blank.", "type": "string", "suggested": true },
"label": "Header Title Text Hex",
"Official Languages": { "label": "Official Languages", "description": "Languages recognized by the state. Hides automatically if left blank.", "type": "string", "suggested": true },
"description": "Hex color code for the text inside the main top header (e.g. #ffffff).",
"Demonym": { "label": "Demonym", "description": "Term used to describe inhabitants. Hides automatically if left blank.", "type": "string", "suggested": true },
"type": "string",
"Major Settlements": { "label": "Major Cities / Towns", "description": "Key settlements or cities. Hides automatically if left blank.", "type": "string", "suggested": true },
"default": "#ffffff"
"Population": { "label": "Population Size", "description": "Estimated total in-lore population size. Hides automatically if left blank.", "type": "string", "suggested": true },
},
"Allies": { "label": "Allied Nations", "description": "Formally allied factions or blocs. Hides automatically if left blank.", "type": "string", "suggested": true },
"LabelColour": {
"Enemies": { "label": "Rival / Enemy Factions", "description": "Hostile nations or adversaries. Hides automatically if left blank.", "type": "string", "suggested": true },
"label": "Side Label Column Hex",
"FoundedYearLore": { "label": "Founded Year (Lore) (Mandatory)", "description": "In-lore year the nation was founded.", "type": "number", "suggested": true, "required": true },
"description": "Hex color code for the grey background on the left-side attribute labels (e.g. #EDF1F5).",
"FoundedIRL": { "label": "Founded (Real Date) (Mandatory)", "description": "Real-world creation date in DD/MM/YY format.", "type": "string", "suggested": true, "required": true },
"type": "string",
"Status": {
"default": "#EDF1F5"
"label": "Current Status (Mandatory)",
},
"description": "Select the political state of the nation. Auto-colors text based on selection.",
"image": {
"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"
]
]

Latest revision as of 21:17, 6 September 2026


Usage

{{Infobox settlement
| HeaderColour      = #5A6B7C
| HeaderTitleColour = #ffffff
| LabelColour       = #EDF1F5
| name              = 
| image             = 
| nation            = 
| location          = 
| region            = 
| population        = 
| FoundedYearLore   = 
| FoundedIRL        = DD/MM/YY
| founder           = 
| leader            = 
| culture           = 
| religion          = 
| languages         = 
| economy           = 
| landmarks         = 
| status            = Operational
}}

Standard Infobox for Cities and Settlements.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Settlement Namename

The official name of the city, town, or settlement. Defaults to the page title if left empty.

Stringoptional
Header Banner Background HexHeaderColour

Hex color code for the main top header banner (e.g. #5A6B7C).

Default
#5A6B7C
Stringoptional
Header Title Text HexHeaderTitleColour

Hex color code for the text inside the main top header (e.g. #ffffff).

Default
#ffffff
Stringoptional
Side Label Column HexLabelColour

Hex color code for the grey background on the left-side attribute labels (e.g. #EDF1F5).

Default
#EDF1F5
Stringoptional
Image File Nameimage

The image file name for the settlement flag, crest, or portrait. Example: City_Flag.png (Do not wrap in [[File:]]).

Fileoptional
Sovereign Nationnation

The nation or empire that controls or owns this settlement.

Stringoptional
Geographic Locationlocation

The specific local geographic features, island, river, or province where the settlement sits.

Stringoptional
World Regionregion

The broader continent, world region, or territory district.

Stringoptional
Population Countpopulation

Estimated total number of inhabitants or citizens residing in the settlement.

Stringoptional
Founded Year (Lore)FoundedYearLore

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.

Numberoptional
Founded Date (IRL)FoundedIRL

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.

Stringoptional
Founder(s)founder

The character, group, or nation that original established or built the settlement.

Stringoptional
Current Leader / Mayorleader

The current ruler, mayor, governor, or administrator in charge of the settlement.

Stringoptional
Dominant Cultureculture

The primary ethnic or cultural groups inhabiting the settlement.

Stringoptional
Primary Religionreligion

The main faith, deity worship, or religious practice present in the settlement.

Stringoptional
Spoken Languageslanguages

The official or primary languages spoken by the inhabitants.

Stringoptional
Economic Focus / Exportseconomy

The primary industries, resources, trade goods, or financial activities of the settlement.

Stringoptional
Major Landmarkslandmarks

Notable buildings, monuments, castles, or geographical highlights within or near the settlement.

Stringoptional
Current Statusstatus

Select the operational or structural state of the settlement. Auto-colors text based on selection.

Suggested values
Operational Prosperous Declining Inactive Abandoned Ruined Collapsed Fallen Dissolved
Default
Operational
Stringsuggested