Template:Infobox Nation: Difference between revisions
From Knightspire Wiki
Jump to navigationJump to search
Content deleted Content added
No edit summary |
No edit summary |
||
| (5 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: {{{ |
|- {{#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:{{{ |
[[File:{{{image1}}}|250px]] |
||
{{#if: {{{caption|}}}| |
|||
<div class="infobox-caption">{{{caption}}}</div> |
|||
}} |
|||
}} |
|||
{{#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: {{{ |
|- {{#if: {{{largest_city|}}} | | style="display:none;" }} |
||
! Largest city |
|||
! Culture |
|||
| {{{ |
| {{{largest_city}}} |
||
}} |
|||
|- {{#if: {{{ |
|- {{#if: {{{languages|}}} | | style="display:none;" }} |
||
! Official languages |
|||
! Location |
|||
| {{{ |
| {{{languages}}} |
||
}} |
|||
|- {{#if: {{{ |
|- {{#if: {{{demonym|}}} | | style="display:none;" }} |
||
! Demonym |
|||
! Government |
|||
| {{{ |
| {{{demonym}}} |
||
}} |
|||
|- {{#if: {{{ |
|- {{#if: {{{religion|}}} | | style="display:none;" }} |
||
! Leader |
|||
| {{{leader}}} |
|||
}} |
|||
|- {{#if: {{{religion|}}} | |
|||
! Religion |
! Religion |
||
| {{{religion}}} |
| {{{religion}}} |
||
}} |
|||
|- {{#if: {{{ |
|- {{#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 |
||
| {{{ |
| {{{constitution}}} |
||
}} |
|||
|- {{#if: {{{population|}}} | |
|- {{#if: {{{population|}}} | | style="display:none;" }} |
||
! Population |
! Population |
||
| {{{population}}} |
| {{{population}}} |
||
}} |
|||
|- {{#if: {{{ |
|- {{#if: {{{currency|}}} | | style="display:none;" }} |
||
! Currency |
|||
! Founded |
|||
| {{{ |
| {{{currency}}} |
||
}} |
|||
|- {{#if: {{{ |
|- {{#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 |
||
| |
| 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 |
{{Infobox Nation |
||
| |
| 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-01 |
|||
| languages = Common |
|||
| demonym = Furstenburgish |
|||
}} |
}} |
||
== Notes == |
== Notes == |
||
* |
* <code>founding_date</code> must use ISO date formatting: |
||
<pre> |
<pre> |
||
YYYY-MM-DD |
YYYY-MM-DD |
||
| Line 113: | Line 125: | ||
Example: |
Example: |
||
<pre> |
<pre> |
||
2026-05- |
2026-05-15 |
||
</pre> |
</pre> |
||
* Lore |
* Lore year is automatically calculated by [[Module:KnightspireDate]]. |
||
== TemplateData == |
== TemplateData == |
||
| Line 125: | Line 138: | ||
"description": "Infobox for nations and sovereign states.", |
"description": "Infobox for nations and sovereign states.", |
||
"params": { |
"params": { |
||
" |
"nation_name": { |
||
"label": "Name", |
"label": "Nation Name", |
||
"type": "string", |
"type": "string", |
||
"required": true |
"required": true |
||
}, |
}, |
||
" |
"image1": { |
||
"label": " |
"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" |
||
}, |
}, |
||
" |
"hexcode": { |
||
"label": " |
"label": "Header Color", |
||
"type": " |
"type": "string", |
||
"default": "#d8d8d8" |
|||
}, |
}, |
||
"capital": { |
"capital": { |
||
| Line 159: | Line 168: | ||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
" |
"form_of_government": { |
||
"label": "Government", |
"label": "Government", |
||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
" |
"leader_name": { |
||
"label": "Leader", |
"label": "Leader", |
||
"type": "string" |
"type": "string" |
||
| Line 171: | Line 180: | ||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
" |
"constitution": { |
||
"label": "Legislature", |
"label": "Legislature", |
||
"type": "string" |
"type": "string" |
||
| Line 179: | Line 188: | ||
"type": "string" |
"type": "string" |
||
}, |
}, |
||
" |
"languages": { |
||
"label": " |
"label": "Languages", |
||
" |
"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 208: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
[[Category:Infobox Templates]] |
|||
</noinclude> |
</noinclude> |
||
Latest revision as of 13:06, 17 May 2026
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 |
| Official languages | Common |
| Demonym | Furstenburgish |
| Religion | Gottspelite |
| Government | Mercenary Stratocracy |
| Head of state | Martin von Lindenblute |
| Legislature | Landsknecht Charters |
| Population | 2 Citizens |
| Culture | Furstenburgish |
| Location | Volkdorf Plains |
| Founded (IRL) | 2026-05-01 |
| Founded (Lore) | Year 1 |
Notes
founding_datemust use ISO date formatting:
YYYY-MM-DD
Example:
2026-05-15
- Lore year is automatically calculated by Module:KnightspireDate.
TemplateData
Infobox for nations and sovereign states.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Nation Name | nation_name | no description | String | required |
| Image | image1 | no description | File | optional |
| Image Caption | caption-image1 | no description | String | optional |
| Header Color | hexcode | no description
| String | optional |
| Capital | capital | no description | String | optional |
| Culture | culture | no description | String | optional |
| Location | location | no description | String | optional |
| Government | form_of_government | no description | String | optional |
| Leader | leader_name | no description | String | optional |
| Religion | religion | no description | String | optional |
| Legislature | constitution | no description | String | optional |
| Population | population | no description | String | optional |
| Languages | languages | no description | String | optional |
| Currency | currency | no description | String | optional |
| Demonym | demonym | no description | String | optional |
| Founding Date | founding_date | Use YYYY-MM-DD format. | Date | optional |