Template:Infobox Nation: Difference between revisions

From Knightspire Wiki
Jump to navigationJump to search
Content deleted Content added
No edit summary
No edit summary
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;" }}
! scope="col" colspan="2" class="infobox-header" style="background-color: {{{hexcode|#d8d8d8}}};" |
{{{nation_name|{{PAGENAME}}}}}

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


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


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


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


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


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


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


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


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


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


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


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

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

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

|- {{#if: {{{founding_date|}}} | | style="display: none;" }}
! Date of Founding (LORE)
| {{#invoke:KnightspireDate|loreYear|{{{founding_date}}}}}


|}
|}
</includeonly>
</onlyinclude>


<noinclude>
<noinclude>
Line 77: Line 77:
<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 = #FEA223
| religion = Gottspellitism
| capital = Volkdorf
| founded = 2026-05-14
| founding_date = 2026-05-1
| languages = Common
| demonym = Furstenburgish
}}
}}
</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 = #FEA223
| religion = Gottspellitism
| capital = Volkdorf
| founded = 2026-05-14
| founding_date = 2026-05-1
| 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 113: Line 121:


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 125: Line 134:
"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 159: Line 164:
"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 171: Line 176:
"type": "string"
"type": "string"
},
},
"legislature": {
"constitution": {
"label": "Legislature",
"label": "Legislature",
"type": "string"
"type": "string"
Line 179: Line 184:
"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 187: Line 204:
}
}
</templatedata>
</templatedata>

[[Category:Infobox Templates]]


</noinclude>
</noinclude>

Revision as of 06:01, 9 May 2026

Infobox Nation

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


Capital {{{capital}}}
Culture {{{culture}}}
Location {{{location}}}
Government {{{form_of_government}}}
Leader {{{leader_name}}}
Religion {{{religion}}}
Legislature {{{constitution}}}
Population {{{population}}}
Languages {{{languages}}}
Currency {{{currency}}}
Demonym {{{demonym}}}
Date of Founding (IRL) {{{founding_date}}}
Date of Founding (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 = #FEA223
| capital = Volkdorf
| founding_date = 2026-05-1
| languages = Common
| demonym = Furstenburgish
}}

Furstenmark

Flag of Furstenmark.

Capital Volkdorf
Culture Furstenburgish
Location Volkdorf Plains
Government Mercenary Stratocracy
Leader Martin von Lindenblute
Religion Gottspelite
Legislature Landsknecht Charters
Population 2 Citizens
Languages Common
Currency {{{currency}}}
Demonym Furstenburgish
Date of Founding (IRL) 2026-05-1
Date of Founding (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