Contents

Template:Infobox country

Infobox country is WikiPartner's standard infobox for country articles.

Use it for sovereign states and other subjects that WikiPartner treats as countries. Cities, states, provinces, regions, districts, and other geographic places should normally use Template:Infobox place instead.

All parameters are optional. Add only information supported by reliable sources. Empty fields are automatically hidden.

Adding this template to a country article also generates Schema.org Country structured data automatically. Editors do not need to create JSON-LD manually.

Short usage

Use this version for most country articles.

{{Infobox country
| name =
| official_name =
| native_name =

| flag_image =
| flag_alt =

| capital =
| continent =
| region =

| official_languages =

| area =

| population =
| population_as_of =

| currency =
| currency_code =

| timezone =
| calling_code =
| internet_tld =

| website =
}}

Full usage

Use this version when more information is available. Remove fields that are not needed.

{{Infobox country
| name =
| official_name =
| native_name =

| flag_image =
| flag_alt =
| flag_caption =

| emblem_image =
| emblem_alt =

| map_image =
| map_alt =
| map_caption =

| motto =
| anthem =

| capital =
| largest_city =

| continent =
| region =

| official_languages =
| recognized_languages =
| demonym =

| government =

| head_of_state_title =
| head_of_state =

| head_of_government_title =
| head_of_government =

| legislature =

| formation =

| area =
| area_km2 =
| water_percent =

| population =
| population_number =
| population_as_of =
| population_density =

| gdp_ppp =
| gdp_ppp_year =

| gdp_nominal =
| gdp_nominal_year =

| currency =
| currency_code =

| timezone =
| driving_side =

| calling_code =
| internet_tld =

| iso_alpha2 =
| iso_alpha3 =
| iso_numeric =

| coordinates =
| latitude =
| longitude =

| website =
}}

Images

The country infobox supports three different national images:

  • flag_image — national flag
  • emblem_image — coat of arms, national seal, or other official national emblem
  • map_image — map showing the country's location or territory

Use file names only. Do not include File:... markup in these parameters.

The flag is used as the main infobox image when supplied.

Structured-data fields

Some fields have separate machine-readable values.

For population:

| population = 40,000,000
| population_number = 40000000
| population_as_of = 2026

For area:

| area = 500,000 km²
| area_km2 = 500000

For coordinates:

| coordinates = 30°N, 70°E
| latitude = 30
| longitude = 70

The human-readable values are displayed in the infobox. The numeric versions are used for structured data.

Examples

The examples below deliberately omit images so the documentation does not depend on particular uploaded file names.

Japan

Wikitext

{{Infobox country
| name = Japan
| native_name = 日本国
| capital = Tokyo
| continent = Asia
| region = East Asia
| currency = Japanese yen
| currency_code = JPY
| timezone = Japan Standard Time (UTC+09:00)
| calling_code = +81
| internet_tld = .jp
| website = https://www.japan.go.jp/
}}

Rendered infobox

Japan
Country



Native name
日本国




Capital
Tokyo


Continent
Asia
Region
East Asia















Currency
Japanese yen(JPY)
Time zone
Japan Standard Time (UTC+09:00)


Calling code
+81
Internet TLD
.jp






Canada

Wikitext

{{Infobox country
| name = Canada
| capital = Ottawa
| continent = North America
| official_languages = English; French
| currency = Canadian dollar
| currency_code = CAD
| timezone = Multiple time zones
| calling_code = +1
| internet_tld = .ca
| website = https://www.canada.ca/
}}

Rendered infobox

Canada
Country







Capital
Ottawa


Continent
North America


Official languages
English; French














Currency
Canadian dollar(CAD)
Time zone
Multiple time zones


Calling code
+1
Internet TLD
.ca






Brazil

Wikitext

{{Infobox country
| name = Brazil
| official_name = Federative Republic of Brazil
| native_name = República Federativa do Brasil
| capital = Brasília
| continent = South America
| official_languages = Portuguese
| currency = Brazilian real
| currency_code = BRL
| timezone = Multiple time zones
| calling_code = +55
| internet_tld = .br
| website = https://www.gov.br/
}}

