Template:Infobox settlement: Difference between revisions
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: {{{ | ! 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:{{{ | | 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]]}} | ||
|- | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; width: 40%; border-bottom: 1px solid #e2e8f0;" | Nation | ||
| {{{ | | {{{nation|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|#EDF1F5}}}; 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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Region | ||
| {{{ | | {{{region|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Population | ||
| {{{ | | {{{population|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Age (Lore) | ||
| {{{ | | {{#if: {{{FoundedYearLore|}}} | {{#expr: {{CurrentLoreYear}} - {{{FoundedYearLore}}} }} Years | 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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founded (Lore) | ||
| {{{ | | {{#if: {{{FoundedYearLore|}}} | {{#ifexpr: {{{FoundedYearLore}}} < 1 | Era Vetus Year {{#expr: abs({{{FoundedYearLore}}}) }} | Era Nova Year {{{FoundedYearLore}}} }} | 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|#EDF1F5}}}; 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 }} | ||
}} | |||
{{# | |||
|- | |- | ||
! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|# | ! style="text-align: left; padding: 0.4em 0.6em; background-color: {{{LabelColour|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Founder | ||
| {{{ | | {{{founder|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Leader | ||
| {{{ | | {{{leader|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Culture | ||
| {{{ | | {{{culture|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Religion | ||
| {{{ | | {{{religion|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Languages | ||
| {{{ | | {{{languages|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Economy | ||
| {{{ | | {{{economy|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|#EDF1F5}}}; border-bottom: 1px solid #e2e8f0;" | Major Landmarks | ||
| {{ | | {{{landmarks|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|#EDF1F5}}}; 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}}}}} | operational | prosperous = #2f855a | declining | inactive | abandoned | ruined | collapsed | fallen | dissolved = #c53030 | #2f855a }};">{{{status|Operational}}}</span> | |||
| style="padding: 0.4em 0.6em; border-bottom: 1px solid #1a1a1a;" | <span style="font-weight: bold; color: {{#switch: {{lc:{{{ | |||
|} | |} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Infobox | {{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 | ||
| | |||
| | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 118: | Line 79: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Standard Infobox for Cities and Settlements.", | ||
"params": { | "params": { | ||
" | "name": { | ||
" | "label": "Settlement Name", | ||
" | "description": "The official name of the city, town, or settlement. Defaults to the page title if left empty.", | ||
"LabelColour": { "label": "Label | "type": "string" | ||
" | }, | ||
"HeaderColour": { | |||
" | "label": "Header Banner Background Hex", | ||
" | "description": "Hex color code for the main top header banner (e.g. #5A6B7C).", | ||
" | "type": "string", | ||
" | "default": "#5A6B7C" | ||
" | }, | ||
" | "HeaderTitleColour": { | ||
" | "label": "Header Title Text Hex", | ||
" | "description": "Hex color code for the text inside the main top header (e.g. #ffffff).", | ||
"type": "string", | |||
" | "default": "#ffffff" | ||
" | }, | ||
" | "LabelColour": { | ||
" | "label": "Side Label Column Hex", | ||
" | "description": "Hex color code for the grey background on the left-side attribute labels (e.g. #EDF1F5).", | ||
"type": "string", | |||
" | "default": "#EDF1F5" | ||
"label": "Current Status | }, | ||
"description": "Select the | "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", | ||
"suggested": true, | "suggested": true, | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Operational", | "Operational", | ||
"Prosperous", | "Prosperous", | ||
"Declining", | "Declining", | ||
"Inactive", | "Inactive", | ||
"Abandoned", | |||
"Ruined", | |||
"Collapsed", | "Collapsed", | ||
"Fallen", | "Fallen", | ||
"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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Settlement Name | name | The official name of the city, town, or settlement. Defaults to the page title if left empty. | String | optional |
| Header Banner Background Hex | HeaderColour | Hex color code for the main top header banner (e.g. #5A6B7C).
| String | optional |
| Header Title Text Hex | HeaderTitleColour | Hex color code for the text inside the main top header (e.g. #ffffff).
| String | optional |
| Side Label Column Hex | LabelColour | Hex color code for the grey background on the left-side attribute labels (e.g. #EDF1F5).
| String | optional |
| Image File Name | image | The image file name for the settlement flag, crest, or portrait. Example: City_Flag.png (Do not wrap in [[File:]]). | File | optional |
| Sovereign Nation | nation | The nation or empire that controls or owns this settlement. | String | optional |
| Geographic Location | location | The specific local geographic features, island, river, or province where the settlement sits. | String | optional |
| World Region | region | The broader continent, world region, or territory district. | String | optional |
| Population Count | population | Estimated total number of inhabitants or citizens residing in the settlement. | String | optional |
| 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. | Number | optional |
| 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. | String | optional |
| Founder(s) | founder | The character, group, or nation that original established or built the settlement. | String | optional |
| Current Leader / Mayor | leader | The current ruler, mayor, governor, or administrator in charge of the settlement. | String | optional |
| Dominant Culture | culture | The primary ethnic or cultural groups inhabiting the settlement. | String | optional |
| Primary Religion | religion | The main faith, deity worship, or religious practice present in the settlement. | String | optional |
| Spoken Languages | languages | The official or primary languages spoken by the inhabitants. | String | optional |
| Economic Focus / Exports | economy | The primary industries, resources, trade goods, or financial activities of the settlement. | String | optional |
| Major Landmarks | landmarks | Notable buildings, monuments, castles, or geographical highlights within or near the settlement. | String | optional |
| Current Status | status | Select the operational or structural state of the settlement. Auto-colors text based on selection.
| String | suggested |