Template:Infobox Nation: Difference between revisions

From Knightspire Wiki
Jump to navigationJump to search
Content deleted Content added
Created page with "<includeonly> {| class="infobox" |- ! colspan="2" class="infobox-header" style="background: {{{color|#d8d8d8}}};" | {{{name|{{PAGENAME}}}}} |- {{#if: {{{image|}}} | | colspan="2" class="infobox-image" | [[File:{{{image}}}|250px]] {{#if: {{{caption|}}}| <div class="infobox-caption">{{{caption}}}</div> }} }} |- {{#if: {{{flag|}}} | ! Flag | [[File:{{{flag}}}|120px]] }} |- {{#if: {{{capital|}}} | ! Capital | {{{capital}}} }} |- {{#if: {{{culture|}}} | ! Culture | {{{cul..."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<includeonly>
{| class="infobox"
{| class="infobox"
|-
! colspan="2" class="infobox-header" style="background: {{{color|#d8d8d8}}};" |
{{{name|{{PAGENAME}}}}}


|- {{#if: {{{image|}}} |
|- {{#if: {{{nation_name|}}} | | style="display:none;" }}
! colspan="2" class="infobox-header" style="background-color: {{{hexcode|#eaecf0}}}; text-align:center; font-size:125%;" |
{{{nation_name|{{PAGENAME}}}}}

|- {{#if: {{{image1|}}} | | style="display:none;" }}
| colspan="2" class="infobox-image" |
| colspan="2" class="infobox-image" |
[[File:{{{image}}}|250px]]
[[File:{{{image1}}}|250px]]
{{#if: {{{caption|}}}|
<div class="infobox-caption">{{{caption}}}</div>
}}
}}


|- {{#if: {{{flag|}}} |
{{#if: {{{caption-image1|}}} |
<div class="infobox-caption">{{{caption-image1}}}</div>
! Flag
| [[File:{{{flag}}}|120px]]
}}
}}


|- {{#if: {{{capital|}}} |
|- {{#if: {{{capital|}}} | | style="display:none;" }}
! Capital
! Capital
| {{{capital}}}
| {{{capital}}}
}}


|- {{#if: {{{culture|}}} |
|- {{#if: {{{largest_city|}}} | | style="display:none;" }}
! Largest city
! Culture
| {{{culture}}}
| {{{largest_city}}}
}}


|- {{#if: {{{location|}}} |
|- {{#if: {{{languages|}}} | | style="display:none;" }}
! Official languages
! Location
| {{{location}}}
| {{{languages}}}
}}


|- {{#if: {{{government|}}} |
|- {{#if: {{{demonym|}}} | | style="display:none;" }}
! Demonym
! Government
| {{{government}}}
| {{{demonym}}}
}}


|- {{#if: {{{leader|}}} |
|- {{#if: {{{religion|}}} | | style="display:none;" }}
! Leader
| {{{leader}}}
}}

|- {{#if: {{{religion|}}} |
! Religion
! Religion
| {{{religion}}}
| {{{religion}}}
}}


|- {{#if: {{{legislature|}}} |
|- {{#if: {{{government|{{{form_of_government|}}}}}} | | style="display:none;" }}
! Government
| {{{government|{{{form_of_government|}}}}}}

|- {{#if: {{{leader_name|{{{leader|}}}}}} | | style="display:none;" }}
! Head of state
| {{{leader_name|{{{leader|}}}}}}

|- {{#if: {{{constitution|}}} | | style="display:none;" }}
! Legislature
! Legislature
| {{{legislature}}}
| {{{constitution}}}
}}


|- {{#if: {{{population|}}} |
|- {{#if: {{{population|}}} | | style="display:none;" }}
! Population
! Population
| {{{population}}}
| {{{population}}}
}}


|- {{#if: {{{founded|}}} |
|- {{#if: {{{currency|}}} | | style="display:none;" }}
! Currency
! Founded
| {{{founded}}}
| {{{currency}}}
}}


|- {{#if: {{{founded|}}} |
|- {{#if: {{{culture|}}} | | style="display:none;" }}
! Culture
! Lore Year
| {{{culture}}}
| {{#invoke:KnightspireDate|loreYear|{{{founded}}}}}

}}
|- {{#if: {{{location|}}} | | style="display:none;" }}
! Location
| {{{location}}}

|- {{#if: {{{founding_date|}}} | | style="display:none;" }}
! Founded (IRL)
| {{{founding_date}}}

|- {{#if: {{{founding_date|}}} | | style="display:none;" }}
! Founded (Lore)
| {{#invoke:KnightspireDate|loreYear|{{{founding_date}}}}}


|}
|}

</includeonly>
[[Category:Nations]]
</onlyinclude>


<noinclude>
<noinclude>
Line 77: Line 81:
<pre>
<pre>
{{Infobox Nation
{{Infobox Nation
| name = Furstenmark
| nation_name = Furstenmark
| population = 2 Citizens
| color = #7d7d7d
| culture = Furstenburgish
| image = FurstenmarkMap.png
| location = Volkdorf Plains
| caption = Territorial extent of Furstenmark.
| form_of_government = Mercenary Stratocracy
| flag = FurstenmarkFlag.png
| leader_name = Martin von Lindenblute
| capital = Furstenburg
| religion = Gottspelite
| culture = Furstenlander
| constitution = Landsknecht Charters
| location = Volkdorf Plains
| image1 = Furstenmark_flag.png
| government = Stratocracy
| caption-image1 = Flag of Furstenmark.
| leader = Martin von Lindenblute
| hexcode = #c49b2c
| religion = Gottspellitism
| capital = Volkdorf
| founded = 2026-05-14
| founding_date = 2026-05-1
| languages = Common
| demonym = Furstenburgish
}}
}}
</pre>
</pre>
{{Infobox Nation
| nation_name = Furstenmark
| population = 2 Citizens
| culture = Furstenburgish
| location = Volkdorf Plains
| form_of_government = Mercenary Stratocracy
| leader_name = Martin von Lindenblute
| religion = Gottspelite
| constitution = Landsknecht Charters
| image1 = Furstenmark_flag.png
| caption-image1 = Flag of Furstenmark.
| hexcode = #c49b2c
| capital = Volkdorf
| founding_date = 2026-05-01
| languages = Common
| demonym = Furstenburgish
}}


== Notes ==
== Notes ==


* The <code>founded</code> parameter must use ISO date format:
* <code>founding_date</code> must use ISO date formatting:

<pre>
<pre>
YYYY-MM-DD
YYYY-MM-DD
Line 100: Line 125:


Example:
Example:

<pre>
<pre>
2026-05-14
2026-05-15
</pre>
</pre>


* Lore Year is automatically calculated using [[Module:KnightspireDate]].
* Lore year is automatically calculated by [[Module:KnightspireDate]].


== TemplateData ==
== TemplateData ==
Line 112: Line 138:
"description": "Infobox for nations and sovereign states.",
"description": "Infobox for nations and sovereign states.",
"params": {
"params": {
"name": {
"nation_name": {
"label": "Name",
"label": "Nation Name",
"type": "string",
"type": "string",
"required": true
"required": true
},
},
"color": {
"image1": {
"label": "Header Color",
"label": "Image",
"type": "string",
"default": "#d8d8d8"
},
"image": {
"label": "Main Image",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"caption": {
"caption-image1": {
"label": "Image Caption",
"label": "Image Caption",
"type": "string"
"type": "string"
},
},
"flag": {
"hexcode": {
"label": "Flag",
"label": "Header Color",
"type": "wiki-file-name"
"type": "string",
"default": "#d8d8d8"
},
},
"capital": {
"capital": {
Line 146: Line 168:
"type": "string"
"type": "string"
},
},
"government": {
"form_of_government": {
"label": "Government",
"label": "Government",
"type": "string"
"type": "string"
},
},
"leader": {
"leader_name": {
"label": "Leader",
"label": "Leader",
"type": "string"
"type": "string"
Line 158: Line 180:
"type": "string"
"type": "string"
},
},
"legislature": {
"constitution": {
"label": "Legislature",
"label": "Legislature",
"type": "string"
"type": "string"
Line 166: Line 188:
"type": "string"
"type": "string"
},
},
"founded": {
"languages": {
"label": "Founded",
"label": "Languages",
"description": "Must use YYYY-MM-DD format.",
"type": "string"
},
"currency": {
"label": "Currency",
"type": "string"
},
"demonym": {
"label": "Demonym",
"type": "string"
},
"founding_date": {
"label": "Founding Date",
"description": "Use YYYY-MM-DD format.",
"type": "date"
"type": "date"
}
}
Line 174: Line 208:
}
}
</templatedata>
</templatedata>

[[Category:Infobox Templates]]


</noinclude>
</noinclude>

Latest revision as of 13:06, 17 May 2026

Infobox Nation

[[File:{{{image1}}}|250px]]


Capital {{{capital}}}
Largest city {{{largest_city}}}
Official languages {{{languages}}}
Demonym {{{demonym}}}
Religion {{{religion}}}
Government
Head of state
Legislature {{{constitution}}}
Population {{{population}}}
Currency {{{currency}}}
Culture {{{culture}}}
Location {{{location}}}
Founded (IRL) {{{founding_date}}}
Founded (Lore) Invalid date



Usage

{{Infobox Nation
| nation_name = Furstenmark
| population = 2 Citizens
| culture = Furstenburgish
| location = Volkdorf Plains
| form_of_government = Mercenary Stratocracy
| leader_name = Martin von Lindenblute
| religion = Gottspelite
| constitution = Landsknecht Charters
| image1 = Furstenmark_flag.png
| caption-image1 = Flag of Furstenmark.
| hexcode = #c49b2c
| capital = Volkdorf
| founding_date = 2026-05-1
| languages = Common
| demonym = Furstenburgish
}}

Furstenmark

Flag of Furstenmark.
Capital Volkdorf
Largest city {{{largest_city}}}
Official languages Common
Demonym Furstenburgish
Religion Gottspelite
Government Mercenary Stratocracy
Head of state Martin von Lindenblute
Legislature Landsknecht Charters
Population 2 Citizens
Currency {{{currency}}}
Culture Furstenburgish
Location Volkdorf Plains
Founded (IRL) 2026-05-01
Founded (Lore) Year 1


Notes

  • founding_date must use ISO date formatting:
YYYY-MM-DD

Example:

2026-05-15

TemplateData

Infobox for nations and sovereign states.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Nation Namenation_name

no description

Stringrequired
Imageimage1

no description

Fileoptional
Image Captioncaption-image1

no description

Stringoptional
Header Colorhexcode

no description

Default
#d8d8d8
Stringoptional
Capitalcapital

no description

Stringoptional
Cultureculture

no description

Stringoptional
Locationlocation

no description

Stringoptional
Governmentform_of_government

no description

Stringoptional
Leaderleader_name

no description

Stringoptional
Religionreligion

no description

Stringoptional
Legislatureconstitution

no description

Stringoptional
Populationpopulation

no description

Stringoptional
Languageslanguages

no description

Stringoptional
Currencycurrency

no description

Stringoptional
Demonymdemonym

no description

Stringoptional
Founding Datefounding_date

Use YYYY-MM-DD format.

Dateoptional