Template:Infobox country

From Atlas
Template documentation[view] [edit] [history] [purge]

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[edit]

{{Infobox country
|conventional_long_name = <!--Formal or official full name of the country in English-->
|native_name =        <!--Country's name (usually full name) in its native language, hence in italics (double quotemarks)-->
|common_name =        <!--Common name in English (used for wikilinks and to produce a default iso3166 code)-->
|image_flag =         <!--e.g. Flag of country.svg-->
|alt_flag =           <!--alt text for flag (text shown when pointer hovers over flag)-->
|image_flag2 =        <!--e.g. Second-flag of country.svg-->
|alt_flag2 =          <!--alt text for second flag-->
|image_coat =         <!--e.g. Coat of arms of country.svg-->
|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-->
|national_anthem =    <!--in italics (double quotemarks) and wikilinked if link exists-->
|royal_anthem =       <!--in italics (double quotemarks) and wikilinked if link exists-->
|other_symbol_type =  <!--Use if a further symbol exists, e.g. hymn-->
|other_symbol =
|image_map =          <!--e.g. LocationCountry.svg-->
|alt_map =            <!--alt text for map-->
|map_caption =        <!--Caption to place below map-->
|image_map2 =         <!--Another map, if required-->
|alt_map2 =           <!--alt text for second map-->
|map_caption2 =       <!--Caption to place below second map-->
|capital =            <!--Name of country/territory's capital, wikilinked if link exists-->
|latd= | latm= | latNS= |longd= |longm= |longEW= <!--capital's latitude and longitude in degrees/minutes/direction-->
|largest_city =       <!--Name of country/territory's largest city. Use "capital" (without quotemarks) if it's the capital.-->
|largest_settlement_type = <!--Type of settlement if largest settlement not a city-->
|largest_settlement = <!--Name of largest settlement-->
|official_languages = <!--Languages recognised in legislation, constitution, etc-->
|national_languages = <!--Country/territory-wide languages recognised but not necessarily in country/territory-wide law, etc-->
|regional_languages = <!--Languages recognised or associated with particular regions within the country/territory-->
|languages_type =     <!--Use to specify a further type of language, if not official, national or regional-->
|languages =          <!--Languages of the further type-->
|languages_sub =      <!--Is this further type of language a sub-item of the previous non-sub type? ("yes" or "no")-->
|languages2_type =    <!--Another further type of language-->
|languages2 =         <!--Languages of this second further type-->
|languages2_sub =     <!--Is the second alternative type of languages a sub-item of the previous non-sub type? ("yes" or "no")-->
|ethnic_groups =      <!--List/breakdown of ethnic groups within the country/territory-->
|ethnic_groups_year = <!--Year of ethnic groups data (if provided) or use to place a <ref>-->
|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)-->
|leader_title1 =      <!--(for a country, usually the head of state's (wikilinked) title, e.g. "President", "Monarch")-->
|leader_name1 =
|leader_title2 =      <!--(could be "Vice President", otherwise "Prime Minster", etc, etc)-->
|leader_name2 =
<!--......-->
|leader_title6 =      <!--(up to six distinct leaders may be included)-->
|leader_name6 = 
|legislature =        <!--Name of the country/territory's governing body, e.g. "Parliament", "Congress", etc-->
|upper_house =        <!--Name of governing body's upper house, if given (e.g. "Senate")-->
|lower_house =        <!--Name of governing body's lower house, if given (e.g. "Chamber of Deputies")-->
|sovereignty_type =   <!--Brief description of country/territory's status ("Independence [from...]", "Autonomous province [of...]", etc)-->
|sovereignty_note = 
|established_event1 = <!--First key event in history of country/territory's status or formation-->
|established_date1 =  <!--Date of first key event-->
|established_event2 = <!--Second key event-->
|established_date2 =  <!--Date of second key event-->
<!--......-->
|established_event9 = <!--(up to nine distinct events may be included)-->
|established_date9 =
|area_rank = 
|area_magnitude = 
|area =               <!--Major area size (in [[Template:convert]] either km2 or sqmi first)-->
|area_km2 =           <!--Major area size (in square km)-->
|area_sq_mi =         <!--Area in square mi (requires area_km2)-->
|area_footnote =      <!--Optional footnote for area-->
|percent_water = 
|area_label =         <!--Label under "Area" (default is "Total")-->
|area_label2 =        <!--Label below area_label (optional)-->
|area_data2 =         <!--Text after area_label2 (optional)-->
|population_estimate = 
|population_estimate_rank = 
|population_estimate_year = 
|population_census = 
|population_census_year = 
|population_density_km2 = 
|population_density_sq_mi = 
|population_density_rank = 
|GDP_PPP =                     <!--(Gross Domestic Product from Purchasing Power Parity)-->
|GDP_PPP_rank = 
|GDP_PPP_year = 
|GDP_PPP_per_capita = 
|GDP_PPP_per_capita_rank = 
|GDP_nominal = 
|GDP_nominal_rank = 
|GDP_nominal_year = 
|GDP_nominal_per_capita = 
|GDP_nominal_per_capita_rank = 
|Gini =                        <!--(Gini measure of income inequality; input number only; valid values are between 0 and 100)-->
|Gini_ref =                    <!--(for any ref/s to associate with Gini number)-->
|Gini_rank = 
|Gini_year = 
|HDI =                         <!--(Human Development Index; input number only; valid values are between 0 and 1)-->
|HDI_ref =                     <!--(for any ref/s to associate with HDI number)-->
|HDI_rank = 
|HDI_year = 
|currency =           <!--Name/s of currency/ies used in country/territory-->
|currency_code =      <!--ISO 4217 code/s for currency/ies (each usually three capital letters)-->
|time_zone =          <!--e.g. GMT, PST, AST, etc, etc (wikilinked if possible)-->
|utc_offset =         <!--in the form "+N", where N is number of hours offset-->
|time_zone_DST =      <!--Link to DST (Daylight Saving Time) used, otherwise "not observed"-->
|utc_offset_DST =     <!--in the form "+N", where N is number of hours offset-->
|DST_note =           <!--Optional note regarding DST use-->
|antipodes =          <!--Place/s exactly on the opposite side of the world to country/territory-->
|date_format =        <!--numeric dates (dd-mm-yyyy, yyyy.mm.dd, etc) plus era (CE, AD, AH, etc)-->
|drives_on =          <!--"right" or "left" (side of road)-->
|cctld =              <!--Internet country code top-level domain identifier (e.g. [[.br]], [[.de]], etc)
|iso3166code =        <!--Use to override default from common_name parameter above; omit using "omit".-->
|calling_code =       <!--e.g. [[+1]], [[+531]], [[+44]], etc-->
|image_map3 =         <!--Optional third map position, e.g. for use with reference to footnotes below it-->
|alt_map3 =           <!--alt text for third map position-->
|footnote_a =         <!--For any footnote <sup>a</sup> used above-->
|footnote_b =         <!--For any footnote <sup>b</sup> used above-->
<!--......-->
|footnote_h =         <!--For any footnote <sup>h</sup> used above-->
|footnotes =          <!--For any generic non-numbered footnotes-->
}}
France-specific parameters
|metropole = 
|metropole_area = 
|metropole_area_rank = 
|metropole_area_magnitude = 
|metropole_areami² = 
|metropole_population = 
|metropole_population_estimate_rank = 
|foot = 
|foot2 = 
|foot3 = 
|foot4 = 
|foot5 = 
United Kingdom-specific parameters
|patron_saint = 
European Union-specific parameters
|accessionEUdate = 

