Template:Infobox country/doc: Difference between revisions
Content deleted Content added
m 53 revisions imported |
update doc for ISO code |
||
Line 1:
{{#ifeq:{{{nested|no}}}|no|{{documentation subpage}}{{intricate template}}{{hatnote|{{tl|Infobox geopolitical organisation}} and {{tl|Infobox former country}} redirect here; related parameters and examples are included below.}}}}
This infobox template is used to generate an infobox for the right-hand side of two specific types of article: on a country or territory, or on a geopolitical organisation. Parameter syntax and examples are detailed in the collapsed sections immediately below.
__FORCETOC__
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters}}
== Syntax ==
<!---------------------- Country/territory use ---------------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title=Country or territory}}
<pre style="overflow:auto;">
{{Infobox country
|micronation = <!--yes if a micronation-->
Line 33 ⟶ 24:
|alt_coat = <!--alt text for coat of arms-->
|symbol_type = <!--emblem, seal, etc (if not a coat of arms)-->
|national_motto = <!--in inverted commas and wikilinked if link exists-->
|englishmotto = <!--English language version of motto-->
Line 63 ⟶ 53:
|ethnic_groups = <!--List/breakdown of ethnic groups within the country/territory-->
|ethnic_groups_year = <!--Year of ethnic groups data (if provided)-->
|ethnic_groups_ref = <!--(for any ref/s to associate with ethnic groups data)-->
|religion = <!--Religion-->
|religion_year = <!--Year of religion data (if provided)-->
|religion_ref = <!--(for any ref/s to associate with religion data)-->
|demonym = <!--Term/s describing those associated with the country/territory (e.g. "Belgian" for the country Belgium)-->
|government_type = <!--(often a compound multi-wikilinked term, e.g. "Federal semi-presidential constitutional republic", etc)-->
Line 106 ⟶ 96:
|population_density_rank =
|nummembers = <!--An alternative to population for micronation-->
|GDP_PPP =
|GDP_PPP_rank =
|GDP_PPP_year =
Line 116 ⟶ 106:
|GDP_nominal_per_capita =
|GDP_nominal_per_capita_rank =
|Gini =
|Gini_ref =
|Gini_rank =
|Gini_year =
Line 134 ⟶ 124:
|antipodes = <!--Place/s exactly on the opposite side of the world to country/territory-->
|date_format = <!--all-numeric date format and era, such as [[Common Era|CE]], [[Anno Domini|AD]], [[Hijri year|AH]], etc.; e.g. {{abbr|yyyy|year}}-{{abbr|mm|month}}-{{abbr|dd|day}} ([[Anno Domini|AD]]) -->
|electricity = <!--e.g. "230 V–50 Hz"-->
|drives_on = <!--"right" or "left" (side of road)-->
|cctld = <!--Internet country code top-level domain identifier (e.g. [[.br]], [[.de]], etc)
|iso3166code = <!--ISO code only; no extra text. Use to override default from common_name parameter above; omit using "omit".-->
|calling_code = <!--e.g. [[+1]], [[+531]], [[+44]], etc-->
|patron_saint = <!--Use patron_saints for multiple-->
Line 148 ⟶ 139:
}}
</pre>
{{hidden begin |toggle=leftlink |title=France-specific parameters}}
Note: Now redundant.
Line 166 ⟶ 158:
{{hidden end}}<!--(France-specific parameters)-->
{{smaller|* If, on a particular page, the default widths provided for the flag and coat-of-arms/symbol images produce an unsatisfactory result, use ''flag_width'' (as % or px) to specify the width to be used for the flag image; the remaining width is then assigned to the coat-of-arms/symbol (if included).}}
{{hidden end}}
<!------------------------- Geopolitical use -------------------------->
<pre style="overflow:auto;">
{{Infobox geopolitical organization
|name = <!-- (in English) -->
Line 250 ⟶ 242:
}}
</pre>
{{hidden end}}
<!-------------------- Former country use ---------------------->
<pre style="overflow:auto;">
{{Infobox former country
|native_name = <!-- Name in a modern syntax of native language(s). Leave blank if name is only in English.
Line 349 ⟶ 338:
|leader3 =
|leader4 =
<!--......-->
|leader21 = <!--(up to 21 distinct leaders may be included)-->
|year_leader1 = <!-- Years served -->
|year_leader2 =
|year_leader3 =
|year_leader4 =
<!--......-->
|year_leader21 =
|title_leader = <!-- Default: "King" for monarchy, otherwise "President" -->
|representative1 = <!-- Name of representative of head of state (e.g. colonial governor) -->
Line 358 ⟶ 351:
|representative3 =
|representative4 =
|representative5 =
|year_representative1 = <!-- Years served -->
|year_representative2 =
|year_representative3 =
|year_representative4 =
|year_representative5 =
|title_representative = <!-- Default: "Governor" -->
|deputy1 = <!-- Name of prime minister -->
Line 402 ⟶ 397:
}}</pre>
{{hidden end}}<!----(Former country)---->
== Examples ==
<!------------------ Country/territory example ------------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title=Country or territory}}
{{Infobox country
|conventional_long_name = Republic of Cameroon
Line 435 ⟶ 426:
| <1% non-African
}}
|capital = [[Yaoundé]]
|coordinates = {{coord|3|52|N|11|31|E}}
|largest_city = [[Douala]]
|government_type = [[Republic]]
|leader_title1 = [[List of heads of state of Cameroon|President]]
|leader_name1 = [[Paul Biya]]
|leader_title2 = [[Prime Minister of Cameroon|Prime Minister]]
|leader_name2 = [[Philémon Yang]]
Line 448 ⟶ 439:
|area_sq_mi = 183,568 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 1.3 <!--CIA World Factbook-->
|population_estimate = 20,129,878
|population_estimate_rank = 58th <!--UN World Population Prospects-->
|population_estimate_year = July 2012
|population_census = 17,463,836
|population_census_year = 2005
|population_density_km2 = 39.7
|population_density_sq_mi = 102.8 <!--Do not remove per [[WP:MOSNUM]]-->
|population_density_rank = 167th <!--UN World Population Prospects-->
|GDP_PPP = $47.251 billion
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $2,257
|GDP_PPP_per_capita_rank =
|GDP_nominal = $25.759 billion
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $1,230
|sovereignty_type = Independence {{nobold|from [[France]]}}
|established_event1 = Declared
Line 471 ⟶ 462:
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.482 <!--number only-->
|HDI_ref =
|HDI_rank = 150th
|Gini_year = 2001
|Gini_change = <!--increase/decrease/steady-->
|Gini = 44.6 <!--number only-->
|Gini_ref =
|Gini_rank =
|currency = [[Central African CFA franc]]
Line 484 ⟶ 475:
|time_zone_DST =
|utc_offset_DST =
|electricity =
|drives_on = right
|calling_code = [[+237]]
Line 516 ⟶ 508:
| <1% non-African
}}
|capital = [[Yaoundé]]
|coordinates = {{coord|3|52|N|11|31|E}}
|largest_city = [[Douala]]
|government_type = [[Republic]]
|leader_title1 = [[List of heads of state of Cameroon|President]]
|leader_name1 = [[Paul Biya]]
|leader_title2 = [[Prime Minister of Cameroon|Prime Minister]]
|leader_name2 = [[Philémon Yang]]
Line 529 ⟶ 521:
|area_sq_mi = 183,568 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 1.3 <!--CIA World Factbook-->
|population_estimate = 20,129,878
|population_estimate_rank = 58th <!--UN World Population Prospects-->
|population_estimate_year = July 2012
|population_census = 17,463,836
|population_census_year = 2005
|population_density_km2 = 39.7
|population_density_sq_mi = 102,8 <!--Do not remove per [[WP:MOSNUM]]-->
|population_density_rank = 167th <!--UN World Population Prospects-->
|GDP_PPP = $47.251 billion
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $2,257
|GDP_PPP_per_capita_rank =
|GDP_nominal = $25.759 billion
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $1,230
|sovereignty_type = Independence {{nobold|from [[France]]}}
|established_event1 = Declared
Line 552 ⟶ 544:
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.482 <!--number only-->
|HDI_ref =
|HDI_rank = 150th
|Gini_year = 2001
|Gini_change = <!--increase/decrease/steady-->
|Gini = 44.6 <!--number only-->
|Gini_ref =
|Gini_rank =
|currency = [[Central African CFA franc]]
Line 565 ⟶ 557:
|time_zone_DST = not observed
|utc_offset_DST = +1
|electricity =
|drives_on = right
|calling_code = [[+237]]
Line 571 ⟶ 564:
}}
</pre>
{{hidden end}}
<!-------------- Geopolitical organization example --------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title=Geopolitical organization}}
{{Infobox geopolitical organization
|name =
{{collapsible list
|titlestyle = background:transparent;text-align:center;font-size:85%;
|title = {{resize|130%|European Union}}
|liststyle = text-align:center;
Line 612 ⟶ 602:
|image_flag = Flag of Europe.svg
|alt_flag = Circle of 12 gold stars on a blue background
|motto = "[[Motto of the European Union|United in diversity]]"
|anthem = <div style="padding-bottom:0.2em;">"[[Anthem of Europe|Ode to Joy]]" {{small|(orchestral)}}</div>[[File:Anthem of Europe (US Navy instrumental short version).ogg|center]]
|image_map = EU Globe No Borders.svg
|map_caption = An [[Orthographic projection (cartography)|orthographic projection]] of the world, highlighting the European Union and its Member States (green).
|map_width = 220px
|admin_center_type = Political centres
|admin_center = {{unbulleted list |[[Brussels]] ([[Brussels and the European Union|de facto capital]])
|largest_city = [[London]]
|official_languages =
Line 629 ⟶ 616:
| {{hlist |[[Bulgarian language|Bulgarian]] |[[Croatian language|Croatian]] |[[Czech language|Czech]] |[[Danish language|Danish]] |[[Dutch language|Dutch]] |[[English language|English]] |[[Estonian language|Estonian]] |[[Finnish language|Finnish]] |[[French language|French]] |[[German language|German]] |[[Greek language|Greek]] |[[Hungarian language|Hungarian]] |[[Irish language|Irish]] |[[Italian language|Italian]] |[[Latvian language|Latvian]] |[[Lithuanian language|Lithuanian]] |[[Maltese language|Maltese]] |[[Polish language|Polish]] |[[Portuguese language|Portuguese]] |[[Romanian language|Romanian]] |[[Slovak language|Slovak]] |[[Slovene language|Slovene]] |[[Spanish language|Spanish]] |[[Swedish language|Swedish]]}}
}}
|demonym = [[Citizenship of the European Union|European]]
|membership_type = [[Member state of the European Union|Member state]]s
|membership =
Line 647 ⟶ 634:
}}
|leader_title1 = [[President of the European Council|President of the European Council]]
|leader_name1 = {{nowrap|[[
|leader_title2 = [[President of the European Commission|President of the Commission]]
|leader_name2 = {{nowrap|[[
|legislature = [[Legislature of the European Union]]
|upper_house = {{nowrap|[[Council of the European Union]]}}
Line 664 ⟶ 651:
|area_sq_mi = 1,691,658 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 3.08
|population_estimate = 507,890,191
|population_estimate_rank = 3rd<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|population_estimate_year = 2012
Line 671 ⟶ 658:
|population_density_rank = <!--Calculated by taking out EU members from the list-->
<!--IMF GDP data published in September 2011; so please do not use the IMF *projections* for 2011-->
|GDP_PPP = $15.821 trillion
|GDP_PPP_rank = 1st<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $31,607
|GDP_PPP_per_capita_rank = 15th<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal = $17.577 trillion
|GDP_nominal_rank = 1st<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $35,116
|GDP_nominal_per_capita_rank = 14th<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|Gini_year = 2010
|Gini_change = <!--increase/decrease/steady-->
|Gini = 30.4 <!--number only-->
|Gini_ref =
|Gini_rank =
|HDI_year = 2011
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.876 <!--number only-->
|HDI_ref =
|HDI_rank = 13th<!--Calculated by taking out EU members from the list-->{{\}}25th<sup>a</sup><!--Calculated with EU members in the list-->
|currency =
Line 717 ⟶ 704:
|utc_offset = +0 to +2
|time_zone_DST =
|utc_offset_DST = +1 to +3
|date_format =
|cctld = [[.eu]]
|calling_code = [[Telephone numbers in the European Union|28 codes]]
|footnote_a = If considered as a single entity.
Line 728 ⟶ 715:
|name =
{{collapsible list
|titlestyle = background:transparent;text-align:center;font-size:85%;
|title = {{resize|130%|European Union}}
|liststyle = text-align:center;
Line 759 ⟶ 746:
|image_flag = Flag of Europe.svg
|alt_flag = Circle of 12 gold stars on a blue background
|motto = "[[Motto of the European Union|United in diversity]]"
|anthem = <div style="padding-bottom:0.2em;">''[[Anthem of Europe|Ode to Joy]]'' {{small|(orchestral)}}</div><center>[[File:Anthem of Europe (US Navy instrumental short version).ogg]]</center>
|image_map = EU Globe No Borders.svg
|map_caption = An [[Orthographic projection (cartography)|orthographic projection]] of the world, highlighting the European Union and its Member States (green).
|map_width = 220px
|admin_center_type = Political centres
|admin_center = {{unbulleted list |[[Brussels]] ([[Brussels and the European Union|de facto capital]])
|largest_city = [[London]]
|official_languages =
Line 776 ⟶ 760:
| {{hlist |[[Bulgarian language|Bulgarian]] |[[Croatian language|Croatian]] |[[Czech language|Czech]] |[[Danish language|Danish]] |[[Dutch language|Dutch]] |[[English language|English]] |[[Estonian language|Estonian]] |[[Finnish language|Finnish]] |[[French language|French]] |[[German language|German]] |[[Greek language|Greek]] |[[Hungarian language|Hungarian]] |[[Irish language|Irish]] |[[Italian language|Italian]] |[[Latvian language|Latvian]] |[[Lithuanian language|Lithuanian]] |[[Maltese language|Maltese]] |[[Polish language|Polish]] |[[Portuguese language|Portuguese]] |[[Romanian language|Romanian]] |[[Slovak language|Slovak]] |[[Slovene language|Slovene]] |[[Spanish language|Spanish]] |[[Swedish language|Swedish]]}}
}}
|demonym = [[Citizenship of the European Union|European]]
|membership_type = [[Member state of the European Union|Member state]]s
|membership =
Line 794 ⟶ 778:
}}
|leader_title1 = [[President of the European Council|President of the European Council]]
|leader_name1 = {{nowrap|[[
|leader_title2 = [[President of the European Commission|President of the Commission]]
|leader_name2 = {{nowrap|[[
|legislature = [[Legislature of the European Union]]
|upper_house = {{nowrap|[[Council of the European Union]]}}
Line 811 ⟶ 795:
|area_sq_mi = 1,691,658 <!--Do not remove per [[WP:MOSNUM]]-->
|percent_water = 3.08
|population_estimate = 507,890,191
|population_estimate_rank = 3rd<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|population_estimate_year = 2012
Line 818 ⟶ 802:
|population_density_rank = <!--Calculated by taking out EU members from the list-->
<!--IMF GDP data published in September 2011; so please do not use the IMF *projections* for 2011-->
|GDP_PPP = $15.821 trillion
|GDP_PPP_rank = 1st<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|GDP_PPP_year = 2011
|GDP_PPP_per_capita = $31,607
|GDP_PPP_per_capita_rank = 15th<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal = $17.577 trillion
|GDP_nominal_rank = 1st<sup>a</sup><!--Calculated by taking out EU members from the list-->
|GDP_nominal_year = 2011
|GDP_nominal_per_capita = $35,116
|GDP_nominal_per_capita_rank = 14th<sup>a</sup><!--gives link to list--><!--Calculated by taking out EU members from the list-->
|Gini_year = 2010
|Gini_change = <!--increase/decrease/steady-->
|Gini = 30.4 <!--number only-->
|Gini_ref =
|Gini_rank =
|HDI_year = 2011
|HDI_change = increase <!--increase/decrease/steady-->
|HDI = 0.876 <!--number only-->
|HDI_ref =
|HDI_rank = 13th<!--Calculated by taking out EU members from the list-->{{\}}25th<sup>a</sup><!--Calculated with EU members in the list-->
|currency =
Line 864 ⟶ 848:
|utc_offset = +0 to +2
|time_zone_DST =
|utc_offset_DST = +1 to +3
|date_format =
|cctld = [[.eu]]
|calling_code = [[Telephone numbers in the European Union|28 codes]]
|footnote_a = If considered as a single entity.
}}
</pre>
{{
<!----
<!------------------ Former country example ------------------->
{{hidden begin |toggle=left |titlestyle=font-size:120%; |title=Former country}}
An example from [[German Empire]]:
Line 981 ⟶ 965:
*[[German Papiermark|Papiermark]] <small>(after 1914)</small>
}}
|footnotes = Area and population not including colonial possessions
|today =
}}
Line 1,089 ⟶ 1,073:
*[[German Papiermark|Papiermark]] <small>(after 1914)</small>
}}
|footnotes = Area and population not including colonial possessions
|today =
}}
</pre>
{{hidden end}}
== Errors ==
If the template generates errors when calculating data for the Gini or HDI fields, it will add the article to [[:Category:Country articles requiring maintenance]]. This only happens if the page is in the [[WP:MAINSPACE|main article space]], not any other [[WP:NAMESPACE|namespaces]].
Line 1,109 ⟶ 1,089:
* {{clc|Pages using infobox country with syntax problems}}
* {{clc|Pages using infobox country with unknown parameters}}
* {{clc|Pages using infobox country or infobox former country with the flag caption or type parameters}}
* {{clc|Pages using infobox country or infobox former country with the symbol caption or type parameters}}
* {{clc|Former country articles using status text with Colony or Exile}}
== TemplateData ==
Line 1,495 ⟶ 1,478:
"type": "string",
"required": false,
"description": "Reference, in <ref> format, of ethnic composition"
},
"ethnic_groups_year": {
Line 2,100 ⟶ 2,082:
"required": false,
"description": "Gross domestic product (purchasing power parity)",
"example": "$554.855 billion
"suggested": true
},
Line 2,123 ⟶ 2,105:
"required": false,
"description": "Gross domestic product (purchasing power parity) per capita",
"example": "$98,014
},
"GDP_PPP_per_capita_rank": {
Line 2,156 ⟶ 2,138:
"required": false,
"description": "Nominal GDP per capita in the country",
"example": "$61,766
},
"GDP_nominal_per_capita_rank": {
Line 2,190 ⟶ 2,172:
"type": "line",
"required": false,
"description": "Reference for cited Gini index statistic"
},
"Gini_rank": {
Line 2,227 ⟶ 2,208:
"type": "line",
"required": false,
"description": "Reference for HDI statistic"
},
"HDI_rank": {
Line 2,290 ⟶ 2,270:
"date_format": {
"label": "Date format",
"type": "string",
"required": false
},
"electricity": {
"label": "Mains electricity",
"type": "string",
"required": false
Line 3,016 ⟶ 3,001:
{{cob}}
<includeonly>{{
<!--Categories below this line, please; interwikis at Wikidata-->
[[Category:Country infobox templates| ]]
|