Template:Infobox country/sandbox
![]() | This is the template sandbox page for Template:Infobox country (diff). See also the companion subpage for test cases. |
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This Infobox template is used to generate an infobox for the righthand side of two specific types of article: on a country or territory, or on a geopolitical organisation. The syntax (format) of parameters and examples are detailed in the collapsed show/hide sections immediately below.
Syntax
Examples
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 main article space, not any other namespaces.
Sandbox
A sandbox has been set up so modifications to the template may be tested before being implemented in the template proper:
Template:Infobox country/sandbox
If possible, please try to view any modifications using a variety of web browsers and on different types of computer (PC, Macintosh, etc.). Thank you!
Microformat
The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.
If the place or venue has an "established", "founded", "opened" or similar date that is specific to the day, use {{start date}} unless the date is before 1583 CE. If it has a URL, use {{URL}}.
hCard uses HTML classes including:
- adr
- category
- country-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- street-address
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
TemplateData
TemplateData for Infobox country
This template produces an infobox for countries that covers their major attributes such as their flags, ethnic makeup, and political system.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Conventional long name | conventional_long_name | Formal or official full name of the country in English. This entry should not be enclosed in brackets.
| String | optional |
Common name | common_name | Common name in English (used for wikilinks and to produce a default iso3166 code).
| String | optional |
Linking name | linking_name | Name used for linking. Defaults to common_name or name. | String | optional |
Native name | native_name | Country's name (usually full name) in its native language, hence in italics (double quotemarks). The template {{native name}} should be used with this parameter to automatically italicize the text.
| String | optional |
Geopolitical organisation name | name | Name of the geopolitical organisation in English. | String | optional |
Flag | image_flag | File name of an image file on Wikipedia or on Commons that contains the country's current flag. Do not enclose this entry in double brackets and do not give it a prefix such as File: or Image:
| File | optional |
Flag width | flag_width | If the default widths provided for the flag and coat-of-arms/symbol images produce an unsatisfactory result, use this 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). Can be done as a % or px. | String | optional |
Flag alt text | alt_flag | Alternate text for flag (text shown when pointer hovers over flag). | String | optional |
Flag border | flag_border | Set to no to disable border around the flag. | String | optional |
Flag caption | flag_caption | Use this parameter to enter a caption for the flag, if one is necessary. Do not end this entry with a period.
| String | optional |
Second flag | image_flag2 | If a country has a second flag— perhaps because of an ongoing civil war or a dispute over sovereignty— you can provide the file name of that second flag in this parameter. Do not include the prefix File: or Image:, and do not enclose it in double brackets.
| File | optional |
Second flag alt text | alt_flag2 | Alt text for second flag (text shown when pointer hovers over flag). | String | optional |
Second flag border | flag2_border | Set to no to disable border around the flag. | String | optional |
Coat of arms | image_coat image_symbol | no description
| String | optional |
Symbol width | symbol_width | Symbol image's width.
| String | optional |
Coat of arms alt text | alt_coat | Alt text for coat of arms. | String | optional |
Symbol alt text | alt_symbol | no description | String | optional |
Symbol type | symbol_type | If not a coat of arms.
| String | optional |
Symbol type article | symbol_type_article | no description | String | optional |
Text symbol | text_symbol | For other types of text symbol.
| String | optional |
Text symbol type | text_symbol_type | For other types of text symbol. | String | optional |
Other symbol | other_symbol | Use if a further symbol exists. | String | optional |
Other symbol type | other_symbol_type | no description | String | optional |
National motto | national_motto | In inverted commas and wikilinked if link exists. Can also be used with the {{lang}} template and correct two-letter language code to designate the language of the motto where not provided in English.
| String | optional |
Motto | motto | no description | String | optional |
National anthem | national_anthem | In inverted commas and wikilinked if link exists. | String | optional |
Anthem | anthem | no description | String | optional |
Royal anthem | royal_anthem | In inverted commas and wikilinked if link exists. | String | optional |
Map | image_map | no description
| String | optional |
Map width | map_width | Map image's width.
| String | optional |
Map alt text | alt_map | no description | String | optional |
Map caption | map_caption | Caption to place below map. | String | optional |
Map 2 | image_map2 | Another map, if required. | String | optional |
Map 2 width | map2_width | no description | String | optional |
Map 2 alt text | alt_map2 | no description | String | optional |
Map 2 caption | map_caption2 | Caption to place below second map. | String | optional |
image_map3 | image_map3 | no description | String | optional |
map3_width | map3_width | no description | String | optional |
alt_map3 | alt_map3 | no description | String | optional |
map_caption3 | map_caption3 | no description | String | optional |
Capital | capital | Name of country/territory's capital, wikilinked if link exists. | String | optional |
Capital type | capital_type | no description | String | optional |
Coordinates | coordinates | The geographic coordinates of the capital. | String | optional |
Latitude degrees | latd | The degrees of the capital's latitude. | String | optional |
Latitude minutes | latm | The minutes of the capital's latitude. | String | optional |
Latitude NS | latNS | The direction of the capital's latitude. | String | optional |
Longitude degrees | longd | The degrees of the capital's longitude. | String | optional |
Longitude minutes | longm | The minutes of the capital's longitude. | String | optional |
Longitude EW | longEW | The direction of the capital's longitude. | String | optional |
Administrative center | admin_center | Location/s of administrative center/s. | String | optional |
Administrative center type | admin_center_type | no description
| String | optional |
Capital 2 | capital2 | Name of country/territory's capital, wikilinked if link exists. | String | optional |
Capital 2 type | capital_type2 | no description | String | optional |
Administrative center 2 | admin_center2 | no description | String | optional |
Administrative center 2 type | admin_center_type2 | no description | String | optional |
Largest city | largest_city | Name of country/territory's largest city. Use "capital" (without quotemarks) if it's the capital. | String | optional |
Largest settlement | largest_settlement | Name of largest settlement if not a city. | String | optional |
Largest settlement type | largest_settlement_type | Type of settlement if largest settlement not a city. | String | optional |
Official languages | official_languages | Languages recognised in legislation, constitution, etc. | String | optional |
National languages | national_languages | Country/territory-wide languages recognised but not necessarily in country/territory-wide law, etc. | String | optional |
Regional languages | regional_languages | Languages recognised or associated with particular regions within the country/territory. | String | optional |
Languages type | languages_type | Use to specify a further type of language, if not official, national or regional. | String | optional |
Languages sub | languages_sub | Is this further type of language a sub-item of the previous non-sub type?
| String | optional |
Languages | languages | Languages of the further type. | String | optional |
2nd languages type | languages2_type | Use to specify a 2nd further type of language, if not official, national or regional. | String | optional |
Languages 2 sub | languages2_sub | Is the second alternative type of languages a sub-item of the previous non-sub type?
| String | optional |
Languages 2 | languages2 | Languages of the second further type. | String | optional |
ethnic_groups | ethnic_groups | no description | String | optional |
ethnic_groups_year | ethnic_groups_year | no description | String | optional |
religion | religion | no description | String | optional |
demonym | demonym | no description | String | optional |
org_type | org_type | no description | String | optional |
membership | membership | no description | String | optional |
membership_type | membership_type | no description | String | optional |
government_type | government_type | no description | String | optional |
politics_link | politics_link | no description | String | optional |
leader_title1 | leader_title1 | no description | String | optional |
leader_name1 | leader_name1 | no description | String | optional |
leader_title2 | leader_title2 | no description | String | optional |
Leader name 2 | leader_name2 | no description | String | optional |
leader_title3 | leader_title3 | no description | String | optional |
Leader name 3 | leader_name3 | no description | String | optional |
leader_title4 | leader_title4 | no description | String | optional |
Leader name 4 | leader_name4 | no description | String | optional |
leader_title5 | leader_title5 | no description | String | optional |
Leader name 5 | leader_name5 | no description | String | optional |
leader_title6 | leader_title6 | no description | String | optional |
Leader name 6 | leader_name6 | no description | String | optional |
leader_title7 | leader_title7 | no description | String | optional |
Leader name 7 | leader_name7 | no description | String | optional |
leader_title8 | leader_title8 | no description | String | optional |
Leader name 8 | leader_name8 | no description | String | optional |
leader_title9 | leader_title9 | no description | String | optional |
Leader name 9 | leader_name9 | no description | String | optional |
leader_title10 | leader_title10 | no description | String | optional |
Leader name 10 | leader_name10 | no description | String | optional |
leader_title11 | leader_title11 | no description | String | optional |
Leader name 11 | leader_name11 | no description | String | optional |
leader_title12 | leader_title12 | no description | String | optional |
Leader name 12 | leader_name12 | no description | String | optional |
leader_title13 | leader_title13 | no description | String | optional |
Leader name 13 | leader_name13 | no description | String | optional |
leader_title14 | leader_title14 | no description | String | optional |
Leader name 14 | leader_name14 | no description | String | optional |
legislature | legislature | no description | String | optional |
upper_house | upper_house | no description | String | optional |
lower_house | lower_house | no description | String | optional |
sovereignty_type | sovereignty_type | no description | String | optional |
sovereignty_note | sovereignty_note | no description | String | optional |
established | established | no description | String | optional |
established_event1 | established_event1 | no description | String | optional |
established_date1 | established_date1 | no description | String | optional |
established_event2 | established_event2 | no description | String | optional |
established_date2 | established_date2 | no description | String | optional |
established_event3 | established_event3 | no description | String | optional |
established_date3 | established_date3 | no description | String | optional |
established_event4 | established_event4 | no description | String | optional |
established_date4 | established_date4 | no description | String | optional |
established_event5 | established_event5 | no description | String | optional |
established_date5 | established_date5 | no description | String | optional |
established_event6 | established_event6 | no description | String | optional |
established_date6 | established_date6 | no description | String | optional |
established_event7 | established_event7 | no description | String | optional |
established_date7 | established_date7 | no description | String | optional |
established_event8 | established_event8 | no description | String | optional |
established_date8 | established_date8 | no description | String | optional |
established_event9 | established_event9 | no description | String | optional |
established_date9 | established_date9 | no description | String | optional |
established_event10 | established_event10 | no description | String | optional |
established_date10 | established_date10 | no description | String | optional |
established_event11 | established_event11 | no description | String | optional |
established_date11 | established_date11 | no description | String | optional |
established_event12 | established_event12 | no description | String | optional |
established_date12 | established_date12 | no description | String | optional |
area_km2 | area_km2 | no description | String | optional |
area_link | area_link | no description | String | optional |
area_label | area_label | no description | String | optional |
FR_foot4 | FR_foot4 | no description | String | deprecated |
area_footnote | area_footnote | no description | String | optional |
area_rank | area_rank | no description | String | optional |
area_sq_mi | area_sq_mi | no description | String | optional |
percent_water | percent_water | no description | String | optional |
area_label2 | area_label2 | no description | String | optional |
area_data2 | area_data2 | no description | String | optional |
area_label3 | area_label3 | no description | String | optional |
area_data3 | area_data3 | no description | String | optional |
FR_metropole | FR_metropole | no description | String | deprecated |
FR_foot2 | FR_foot2 | no description | String | deprecated |
FR_IGN_area_km2 | FR_IGN_area_km2 | no description | String | deprecated |
FR_IGN_area_rank | FR_IGN_area_rank | no description | String | deprecated |
FR_IGN_area_sq_mi | FR_IGN_area_sq_mi | no description | String | deprecated |
FR_foot3 | FR_foot3 | no description | String | deprecated |
FR_cadastre_area_km2 | FR_cadastre_area_km2 | no description | String | deprecated |
FR_cadastre_area_rank | FR_cadastre_area_rank | no description | String | deprecated |
FR_cadastre_area_sq_mi | FR_cadastre_area_sq_mi | no description | String | deprecated |
population_estimate | population_estimate | no description | String | optional |
population_census | population_census | no description | String | optional |
population_link | population_link | no description | String | optional |
population_estimate_year | population_estimate_year | no description | String | optional |
population_estimate_rank | population_estimate_rank | no description | String | optional |
population_label2 | population_label2 | no description | String | optional |
population_data2 | population_data2 | no description | String | optional |
population_label3 | population_label3 | no description | String | optional |
population_data3 | population_data3 | no description | String | optional |
population_census_year | population_census_year | no description | String | optional |
population_census_rank | population_census_rank | no description | String | optional |
population_density_km2 | population_density_km2 | no description | String | optional |
population_density_sq_mi | population_density_sq_mi | no description | String | optional |
pop_den_footnote | pop_den_footnote | no description | String | optional |
population_density_rank | population_density_rank | no description | String | optional |
FR_metropole_population | FR_metropole_population | no description | String | deprecated |
FR_total_population_estimate_year | FR_total_population_estimate_year | no description | String | deprecated |
FR_foot | FR_foot | no description | String | deprecated |
FR_total_population_estimate | FR_total_population_estimate | no description | String | deprecated |
FR_total_population_estimate_rank | FR_total_population_estimate_rank | no description | String | deprecated |
FR_metropole_population_estimate_rank | FR_metropole_population_estimate_rank | no description | String | deprecated |
FR_foot5 | FR_foot5 | no description | String | deprecated |
GDP_PPP | GDP_PPP | no description | String | optional |
GDP_PPP_year | GDP_PPP_year | no description | String | optional |
GDP_PPP_rank | GDP_PPP_rank | no description | String | optional |
GDP_PPP_per_capita | GDP_PPP_per_capita | no description | String | optional |
GDP_PPP_per_capita_rank | GDP_PPP_per_capita_rank | no description | String | optional |
GDP_nominal | GDP_nominal | no description | String | optional |
GDP_nominal_year | GDP_nominal_year | no description | String | optional |
GDP_nominal_rank | GDP_nominal_rank | no description | String | optional |
GDP_nominal_per_capita | GDP_nominal_per_capita | no description | String | optional |
GDP_nominal_per_capita_rank | GDP_nominal_per_capita_rank | no description | String | optional |
Gini | Gini | no description | String | optional |
Gini_year | Gini_year | no description | String | optional |
Gini_change | Gini_change | no description | String | optional |
Gini_ref | Gini_ref | no description | String | optional |
Gini_rank | Gini_rank | no description | String | optional |
HDI | HDI | no description | String | optional |
HDI_year | HDI_year | no description | String | optional |
HDI_change | HDI_change | no description | String | optional |
HDI_ref | HDI_ref | no description | String | optional |
HDI_rank | HDI_rank | no description | String | optional |
currency | currency | no description | String | optional |
currency_code | currency_code | no description | String | optional |
time_zone | time_zone | no description | String | optional |
utc_offset | utc_offset | no description | String | optional |
utc_offset_DST | utc_offset_DST | no description | String | optional |
DST_note | DST_note | no description | String | optional |
time_zone_DST | time_zone_DST | no description | String | optional |
DST | DST | no description | String | optional |
antipodes | antipodes | no description | String | optional |
date_format | date_format | no description | String | optional |
drives_on | drives_on | no description | String | optional |
calling_code | calling_code | no description | String | optional |
patron_saint | patron_saint | no description | String | optional |
patron_saints | patron_saints | no description | String | optional |
iso3166code | iso3166code | no description | String | optional |
cctld | cctld | no description | String | optional |
official_website | official_website | For geopolitical entities: do not use government website (e.g. usa.gov) for countries (e.g. [[United States]]). | String | optional |
footnote_a | footnote_a | no description | String | optional |
footnote_b | footnote_b | no description | String | optional |
footnote_c | footnote_c | no description | String | optional |
footnote_d | footnote_d | no description | String | optional |
footnote_e | footnote_e | no description | String | optional |
footnote_f | footnote_f | no description | String | optional |
footnote_g | footnote_g | no description | String | optional |
footnote_h | footnote_h | no description | String | optional |
footnote1 | footnote1 | no description | String | optional |
footnote2 | footnote2 | no description | String | optional |
footnote3 | footnote3 | no description | String | optional |
footnote4 | footnote4 | no description | String | optional |
footnote5 | footnote5 | no description | String | optional |
footnote6 | footnote6 | no description | String | optional |
footnote7 | footnote7 | no description | String | optional |
footnote8 | footnote8 | no description | String | optional |
footnotes | footnotes | no description | String | optional |
navbar | navbar | no description | String | optional |
Tracking category
- Category:Country articles requiring maintenance (9)
- Category:Pages using infobox country with syntax problems (0)