Rendered infobox

Brazil
Country


Official name
Federative Republic of Brazil
Native name
República Federativa do Brasil




Capital
Brasília


Continent
South America


Official languages
Portuguese














Currency
Brazilian real(BRL)
Time zone
Multiple time zones


Calling code
+55
Internet TLD
.br






Usage notes

  • Use name for the commonly recognized English article name.
  • Use official_name for the country's formal official name when useful.
  • Use native_name for the country's name in its native language or writing system.
  • If several native names are important, separate them with semicolons.
  • Use flag_image for the national flag filename only.
  • Use emblem_image for an official coat of arms, seal, or equivalent national emblem.
  • Use map_image for a useful country map.
  • Use properly licensed images only.
  • Use capital for the official capital or capitals.
  • If a country has more than one capital function, explain the distinction rather than forcing all cities into a single unexplained value.
  • Use largest_city only when clearly established by the relevant population definition.
  • Use continent for the continent or continents containing the country.
  • Use region for a useful geographic subregion such as East Asia, Southern Africa, or Northern Europe when reliably sourced.
  • Use official_languages only for languages with official status.
  • Use recognized_languages for other nationally recognized languages when this distinction is relevant.
  • Separate multiple languages with semicolons.
  • Use demonym for the commonly accepted demonym or demonyms.
  • Use government for a concise description of the country's system of government.
  • Use head_of_state_title and head_of_government_title when the country's titles differ from the generic labels.
  • Government officeholders can change. Keep head_of_state and head_of_government current and supported by reliable sources.
  • Use legislature for the country's national legislative body when useful.
  • Use formation for a concise major formation, independence, establishment, or constitutional milestone. Complex national histories should remain in the article body.
  • Include units in the human-readable area field.
  • Use area_km2 as a number only, without km², commas, or other text.
  • Use population_as_of whenever population is supplied.
  • Use population_number as a plain numeric value for structured data.
  • Population values can differ by census, estimate, date, and territorial definition. Use a clearly dated reliable source.
  • Use population_density with the unit included.
  • GDP values should include a clear monetary unit and should always use the corresponding year field.
  • Use currency_code for the standard currency code when available.
  • Use timezone for the country's time zone or a concise description such as Multiple time zones.
  • Use driving_side as Left or Right when relevant.
  • Include the leading + in calling_code.
  • Include the leading period in a country-code top-level domain, for example .ca.
  • Use official ISO country codes in iso_alpha2, iso_alpha3, and iso_numeric.
  • Do not guess ISO codes.
  • Use coordinates for human-readable coordinates.
  • Use decimal latitude and longitude for structured data.
  • Longitude west of Greenwich should normally be negative.
  • Use website for an official national government or official country portal when suitable.
  • Leave unused fields out.
  • Do not add unsupported territorial, demographic, economic, linguistic, or constitutional claims.
  • Avoid presenting disputed or source-dependent figures as universally settled facts.

Structured data

WikiPartner represents country articles using Schema.org Country.

The country's common name is emitted as name, while formal and native names may be emitted as alternateName.

The national flag may be emitted as the country's image.

Decimal coordinates are represented using GeoCoordinates.

Official ISO codes are represented through Schema.org identifier using PropertyValue objects.

Country characteristics for which Schema.org does not provide a dedicated property, such as capital, population, area, language, currency, calling code, and internet TLD, may be represented using additionalProperty.

Political officeholders, GDP values, national motto, anthem, legislature, and other fields remain visible encyclopedic information unless there is a precise structured-data relationship that can be represented without guessing.

TemplateData

WikiPartner's standard infobox for countries.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Commonly recognized English name of the country.

Stringoptional
Official nameofficial_name

Formal official name of the country.

Stringoptional
Native namenative_name

Country name in its native language or writing system.

Stringoptional
Flag imageflag_image

