Template:Infobox country
File:Ambox warning yellow.svg | This template is used on approximately 6,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
File:Lua-Logo.svg | This template uses Lua: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. 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.
Syntax
<syntaxhighlight lang="html" style="overflow:auto;">
</syntaxhighlight>
Note: Now redundant. <syntaxhighlight lang="html"> |metropole = |metropole_area = |metropole_area_rank = |metropole_area_magnitude = |metropole_areami² = |metropole_population = |metropole_population_estimate_rank = |foot = |foot2 = |foot3 = |foot4 = |foot5 = </syntaxhighlight>
* 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).
<syntaxhighlight lang="html" style="overflow:auto;">
</syntaxhighlight>
<syntaxhighlight lang="html" style="overflow:auto;">
</syntaxhighlight>
Examples
<syntaxhighlight lang="html" style="overflow:auto;">
</syntaxhighlight>
<syntaxhighlight lang="html" style="overflow:auto;">
</syntaxhighlight>
<syntaxhighlight lang="html" style="overflow:auto;">
</syntaxhighlight>
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.
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.
Tracking categories
- Category:Country articles requiring maintenance (0)
- Category:Pages using infobox country with unknown parameters (0)
- Category:Pages using infobox country with syntax problems (0)
- Category:Pages using infobox country or infobox former country with the flag caption or type parameters (0)
- Category:Pages using infobox country or infobox former country with the symbol caption or type parameters (0)
- Category:Former country articles using status text with Colony or Exile (0)
TemplateData
TemplateData for Infobox country
TemplateData
|
---|
<templatedata> { "description": "This template produces an infobox for countries that covers their major attributes such as their flags, ethnic makeup, and political system.", "format": "Template:\n\n", "params": { "conventional_long_name": { "label": "Conventional long name", "type": "string", "required": false, "description": "Formal or official full name of the country in English. This entry should not be enclosed in brackets.", "example": "The United States of America" }, "common_name": {}, "linking_name": {}, "native_name": { "label": "Native name", "type": "string", "required": false, "example": "Error {{native name}}: a name as parameter {{{2}}} is required (help)", "description": "Country's name (usually full name) in its native language, hence in italics (double quotemarks). The template Error {{native name}}: an IETF language tag as parameter {{{1}}} is required (help) should be used with this parameter to automatically italicize the text." }, "name": { "label": "Geopolitical organisation name", "type": "string", "required": false, "description": "Name of the geopolitical organisation in English." }, "image_flag": { "label": "Flag", "type": "wiki-file-name", "required": false, "example": "Flag of Iceland.svg", "description": "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:" }, "flag_width": { "label": "Flag width", "type": "string", "required": false, "description": "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." }, "alt_flag": { "label": "Flag alt text", "type": "string", "required": false, "description": "Alternate text for flag (text shown when pointer hovers over flag)." }, "flag_border": { "label": "Flag border", "type": "string", "required": false, "description": "Set to no to disable border around the flag." }, "flag_caption": { "label": "Flag caption", "type": "string", "required": false, "description": "Use this parameter to enter a caption for the flag, if one is necessary. Do not end this entry with a period.", "example": "1992 version of the flag prior to the country's dissolution" }, "image_flag2": { "label": "Second flag", "type": "wiki-file-name", "required": false, "example": "Secondflag of Namibia.svg", "description": "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:, and do not enclose it in double brackets." }, "alt_flag2": { "label": "Second flag alt text", "type": "string", "required": false, "description": "Alt text for second flag (text shown when pointer hovers over flag)." }, "flag2_border": { "label": "Second flag border", "type": "string", "required": false, "description": "Set to no to disable border around the flag." }, "image_coat": { "label": "Coat of arms", "type": "wiki-file-name", "aliases": [ "image_symbol" ], "example": "Great Seal of the United States (obverse).svg" }, "symbol_width": { "label": "Symbol width", "type": "string", "required": false, "description": "Symbol image's width.", "default": "85px" }, "alt_coat": { "label": "Coat of arms alt text", "type": "string", "aliases": [ "alt_symbol", "coat_alt" ], "required": false, "description": "Alt text for coat of arms." }, "symbol_type": { "label": "Symbol type", "type": "string", "required": false, "description": "If not a coat of arms.", "example": "emblem, seal, etc" }, "symbol_type_article": { "label": "Symbol type article", "type": "string", "description": "An article about the type of symbol of the country" }, "text_symbol": { "label": "Text symbol", "type": "string", "required": false, "description": "For other types of text symbol.", "example": "[hymn name]" }, "text_symbol_type": { "label": "Text symbol type", "type": "string", "required": false, "description": "For other types of text symbol." }, "other_symbol": { "label": "Other symbol", "type": "string", "required": false, "description": "Use if a further symbol exists." }, "other_symbol_type": { "label": "Other symbol type", "type": "string", "required": false }, "national_motto": { "label": "National motto", "type": "string", "required": false, "example": "[Einigkeit und Recht und Freiheit] Error: {{Lang}}: text has italic markup (help)", "description": "In inverted commas and wikilinked if link exists. Can also be used with the [undefined] Error: {{Lang}}: no text (help) template and correct two-letter language code to designate the language of the motto where not provided in English." }, "motto": { "label": "Motto", "type": "string", "required": false }, "national_anthem": { "label": "National anthem", "type": "string", "required": false, "description": "In inverted commas and wikilinked if link exists." }, "anthem": { "label": "Anthem", "type": "string", "required": false }, "royal_anthem": { "label": "Royal anthem", "type": "string", "required": false, "description": "In inverted commas and wikilinked if link exists." }, "image_map": { "label": "Map", "type": "string", "required": false, "example": "LocationCountry.svg" }, "map_width": { "label": "Map width", "type": "string", "required": false, "description": "Map image's width.", "default": "250px" }, "alt_map": { "label": "Map alt text", "type": "string", "required": false }, "map_caption": { "label": "Map caption", "type": "string", "required": false, "description": "Caption to place below map." }, "image_map2": { "label": "Map 2", "type": "string", "required": false, "description": "Another map, if required." }, "map2_width": { "label": "Map 2 width", "type": "string", "required": false }, "alt_map2": { "label": "Map 2 alt text", "type": "string", "required": false }, "map_caption2": { "label": "Map 2 caption", "type": "string", "required": false, "description": "Caption to place below second map." }, "image_map3": {}, "map3_width": {}, "alt_map3": {}, "map_caption3": {}, "capital": { "label": "Capital", "type": "string", "required": false, "description": "Name of country/territory's capital, wikilinked if link exists." }, "capital_type": { "label": "Capital type", "type": "string", "required": false }, "coordinates": { "label": "Coordinates", "type": "string", "required": false, "description": "The geographic coordinates of the capital." }, "latd": { "label": "Latitude degrees", "type": "string", "required": false, "description": "The degrees of the capital's latitude." }, "latm": { "label": "Latitude minutes", "type": "string", "description": "The minutes of the capital's latitude." }, "latNS": { "label": "Latitude NS", "type": "string", "description": "The direction of the capital's latitude." }, "longd": { "label": "Longitude degrees", "type": "string", "description": "The degrees of the capital's longitude." }, "longm": { "label": "Longitude minutes", "type": "string", "description": "The minutes of the capital's longitude." }, "longEW": { "label": "Longitude EW", "type": "string", "description": "The direction of the capital's longitude." }, "admin_center": { "label": "Administrative center", "type": "string", "required": false, "description": "Location/s of administrative center/s." }, "admin_center_type": { "label": "Administrative center type", "type": "string", "required": false, "default": "Administrative center" }, "capital2": { "label": "Capital 2", "type": "string", "required": false, "description": "Name of country/territory's capital, wikilinked if link exists." }, "capital_type2": { "label": "Capital 2 type", "type": "string", "required": false }, "admin_center2": { "label": "Administrative center 2", "type": "string", "required": false }, "admin_center_type2": { "label": "Administrative center 2 type", "type": "string", "required": false }, "largest_city": { "label": "Largest city", "type": "string", "required": false, "description": "Name of country/territory's largest city. Use \"capital\" (without quotemarks) if it's the capital." }, "largest_settlement": { "label": "Largest settlement", "type": "string", "required": false, "description": "Name of largest settlement if not a city." }, "largest_settlement_type": { "label": "Largest settlement type", "type": "string", "required": false, "description": "Type of settlement if largest settlement not a city." }, "official_languages": { "label": "Official languages", "type": "string", "required": false, "description": "Languages recognised in legislation, constitution, etc." }, "national_languages": { "label": "National languages", "type": "string", "required": false, "description": "Country/territory-wide languages recognised but not necessarily in country/territory-wide law, etc." }, "regional_languages": { "label": "Regional languages", "type": "string", "required": false, "description": "Languages recognised or associated with particular regions within the country/territory." }, "languages_type": { "label": "Languages type", "type": "string", "description": "Use to specify a further type of language, if not official, national or regional." }, "languages_sub": { "label": "Languages sub", "type": "string", "required": false, "description": "Is this further type of language a sub-item of the previous non-sub type?", "example": "'yes' or 'no'" }, "languages": { "label": "Languages", "type": "string", "required": false, "description": "Languages of the further type." }, "languages2_type": { "label": "2nd languages type", "type": "string", "description": "Use to specify a 2nd further type of language, if not official, national or regional." }, "languages2_sub": { "label": "Languages 2 sub", "type": "string", "required": false, "description": "Is the second alternative type of languages a sub-item of the previous non-sub type?", "example": "'yes or 'no'" }, "languages2": { "label": "Languages 2", "type": "string", "required": false, "description": "Languages of the second further type." }, "ethnic_groups": { "label": "Ethnic groups", "type": "string", "required": false, "description": "The primary ethnic groups of the country", "example": "
},
"ethnic_groups_ref": {
"label": "Ethnic groups reference",
"type": "string",
"required": false,
"description": "Reference, in <ref> format, of ethnic composition"
},
"ethnic_groups_year": {
"label": "Ethnic groups year",
"type": "number",
"required": false,
"description": "Year the ethnic group statistic is from",
"example": "2017"
},
"religion": {
"label": "Religions",
"type": "string",
"required": false,
"description": "List of religious affiliations in Template:Ublist format",
"example": "Template:Ublist"
},
"religion_ref": {
"label": "Religions reference",
"type": "string",
"required": false,
"description": "Reference, in <ref> format, of religious composition"
},
"demonym": {
"label": "Demonym",
"type": "string",
"required": false,
"description": "Name of residents of this country",
"example": "Singaporean",
"suggested": true
},
"org_type": {
"label": "Organization type",
"type": "string",
"required": false
},
"membership": {
"label": "membership",
"type": "string",
"required": false
},
"membership_type": {
"label": "membership_type",
"type": "string",
"required": false
},
"government_type": {
"label": "Type of government",
"type": "string",
"required": false,
"description": "The type of government, e.g. federal republic",
"example": "Monarchy"
},
"politics_link": {
"label": "Politics link",
"type": "string",
"required": false
},
"leader_title1": {
"label": "Leader 1 title",
"type": "line",
"required": false,
"description": "Title of principal leader",
"example": "President"
},
"leader_name1": {
"label": "Leader 1 name",
"type": "line",
"required": false,
"description": "Name of principal leader",
"example": "Halimah Yacob"
},
"leader_title2": {
"label": "Leader 2 title",
"type": "line",
"required": false,
"description": "Title of 2nd leader",
"example": "Prime Minister"
},
"leader_name2": {
"label": "Leader 2 name",
"type": "line",
"description": "Name of 2nd leader",
"example": "Lee Hsien Loong"
},
"leader_title3": {
"label": "Leader 3 title",
"type": "line",
"required": false,
"description": "Title of 3rd leader",
"example": "Deputy Prime Ministers"
},
"leader_name3": {
"label": "Leader 3 name",
"type": "line",
"description": "Name of 3rd leader",
"example": "Teo Chee Hean "type": "content", "suggested": true }, "footnotes2": {}, "symbol_caption": {}, "nested": {} }, "paramOrder": [ "conventional_long_name", "common_name", "linking_name", "native_name", "name", "image_flag", "flag_width", "alt_flag", "flag_border", "flag_caption", "image_flag2", "alt_flag2", "flag2_border", "image_coat", "symbol_width", "alt_coat", "symbol_type", "symbol_type_article", "text_symbol", "text_symbol_type", "other_symbol", "other_symbol_type", "national_motto", "motto", "national_anthem", "anthem", "royal_anthem", "image_map", "map_width", "alt_map", "map_caption", "image_map2", "map2_width", "alt_map2", "map_caption2", "image_map3", "map3_width", "alt_map3", "map_caption3", "capital", "capital_type", "coordinates", "latd", "latm", "latNS", "longd", "longm", "longEW", "admin_center", "admin_center_type", "capital2", "capital_type2", "admin_center2", "admin_center_type2", "largest_city", "largest_settlement", "largest_settlement_type", "official_languages", "national_languages", "regional_languages", "languages_type", "languages_sub", "languages", "languages2_type", "languages2_sub", "languages2", "ethnic_groups", "ethnic_groups_ref", "ethnic_groups_year", "religion", "religion_ref", "demonym", "org_type", "membership", "membership_type", "government_type", "politics_link", "leader_title1", "leader_name1", "leader_title2", "leader_name2", "leader_title3", "leader_name3", "leader_title4", "leader_name4", "leader_title5", "leader_name5", "leader_title6", "leader_name6", "leader_title7", "leader_name7", "leader_title8", "leader_name8", "leader_title9", "leader_name9", "leader_title10", "leader_name10", "leader_title11", "leader_name11", "leader_title12", "leader_name12", "leader_title13", "leader_name13", "leader_title14", "leader_name14", "legislature", "upper_house", "lower_house", "sovereignty_type", "sovereignty_note", "established", "established_event1", "established_date1", "established_event2", "established_date2", "established_event3", "established_date3", "established_event4", "established_date4", "established_event5", "established_date5", "established_event6", "established_date6", "established_event7", "established_date7", "established_event8", "established_date8", "established_event9", "established_date9", "established_event10", "established_date10", "established_event11", "established_date11", "established_event12", "established_date12", "area_km2", "area_link", "area_label", "FR_foot4", "area_footnote", "area_rank", "area_sq_mi", "percent_water", "area_label2", "area_data2", "area_label3", "area_data3", "FR_metropole", "FR_foot2", "FR_IGN_area_km2", "FR_IGN_area_rank", "FR_IGN_area_sq_mi", "FR_foot3", "FR_cadastre_area_km2", "FR_cadastre_area_rank", "FR_cadastre_area_sq_mi", "population_estimate", "population_census", "population_link", "population_estimate_year", "population_estimate_rank", "population_label2", "population_data2", "population_label3", "population_data3", "population_census_year", "population_census_rank", "population_density_km2", "population_density_sq_mi", "pop_den_footnote", "population_density_rank", "FR_metropole_population", "FR_total_population_estimate_year", "FR_foot", "FR_total_population_estimate", "FR_total_population_estimate_rank", "FR_metropole_population_estimate_rank", "FR_foot5", "GDP_PPP", "GDP_PPP_year", "GDP_PPP_rank", "GDP_PPP_per_capita", "GDP_PPP_per_capita_rank", "GDP_nominal", "GDP_nominal_year", "GDP_nominal_rank", "GDP_nominal_per_capita", "GDP_nominal_per_capita_rank", "Gini", "Gini_year", "Gini_change", "Gini_ref", "Gini_rank", "HDI", "HDI_year", "HDI_change", "HDI_ref", "HDI_rank", "currency", "currency_code", "time_zone", "utc_offset", "utc_offset_DST", "DST_note", "time_zone_DST", "DST", "antipodes", "date_format", "drives_on", "rail gauge", "calling_code", "patron_saint", "iso3166code", "cctld", "official_website", "footnote_a", "footnote_b", "footnote_c", "footnote_d", "footnote_e", "footnote_f", "footnote_g", "footnote_h", "footnote1", "footnote2", "footnote3", "footnote4", "footnote5", "footnote6", "footnote7", "footnote8", "footnotes", "navbar", "micronation", "status", "status_text", "empire", "year_end", "year_exile_start", "year_exile_end", "life_span", "year_start", "flag_size", "flag_alt", "flag_alt2", "flag_type", "coa_size", "englishmotto", "image_map_size", "image_map_alt", "image_map_caption", "image_map2_size", "image_map2_alt", "image_map2_caption", "loctext", "capital_exile", "recognized_languages", "recognized_national_languages", "recognized_regional_languages", "common_languages", "religion_year", "leader_title15", "leader_name15", "title_leader", "year_leader1", "leader1", "year_leader2", "leader2", "year_leader3", "leader3", "year_leader4", "leader4", "year_leader5", "leader5", "year_leader6", "leader6", "year_leader7", "leader7", "year_leader8", "leader8", "year_leader9", "leader9", "year_leader10", "leader10", "year_leader11", "leader11", "title_representative", "year_representative1", "representative1", "year_representative2", "representative2", "year_representative3", "representative3", "year_representative4", "representative4", "year_representative5", "representative5", "title_deputy", "year_deputy1", "deputy1", "year_deputy2", "deputy2", "year_deputy3", "deputy3", "year_deputy4", "deputy4", "year_deputy5", "deputy5", "year_deputy6", "deputy6", "type_house1", "house1", "type_house2", "house2", "established_event13", "established_date13", "established_event14", "established_date14", "established_event15", "established_date15", "event_pre", "date_pre", "event_start", "date_start", "event1", "date_event1", "event2", "date_event2", "event3", "date_event3", "event4", "date_event4", "event5", "date_event5", "event6", "date_event6", "event_end", "date_end", "event_post", "date_post", "area_ha", "area_acre", "area_land_km2", "area_land_ha", "area_land_sq_mi", "area_land_acre", "area_water_km2", "area_water_ha", "area_water_sq_mi", "area_water_acre", "stat_area1", "stat_area2", "stat_area3", "stat_area4", "stat_area5", "area_land_footnote", "area_water_footnote", "stat_year1", "ref_area1", "stat_year2", "ref_area2", "stat_year3", "ref_area3", "stat_year4", "ref_area4", "stat_year5", "ref_area5", "stat_pop1", "stat_pop2", "stat_pop3", "stat_pop4", "stat_pop5", "ref_pop1", "ref_pop2", "ref_pop3", "ref_pop4", "ref_pop5", "nummembers", "p1", "s1", "flag_p1", "image_p1", "border_p1", "flag_p2", "image_p2", "p2", "border_p2", "flag_p3", "image_p3", "p3", "border_p3", "flag_p4", "image_p4", "p4", "border_p4", "flag_p5", "image_p5", "p5", "border_p5", "flag_p6", "image_p6", "p6", "border_p6", "flag_p7", "image_p7", "p7", "border_p7", "flag_p8", "image_p8", "p8", "border_p8", "flag_p9", "image_p9", "p9", "border_p9", "flag_p10", "image_p10", "p10", "border_p10", "flag_p11", "image_p11", "p11", "border_p11", "flag_p12", "image_p12", "p12", "border_p12", "flag_p13", "image_p13", "p13", "border_p13", "flag_p14", "image_p14", "p14", "border_p14", "flag_p15", "image_p15", "p15", "border_p15", "flag_s1", "image_s1", "border_s1", "flag_s2", "image_s2", "s2", "border_s2", "flag_s3", "image_s3", "s3", "border_s3", "flag_s4", "image_s4", "s4", "border_s4", "flag_s5", "image_s5", "s5", "border_s5", "flag_s6", "image_s6", "s6", "border_s6", "flag_s7", "image_s7", "s7", "border_s7", "flag_s8", "image_s8", "s8", "border_s8", "flag_s9", "image_s9", "s9", "border_s9", "flag_s10", "image_s10", "s10", "border_s10", "flag_s11", "image_s11", "s11", "border_s11", "flag_s12", "image_s12", "s12", "border_s12", "flag_s13", "image_s13", "s13", "border_s13", "flag_s14", "image_s14", "s14", "border_s14", "flag_s15", "image_s15", "s15", "border_s15", "today", "footnotes2", "symbol_caption", "nested" ] } </templatedata> |