* 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).

Geopolitical organization
{{Infobox geopolitical organization
|name =              <!-- (in English) -->
|native_name =       <!-- Long-form name in native or any/all non-English languages -->
|linking_name =      <!-- For wikilinks, if diff from name -->
|image_flag =        <!-- Flag image's filename -->
|alt_flag =          <!-- alt text for flag-->
|symbol_type =       <!-- Symbol, Emblem, Logo, etc. -->
|image_symbol =      <!-- Symbol image's filename -->
|alt_symbol =        <!-- alt text for symbol -->
|symbol_width =      <!-- Symbol image's width (default 85px) -->
|motto =             <!-- "[motto]" -->
|anthem =            <!-- ''[anthem name]'' -->
|text_symbol_type =  <!-- for other types of text symbol -->
|text_symbol =       <!-- e.g. ''[hymn name]'' -->
|image_map =         <!-- Map image's filename -->
|alt_map =           <!-- alt text for map image -->
|map_width =         <!-- Map image's width (default 250px) -->
|map_caption = 
|org_type =          <!-- e.g. Trade bloc -->
|membership_type =   <!-- (default "Membership") -->
|membership =        <!-- Type/s and/or number/s of members -->
|admin_center_type = <!-- e.g. "Administrative center" (default) -->
|admin_center =      <!-- Location/s of administrative center/s -->
|languages_type =    <!-- e.g. "[[Official language]]s" (default) -->
|languages = 
|leader_title1 =     <!-- e.g. "Chair", "President", etc. -->
|leader_name1 = 
|leader_title2 =     <!-- e.g. "Deputy chair", etc. -->
|leader_name2 = 
<--......-->
|leader_title6 = 
|leader_name6 = 
|established =       <!-- Usually a date, in lieu of event/s hereafter -->
|established_event1 = 
|established_date1 = 
|established_event2 = 
|established_date2 = 
<--......-->
|established_event9 = 
|established_date9 = 
|official_website = 
|area_magnitude = 
|area_km2 =          <!-- major area size (in sq_km) -->
|area_sq_mi =        <!-- area in square mi (requires area_km2) -->
|area_footnote =     <!-- optional footnote for area -->
|percent_water = 
|area_label =        <!-- label under "Area" (default is "Total") -->
|area_label2 =       <!-- label below area_label (optional) -->
|area_dabodyalign =  <!-- text after area_label2 (optional) -->
|population_estimate = 
|population_estimate_year = 
|population_density_km2 = 
|population_density_sq_mi = 
|GDP_PPP = 
|GDP_PPP_rank = 
|GDP_PPP_year = 
|GDP_PPP_per_capita = 
|GDP_nominal = 
|GDP_nominal_year = 
|GDP_nominal_per_capita = 
|Gini =              <!-- number only, 0-100 -->
|Gini_ref =          <!-- for any ref/s to associate with Gini number -->
|Gini_year = 
|HDI =               <!-- number only, 0-1 -->
|HDI_ref =           <!-- for any ref/s to associate with HDI number -->
|HDI_year = 
|currency = 
|currency_code = 
|time_zone = 
|utc_offset =        <!-- +N, where N is number of hours -->
|footnote1 = 
|footnote2 = 
<--......-->
|footnote7 = 
|footnotes =         <!-- For generic non-numbered footnotes -->
}}

