Template:Infobox country: Difference between revisions

From Commonwealth of Sovereign States
No edit summary
No edit summary
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Infobox country/styles.css" />
<templatestyles src="Infobox/styles.css" />
 
{| class="wikitable infotable"
<table class="infobox">
! colspan="2" style="font-size: large;" | {{{country|{{PAGENAME}}}}}
  <caption class="infobox-title">{{{title|{{PAGENAME}}}}}</caption>
|- 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}}}]]
  {{#if:{{{flag|}}}|
|- class="mergedtop" {{#if: {{{flag|}}}||style="display: none"}}
  <tr>
! colspan="2" style="padding-bottom: 0;" | [[File:{{{flag}}}|class=drop-shadow|256px]]
    <td colspan="2" class="infobox-image">[[File:{{{flag}}}|250px]]</td>
|- class="merged spansubtext" {{#if: {{{flag|}}}||style="display: none"}}
  </tr>}}
| colspan="2" style="font-size: small; padding-bottom: 2px;"  | Flag of {{{country|{{PAGENAME}}}}}
 
|- class="mergedtop" {{#if: {{{map|}}}||style="display: none"}}
  <tr>
! colspan="2" style="padding-bottom: 0;" | [[File:{{{map}}}|256px]]
    <th scope="row" class="infobox-label">Motto</th>
|- class="merged spansubtext" {{#if: {{{map|}}}||style="display: none"}}
    <td class="infobox-data">{{{motto}}}</td>
| colspan="2" style="font-size: small; padding-bottom: 2px;"  | Map of {{{country|{{PAGENAME}}}}}
  </tr>
|- class="mergedtop spansubtext" {{#if: {{{motto|}}}||style="display: none"}}
 
| colspan="2" style="padding: 0" | '''Motto''': "{{{motto}}}"
  <tr>
|- class="merged spansubtext" {{#if: {{{motto_translated|}}}||style="display: none"}}
    <th scope="row" class="infobox-label">Capital</th>
| colspan="2" style="padding: 0; padding-bottom: 2px;" | ("{{{motto_translated}}}")
    <td class="infobox-data">{{{capital}}}</td>
|- class="mergedtop spansubtext" {{#if: {{{anthem|}}}||style="display: none"}}
  </tr>
| colspan="2" style="padding: 0" | '''Anthem''': "{{{anthem}}}"
 
|- class="merged spansubtext" {{#if: {{{anthem_translated|}}}||style="display: none"}}
  <tr>
| colspan="2" style="padding: 0; padding-bottom: 2px;" | ("{{{anthem_translated}}}")
    <th scope="row" class="infobox-label">Language</th>
|- class="mergedtop" {{#if: {{{capital|}}}||style="display: none"}}
    <td class="infobox-data">{{{language}}}</td>
! class="label" | Capital
  </tr>
| class="data" | {{{capital}}}
 
|- class="merged" {{#if: {{{largest_city|}}}||style="display: none"}}
  <tr>
! class="label" | Largest city
    <th scope="row" class="infobox-label">Religion</th>
| class="data" | {{{largest_city}}}
    <td class="infobox-data">{{{religion}}}</td>
|- class="mergedtop" {{#if: {{{alliances|}}}||style="display: none"}}
  </tr>
! class="label" | Alliances
 
| class="data" | {{#invoke:String|replace|{{{alliances}}}|,|<br/>}}
  <tr>
|- class="mergedtop" {{#if: {{{official_languages|}}}||style="display: none"}}
    <th scope="row" class="infobox-label">Demonym</th>
! class="label" | Official languages
    <td class="infobox-data">{{{demonym}}}</td>
| class="data" | {{#invoke:String|replace|{{{official_languages}}}|,|<br/>}}
  </tr>
|- class="mergedtop" {{#if: {{{recognized_languages|}}}||style="display: none"}}
 
! class="label" | Recognized languages
  <tr>
| class="data" | {{#invoke:String|replace|{{{recognized_languages}}}|,|<br/>}}
    <th scope="row" class="infobox-label">Government</th>
|- class="mergedtop" {{#if: {{{demonyms|}}}||style="display: none"}}
    <td class="infobox-data">{{{government}}}</td>
! class="label" | Demonym(s)
  </tr>
| class="data" | {{#invoke:String|replace|{{{demonyms}}}|,|<br/>}}
 
|- class="mergedtop" {{#if: {{{government|}}}||style="display: none"}}
</table>
! 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>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"title": {},
"country": {},
"flag": {},
"world": {},
"flag": {
"description": "File location (ex. File:my_flag.png)"
},
"motto": {},
"motto": {},
"motto_translated": {},
"capital": {},
"capital": {},
"language": {}
"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>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 01:40, 13 May 2025

Infobox country
Open on NationStates


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
countrycountry

no description

Unknownoptional
worldworld

no description

Unknownoptional
flagflag

File location (ex. File:my_flag.png)

Unknownoptional
mottomotto

no description

Unknownoptional
motto_translatedmotto_translated

no description

Unknownoptional
capitalcapital

no description

Unknownoptional
largest_citylargest_city

no description

Unknownoptional
official_languagesofficial_languages

Multiple values single comma separated (ex. English,Spanish,French)

Unknownoptional
governmentgovernment

no description

Unknownoptional
anthemanthem

no description

Unknownoptional
anthem_translatedanthem_translated

no description

Unknownoptional
recognized_languagesrecognized_languages

Multiple values single comma separated

Unknownoptional
gov_official_1gov_official_1

no description

Unknownoptional
gov_official_1_labelgov_official_1_label

no description

Unknownoptional
gov_official_2gov_official_2

no description

Unknownoptional
gov_official_2_labelgov_official_2_label

no description

Unknownoptional
gov_official_3gov_official_3

no description

Unknownoptional
gov_official_3_labelgov_official_3_label

no description

Unknownoptional
gov_official_4gov_official_4

no description

Unknownoptional
gov_official_4_labelgov_official_4_label

no description

Unknownoptional
legislaturelegislature

no description

Unknownoptional
upper_houseupper_house

no description

Unknownoptional
lower_houselower_house

no description

Unknownoptional
currencycurrency

no description

Unknownoptional
populationpopulation

no description

Unknownoptional
demonymsdemonyms

Multiple values single comma separated

Unknownoptional
driving_sidedriving_side

no description

Unknownoptional
alliancesalliances

Multiple values single comma separated

Unknownoptional
primary_allianceprimary_alliance

no description

Unknownoptional
mapmap

File location

Fileoptional
continentcontinent

no description

Unknownoptional