National flag filename without File markup.

Fileoptional
Flag alternative textflag_alt

Short alternative text describing the national flag.

Stringoptional
Flag captionflag_caption

Optional caption displayed below the flag.

Stringoptional
National emblememblem_image

Coat of arms, seal, or other official national emblem filename.

Fileoptional
Emblem alternative textemblem_alt

Short alternative text describing the national emblem.

Stringoptional
Map imagemap_image

Country location or territory map filename.

Fileoptional
Map alternative textmap_alt

Short alternative text describing the map.

Stringoptional
Map captionmap_caption

Optional caption displayed below the country map.

Stringoptional
Mottomotto

Official or nationally recognized motto when relevant.

Stringoptional
Anthemanthem

National anthem.

Stringoptional
Capitalcapital

Capital city or cities of the country.

Stringoptional
Largest citylargest_city

Largest city when clearly established by the relevant population definition.

Stringoptional
Continentcontinent

Continent or continents containing the country.

Stringoptional
Regionregion

Geographic subregion containing the country.

Stringoptional
Official languagesofficial_languages

Languages with official status. Separate multiple languages with semicolons.

Stringoptional
Recognized languagesrecognized_languages

Other nationally recognized languages when relevant.

Stringoptional
Demonymdemonym

Common demonym or demonyms for the country's people.

Stringoptional
Governmentgovernment

Concise description of the country's system of government.

Stringoptional
Head of state titlehead_of_state_title

Official title used for the country's head of state.

Stringoptional
Head of statehead_of_state

Current head of state when relevant and reliably sourced.

Stringoptional
Head of government titlehead_of_government_title

Official title used for the country's head of government.

Stringoptional
Head of governmenthead_of_government

Current head of government when relevant and reliably sourced.

Stringoptional
Legislaturelegislature

National legislative body or bodies.

Stringoptional
Formationformation

Concise formation, independence, establishment, or constitutional milestone.

Stringoptional
Areaarea

Human-readable total area including the unit.

Stringoptional
Area in square kilometresarea_km2

Numeric total area in square kilometres used for structured data.

Numberoptional
Water percentagewater_percent

Percentage of the country's area covered by water when useful.

Stringoptional
Populationpopulation

Human-readable population figure.

Stringoptional
Population numberpopulation_number

Plain numeric population used for structured data.

Numberoptional
Population as ofpopulation_as_of

Year or date applicable to the population figure.

Stringoptional
Population densitypopulation_density

Population density including the unit.

Stringoptional
GDP PPPgdp_ppp

Human-readable gross domestic product at purchasing power parity.

Stringoptional
GDP PPP yeargdp_ppp_year

Year applicable to the GDP PPP figure.

Stringoptional
GDP nominalgdp_nominal

Human-readable nominal gross domestic product.

Stringoptional
GDP nominal yeargdp_nominal_year

Year applicable to the nominal GDP figure.

Stringoptional
Currencycurrency

Official currency or currencies.

Stringoptional
Currency codecurrency_code

Standard currency code when available.

Stringoptional
Time zonetimezone

Time zone or concise description of multiple time zones.

Stringoptional
Driving sidedriving_side

Side of the road normally used for driving.

Stringoptional
Calling codecalling_code

International telephone calling code including the leading plus sign.

Stringoptional
Internet TLDinternet_tld

Country-code top-level domain including the leading period.

Stringoptional
ISO alpha-2iso_alpha2

Two-letter ISO 3166-1 country code.

Stringoptional
ISO alpha-3iso_alpha3

Three-letter ISO 3166-1 country code.

Stringoptional
ISO numericiso_numeric

Three-digit ISO 3166-1 numeric country code.

Stringoptional
Coordinatescoordinates

Human-readable geographic coordinates.

Stringoptional
Latitudelatitude

Decimal latitude used for structured geographic data.

Numberoptional
Longitudelongitude

Decimal longitude used for structured geographic data.

Numberoptional
Websitewebsite

Official government or national portal website.

URLoptional