Examples[edit]

Country or territory

{{Infobox country |native_name = Republic of Rio |common_name = Rio |image_flag = Flag of Ghana.svg |alt = Vertical tricolor (red,yellow, Green) with a five-pointed Black star in the center of the Yellow. |image_coat = Coat of arms of Sierra Leone.svg |symbol_type = Coat of arms |image_map = Rio (1).png |national_motto = Unity, Freedom and Justice |national_anthem = All Hail Rio Hail, All Hail Rio hail |official_languages = English, Twi and Krio |Demonym = Rionian |ethnic_groups =

{{unbulleted list
 | {{Ashanti|31% [[Ethnic groups in Rio|Krio}}
 | 19% Ga
 | 11% Youroba
 | 10% Fulani
 |  8% Mende
 |  7% Tswana
 | 13% other Groups
 | <1% non-Rionian
}}

|capital = Accra |largest_city = Accra |government_type = Republic |leader_name1 = Ian Khama |leader_name2 = Nelson Mandela |population_estimate = 3,452,392 |population_estimate_year = 2018 |population_census_year = 2018 |population_density_km2 = 5.32 |GDP_PPP = $1,980,252,592,421 |GDP_PPP_year = 2018 |GDP_PPP_per_capita = $124,900 |GDP_nominal = $3.467 trillion |GDP_nominal_year = 2018 |sovereignty_type = Independence from Briton |established_event1 = Rio empire |established_date1 = 1075 |established_event2 = Briton came |established_date2 = 1736 |established_event3 = independence |established_date3 = 27th April 1961 |established_event4 = civil war |established_date4 = 18th august 1981 |established_event5 = current consitution |established_date5 = 20 September 1991 |currency = Rioans |currency_code = + |country_code = Ro |time_zone = Versutian eastern time |utc_offset = +2 |drives_on = right |calling_code = +233 }}

Errors[edit]

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[edit]

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[edit]

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.



as:সাঁচ:Infobox Country be-x-old:Шаблён:Краіна eo:Ŝablono:Landtabelo fy:Berjocht:Lântabel ga:Teimpléad:Bosca Sonraí Tíre hi:साँचा:इंफ़ोबॉक्स देश ku:Şablon:Welat mt:Mudell:Infobox Pajjiż mr:साचा:माहितीचौकट देश pt:Predefinição:Info/País tr:Şablon:Ülke bilgi kutusu