Template:Infobox country: Difference between revisions
From Commonwealth of Sovereign States
No edit summary |
No edit summary |
||
| (26 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Infobox | <templatestyles src="Infobox/styles.css" /> | ||
{| class="wikitable infotable" | {| class="wikitable infotable" | ||
! colspan="2" style="font-size: large;" | {{{country|{{PAGENAME}}}}} | ! colspan="2" style="font-size: large;" | {{{country|{{PAGENAME}}}}} | ||
|- class="mergedtop" | |- class="mergedtop" {{#if: {{{world|}}}||style="display: none"}} | ||
! colspan="2" class="label" style="text-align: center; background-color: gold; padding: 4px 8px 4px; font-size: medium;" | {{{world | ! colspan="2" class="label" style="text-align: center; background-color: gold; padding: 4px 8px 4px; font-size: medium;" | [[{{{world}}}]] | ||
|- class="mergedtop" {{#if: {{{flag|}}}||style="display: none"}} | |- class="mergedtop" {{#if: {{{flag|}}}||style="display: none"}} | ||
! colspan="2" style="padding-bottom: 0;" | [[{{{flag}}}|256px]] | ! colspan="2" style="padding-bottom: 0;" | [[File:{{{flag}}}|class=drop-shadow|256px]] | ||
|- class="merged spansubtext" {{#if: {{{flag|}}}||style="display: none"}} | |- class="merged spansubtext" {{#if: {{{flag|}}}||style="display: none"}} | ||
| colspan="2" style="font-size: small; padding-bottom: 2px;" | Flag of {{{country|{{PAGENAME}}}}} | | colspan="2" style="font-size: small; padding-bottom: 2px;" | Flag of {{{country|{{PAGENAME}}}}} | ||
|- class="mergedtop" {{#if: {{{map|}}}||style="display: none"}} | |||
! colspan="2" style="padding-bottom: 0;" | [[File:{{{map}}}|256px]] | |||
|- class="merged spansubtext" {{#if: {{{map|}}}||style="display: none"}} | |||
| colspan="2" style="font-size: small; padding-bottom: 2px;" | Map of {{{country|{{PAGENAME}}}}} | |||
|- class="mergedtop spansubtext" {{#if: {{{motto|}}}||style="display: none"}} | |- class="mergedtop spansubtext" {{#if: {{{motto|}}}||style="display: none"}} | ||
| colspan="2" style="padding: 0" | '''Motto''': "{{{motto}}}" | | colspan="2" style="padding: 0" | '''Motto''': "{{{motto}}}" | ||
|- class="merged spansubtext" {{#if: {{{motto_translated|}}}||style="display: none"}} | |- class="merged spansubtext" {{#if: {{{motto_translated|}}}||style="display: none"}} | ||
| colspan="2" style="padding: 0; padding-bottom: 2px;" | ("{{{motto_translated}}}") | | colspan="2" style="padding: 0; padding-bottom: 2px;" | ("{{{motto_translated}}}") | ||
|- class="mergedtop spansubtext" {{#if: {{{anthem|}}}||style="display: none"}} | |||
| colspan="2" style="padding: 0" | '''Anthem''': "{{{anthem}}}" | |||
|- class="merged spansubtext" {{#if: {{{anthem_translated|}}}||style="display: none"}} | |||
| colspan="2" style="padding: 0; padding-bottom: 2px;" | ("{{{anthem_translated}}}") | |||
|- class="mergedtop" {{#if: {{{capital|}}}||style="display: none"}} | |- class="mergedtop" {{#if: {{{capital|}}}||style="display: none"}} | ||
! class="label" | Capital | ! class="label" | Capital | ||
| class="data" | {{{capital}}} | | class="data" | {{{capital}}} | ||
|- class="merged" {{#if: {{{largest_city|}}}||style="display: none"}} | |||
! class="label" | Largest city | |||
| class="data" | {{{largest_city}}} | |||
|- class="mergedtop" {{#if: {{{alliances|}}}||style="display: none"}} | |||
! class="label" | Alliances | |||
| class="data" | {{#invoke:String|replace|{{{alliances}}}|,|<br/>}} | |||
|- class="mergedtop" {{#if: {{{official_languages|}}}||style="display: none"}} | |||
! class="label" | Official languages | |||
| class="data" | {{#invoke:String|replace|{{{official_languages}}}|,|<br/>}} | |||
|- class="mergedtop" {{#if: {{{recognized_languages|}}}||style="display: none"}} | |||
! class="label" | Recognized languages | |||
| class="data" | {{#invoke:String|replace|{{{recognized_languages}}}|,|<br/>}} | |||
|- class="mergedtop" {{#if: {{{demonyms|}}}||style="display: none"}} | |||
! class="label" | Demonym(s) | |||
| class="data" | {{#invoke:String|replace|{{{demonyms}}}|,|<br/>}} | |||
|- class="mergedtop" {{#if: {{{government|}}}||style="display: none"}} | |||
! class="label" | Government | |||
| class="data" | {{{government}}} | |||
|- class="merged" {{#if: {{{gov_official_1|}}}||style="display: none"}} | |||
! class="label" style="font-weight: 400; padding-left: 1.5em;"| {{{gov_official_1_label|Government official 1}}} | |||
| class="data" | {{{gov_official_1}}} | |||
|- class="merged" {{#if: {{{gov_official_2|}}}||style="display: none"}} | |||
! class="label" style="font-weight: 400; padding-left: 1.5em;"| {{{gov_official_2_label|Government official 2}}} | |||
| class="data" | {{{gov_official_2}}} | |||
|- class="merged" {{#if: {{{gov_official_3|}}}||style="display: none"}} | |||
! class="label" style="font-weight: 400; padding-left: 1.5em;"| {{{gov_official_3_label|Government official 3}}} | |||
| class="data" | {{{gov_official_3}}} | |||
|- class="merged" {{#if: {{{gov_official_4|}}}||style="display: none"}} | |||
! class="label" style="font-weight: 400; padding-left: 1.5em;"| {{{gov_official_4_label|Government official 4}}} | |||
| class="data" | {{{gov_official_4}}} | |||
|- class="mergedtop" {{#if: {{{legislature|}}}||style="display: none"}} | |||
! class="label" | Legislature | |||
| class="data" | {{{legislature}}} | |||
|- class="merged" {{#if: {{{upper_house|}}}||style="display: none"}} | |||
! class="label" style="font-weight: 400; padding-left: 1.5em;"| Upper house | |||
| class="data" | {{{upper_house}}} | |||
|- class="merged" {{#if: {{{lower_house|}}}||style="display: none"}} | |||
! class="label" style="font-weight: 400; padding-left: 1.5em;"| Lower house | |||
| class="data" | {{{lower_house}}} | |||
|- class="mergedtop" {{#if: {{{population|}}}||style="display: none"}} | |||
! class="label" | Population | |||
| class="data" | {{{population}}} | |||
|- class="mergedtop" {{#if: {{{currency|}}}||style="display: none"}} | |||
! class="label" | Currency | |||
| class="data" | {{{currency}}} | |||
|- class="mergedtop" {{#if: {{{driving_side|}}}||style="display: none"}} | |||
! class="label" | Driving side | |||
| class="data" | {{{driving_side}}} | |||
|- class="mergedtop" | |||
| colspan=2 class="data spansubtext" | [https://nationstates.net/nation={{#invoke:String|replace|{{PAGENAME}}| |_}} Open on NationStates] | |||
|} | |} | ||
<includeonly> | |||
[[Category:List of nations associated with {{{primary_alliance|no alliance}}}]] | |||
[[Category:List of nations on {{{world|unknown setting}}}]] | |||
[[Category:List of nations on {{{continent|unknown continent}}}]] | |||
</includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"country": {}, | |||
"world": {}, | |||
"flag": { | |||
"description": "File location (ex. File:my_flag.png)" | |||
}, | |||
"motto": {}, | |||
"motto_translated": {}, | |||
"capital": {}, | |||
"largest_city": {}, | |||
"official_languages": { | |||
"description": "Multiple values single comma separated (ex. English,Spanish,French)" | |||
}, | |||
"government": {}, | |||
"anthem": {}, | |||
"anthem_translated": {}, | |||
"recognized_languages": { | |||
"description": "Multiple values single comma separated" | |||
}, | |||
"gov_official_1": {}, | |||
"gov_official_1_label": {}, | |||
"gov_official_2": {}, | |||
"gov_official_2_label": {}, | |||
"gov_official_3": {}, | |||
"gov_official_3_label": {}, | |||
"gov_official_4": {}, | |||
"gov_official_4_label": {}, | |||
"legislature": {}, | |||
"upper_house": {}, | |||
"lower_house": {}, | |||
"currency": {}, | |||
"population": {}, | |||
"demonyms": { | |||
"description": "Multiple values single comma separated" | |||
}, | |||
"driving_side": {}, | |||
"alliances": { | |||
"description": "Multiple values single comma separated " | |||
}, | |||
"primary_alliance": {}, | |||
"map": { | |||
"description": "File location", | |||
"type": "wiki-file-name" | |||
}, | |||
"continent": {} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||
Latest revision as of 01:40, 13 May 2025
| Infobox country | |
|---|---|
| Open on NationStates |
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| country | country | no description | Unknown | optional |
| world | world | no description | Unknown | optional |
| flag | flag | File location (ex. File:my_flag.png) | Unknown | optional |
| motto | motto | no description | Unknown | optional |
| motto_translated | motto_translated | no description | Unknown | optional |
| capital | capital | no description | Unknown | optional |
| largest_city | largest_city | no description | Unknown | optional |
| official_languages | official_languages | Multiple values single comma separated (ex. English,Spanish,French) | Unknown | optional |
| government | government | no description | Unknown | optional |
| anthem | anthem | no description | Unknown | optional |
| anthem_translated | anthem_translated | no description | Unknown | optional |
| recognized_languages | recognized_languages | Multiple values single comma separated | Unknown | optional |
| gov_official_1 | gov_official_1 | no description | Unknown | optional |
| gov_official_1_label | gov_official_1_label | no description | Unknown | optional |
| gov_official_2 | gov_official_2 | no description | Unknown | optional |
| gov_official_2_label | gov_official_2_label | no description | Unknown | optional |
| gov_official_3 | gov_official_3 | no description | Unknown | optional |
| gov_official_3_label | gov_official_3_label | no description | Unknown | optional |
| gov_official_4 | gov_official_4 | no description | Unknown | optional |
| gov_official_4_label | gov_official_4_label | no description | Unknown | optional |
| legislature | legislature | no description | Unknown | optional |
| upper_house | upper_house | no description | Unknown | optional |
| lower_house | lower_house | no description | Unknown | optional |
| currency | currency | no description | Unknown | optional |
| population | population | no description | Unknown | optional |
| demonyms | demonyms | Multiple values single comma separated | Unknown | optional |
| driving_side | driving_side | no description | Unknown | optional |
| alliances | alliances | Multiple values single comma separated | Unknown | optional |
| primary_alliance | primary_alliance | no description | Unknown | optional |
| map | map | File location | File | optional |
| continent | continent | no description | Unknown | optional |
