Template:Infobox country
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. Remember that you can conduct experiments, and should test all improvements, in either the local /sandbox or your user space before changing anything here. |
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.
This template uses Lua: |
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.
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.
hCard uses HTML classes including:
- "adr"
- "county-name"
- "fn"
- "label"
- "locality"
- "nickname"
- "note"
- "org"
- "vcard"
Please do not rename or remove these classes.
Tracking categories
- Category:Country articles requiring maintenance (2)
- Category:Pages using infobox country with syntax problems (15)
- Category:Pages using infobox country with unknown parameters (122)
- Category:Pages using infobox country or infobox former country with the flag caption or type parameters (153)
- Category:Pages using infobox country or infobox former country with the symbol caption or type parameters (262)
- Category:Former country articles using status text with Colony or Exile (0)
TemplateData
TemplateData documentation used by VisualEditor and other tools
|
---|
See the monthly parameter usage report for this template.
TemplateData for Infobox country <templatedata> { "description": "This template produces an infobox for countries that covers their major attributes such as their flags, ethnic makeup, and political system.", "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": "{{{2}}} (language?)", "description": "Country's name (usually full name) in its native language, hence in italics (double quotemarks). The template {{{2}}} (language?) 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", "description": "In inverted commas and wikilinked if link exists. Can also be used with the {{{2}}} 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 format", "example": "
},
"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 }, "religion_year": { "type": "number", "label": "Religion statistic year", "description": "Year the religion statistic is from", "example": "2015" }, "leader_title15": { "type": "line" }, "leader_name15": { "type": "line" }, "title_leader": { "type": "line", "label": "Leader's title", "description": "Title of the country's leader", "example": "President" }, "year_leader1": { "type": "line", "label": "Leader 1 years", "description": "Years the first leader reigned", "example": "1776-1795" }, "leader1": { "type": "line", "label": "Leader 1", "description": "The first leader of the country", "example": "George Washington" }, "year_leader2": { "type": "line" }, "leader2": { "type": "line" }, "year_leader3": { "type": "line" }, "leader3": { "type": "line" }, "year_leader4": { "type": "line" }, "leader4": { "type": "line" }, "year_leader5": { "type": "line" }, "leader5": { "type": "line" }, "year_leader6": { "type": "line" }, "leader6": { "type": "line" }, "year_leader7": { "type": "line" }, "leader7": { "type": "line" }, "year_leader8": { "type": "line" }, "leader8": { "type": "line" }, "year_leader9": { "type": "line" }, "leader9": { "type": "line" }, "year_leader10": { "type": "line" }, "leader10": { "type": "line" }, "year_leader11": { "type": "line", "label": "Leader 11 years", "description": "Year of leader 11", "example": "1980-1987" }, "leader11": { "type": "line" }, "title_representative": { "type": "line", "label": "Representative title", "description": "Title of the country's representative", "example": "Governor General" }, "year_representative1": { "type": "line", "label": "Representative 1 years", "description": "Year of representative 1", "example": "1492-1506" }, "representative1": { "type": "line", "label": "Representative 1", "description": "First representative" }, "year_representative2": { "type": "line", "label": "Representative 2 years", "description": "Year of representative 2", "example": "1552-1580" }, "representative2": { "type": "line" }, "year_representative3": { "type": "line", "label": "Representative 3 years", "description": "Year of representative 3", "example": "1652-1666" }, "representative3": { "type": "line" }, "year_representative4": { "type": "line", "label": "Representative 4 year", "description": "Year of representative 4", "example": "1652-1666" }, "representative4": { "type": "line" }, "year_representative5": { "type": "line", "label": "Representative 5 years", "description": "Year of representative 5", "example": "1652-1666" }, "representative5": { "type": "line" }, "title_deputy": { "type": "line" }, "year_deputy1": { "type": "line", "label": "Deputy 1 years", "description": "Years of the 1st deputy", "example": "2006-2009" }, "deputy1": { "type": "line", "label": "Deputy 1", "description": "First deputy" }, "year_deputy2": { "type": "line", "label": "Deputy 2 years", "description": "Years of the 2nd deputy", "example": "2009-2011" }, "deputy2": { "type": "line" }, "year_deputy3": { "type": "line", "label": "Deputy 3 years", "description": "Years of the 3rd deputy", "example": "2011-2013" }, "deputy3": { "type": "line" }, "year_deputy4": { "type": "line", "label": "Deputy 4 years", "description": "Years of the 4th deputy", "example": "2013-2016" }, "deputy4": { "type": "line" }, "year_deputy5": { "type": "line", "label": "Deputy 5 years", "description": "Years of the 5th deputy", "example": "2016-2018" }, "deputy5": { "type": "line" }, "year_deputy6": { "type": "line", "label": "Deputy 6 years", "description": "Years of the 6th deputy", "example": "2018-" }, "deputy6": { "type": "line" }, "type_house1": { "type": "line" }, "house1": { "type": "line" }, "type_house2": { "type": "line" }, "house2": { "type": "line" }, "event_pre": { "type": "line" }, "established_event13": { "label": "Establishment event 13", "type": "line" }, "established_date13": { "label": "Establishment date 13", "type": "date" }, "established_event14": { "type": "line" }, "established_date14": { "type": "line" }, "established_event15": { "type": "line" }, "established_date15": { "type": "line" }, "event_start": { "label": "Starting event", "description": "The foundational event of the country", "example": "Established", "type": "string" }, "date_pre": {}, "date_start": { "label": "Date established", "description": "Date the country, dynasty or organization was established (date of event_start)", "example": "601 CE", "type": "string" }, "event1": { "label": "Event 1", "description": "First significant event", "example": "Signing of the Chanyuan Treaty with Liao", "type": "string" }, "date_event1": { "label": "Event 1 date", "description": "Date of the first significant event", "example": "601", "type": "date" }, "event2": { "label": "Event 2", "description": "Second significant event", "example": "Alliance with Jin", "type": "string" }, "date_event2": { "label": "Event 2 date", "description": "Date of the second significant event", "type": "string" }, "event3": { "label": "Event 3", "description": "Third significant event", "example": "Jingkang Incident", "type": "string" }, "date_event3": {}, "event4": { "label": "Event 4", "description": "Fourth significant event", "example": "Beginning of Mongol invasion", "type": "string" }, "date_event4": {}, "event5": { "label": "Event 5", "description": "Fifth significant event", "example": "Fall of Lin'an", "type": "string" }, "date_event5": {}, "event6": { "label": "Event 6", "description": "Sixth significant event", "example": "Krystallnacht", "type": "string" }, "date_event6": {}, "event_end": { "label": "Event ending the country", "description": "The event that caused the country to stop existing or transition, if applicable", "example": "Battle of Yamen (end of dynasty)", "type": "string" }, "date_end": { "label": "End date", "description": "Date the country stopped existing or transitioned, if applicable", "example": "1433", "type": "date" }, "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": { "label": "Statistic 5 year", "description": "Year of statistic 5", "example": "1933", "type": "number" }, "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": { "label": "Today part of", "description": "For former countries, a list of countries (optionally in Template:Country data ... format) of which the former country's territories are now part.", "example": "","type": "content", "suggested": true }, "footnotes2": {}, "symbol_caption": {} }, "format": "Template:\n\n" } </templatedata> |
The above documentation is transcluded from Template:Infobox country/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
Cite error: There are <ref>
tags on this page, but the references will not show without a {{Reflist|group=lower-alpha}}
template or a <references group="lower-alpha"/>
tag.