Template:Infobox road/doc/country

From WikiProjectMed
Jump to navigation Jump to search

Documentation related to the "country" parameter. Look up a country on ISO 3166-1 alpha-3 to find the correct code.

Supported countries

As of May 16, 2023. † denotes there is no official ISO 3166-1 alpha-3 code.

Country name ISO 3166-1
alpha-3 code
(Param value)
Links Ready for migration
Afghanistan AFG Yes
Åland Islands ALA Yes
Albania ALB Yes
Algeria DZA Yes
Andorra AND Yes
Angola AGO No
Antigua and Barbuda ATG No
Argentina ARG Yes
Armenia ARM Yes
Aruba ABW No
Asian Highway Network ASIA† Yes
Australia AUS Yes
Austria AUT Yes
Azerbaijan AZE Yes
Bahamas BHS No
Bahrain BHR No
Bangladesh BGD Yes
Barbados BRB No
Belarus BLR Yes
Belgium BEL Yes
Belize BLZ Yes
Benin BEN Yes
Bhutan BTN No
Bolivia BOL Yes
Bosnia and Herzegovina BIH Yes
Botswana BWA Yes
Brazil BRA Yes
Brunei BRN Yes
Bulgaria BGR Yes
Burkina Faso BFA No
Burundi BDI No
Cabo Verde CPV Yes
Cambodia KHM No
Cameroon CMR No
Canada CAN Yes
Central African Republic CAF No
Chad TCD No
Chile CHL Yes
China CHN No
Colombia COL No
Comoros COM No
Costa Rica CRI No
Croatia HRV No
Cuba CUB No
Cyprus CYP No
Czech Republic CZE No
Democratic Republic of the Congo COD No
Denmark DNK No
Djibouti DJI No
Dominica DMA No
Dominican Republic DOM No
Ecuador ECU No
Egypt EGY No
El Salvador SLV No
England ENG No
Equatorial Guinea GNQ No
Eritrea ERI No
Estonia EST No
Eswatini SWZ No
Ethiopia ETH No
European E-roads EUR† No
Federated States of Micronesia FSM No
Fiji FJI No
Finland FIN No
France FRA No
French Guiana GUF No
Gabon GAB No
Gambia GMB No
Georgia GEO No
Germany DEU No
Ghana GHA No
Gibraltar GIB No
Greece GRC No
Grenada GRD No
Guadeloupe GLP No
Guatemala GTM No
Guernsey GGY No
Guinea GIN No
Guinea-Bissau GNB No
Guyana GUY No
Haiti HTI No
Honduras HND No
Hong Kong HKG No
Hungary HUN No
Iceland ISL No
India IND No
Indonesia IDN No
Iran IRN No
Iraq IRQ No
Ireland IRL No
Isle of Man IMN No
Israel ISR No
Italy ITA No
Jamaica JAM No
Japan JPN No
Jersey JEY No
Jordan JOR No
Kazakhstan KAZ No
Kenya KEN No
Kiribati KIR No
Kosovo KOS† No
Kuwait KWT No
Kyrgyzstan KGZ No
Laos LAO No
Latvia LVA No
Lebanon LBN No
Lesotho LSO No
Liberia LBR No
Libya LBY No
Liechtenstein LIE No
Lithuania LTU No
Luxembourg LUX
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Madagascar MDG
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Malawi MWI
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Malaysia MYS
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Maldives MDV
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
Mali MLI
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Malta MLT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Marshall Islands MHL
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
Mauritania MRT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Mauritius MUS
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Mayotte MYT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Martinique MTQ
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Mexico MEX
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Moldova MDA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Monaco MCO
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Mongolia MNG
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Montenegro MNE
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Morocco MAR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Mozambique MOZ
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Myanmar MMR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Namibia NAM
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Nauru NRU
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Nepal NPL
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Netherlands NLD
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
New Zealand NZL
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Nicaragua NIC
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Niger NER
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Nigeria NGA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
North Korea PRK
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
North Macedonia MKD
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Northern Ireland NIR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Norway NOR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Oman OMN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Pakistan PAK
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Palau PLW
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Palestine PSE
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Panama PAN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Papua New Guinea PNG
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Paraguay PRY
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Peru PER
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Philippines PHL
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
Poland POL
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Portugal PRT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Qatar QAT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Republic of the Congo COG
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
Réunion REU
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Romania ROU
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Russia RUS
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Rwanda RWA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Saint Kitts and Nevis KNA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Saint Lucia LCA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Saint Vincent and the Grenadines VCT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Samoa WSM
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
San Marino SMR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
São Tomé and Príncipe STP
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Saudi Arabia SAU
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Scotland SCT
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Senegal SEN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Serbia SRB
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Solomon Islands SLB
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
Somalia SOM
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Singapore SGP
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Slovakia SVK
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Slovenia SVN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
South Africa ZAF
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
South Korea KOR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
South Sudan SSD
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Spain ESP
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Sri Lanka LKA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Sudan SDN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Suriname SUR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Sweden SWE
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Switzerland CHE
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Syria SYR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Taiwan TWN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Tajikistan TJK
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Tanzania TZA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Thailand THA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Timor-Leste TLS
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Togo TGO
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Tonga TON
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Trans-Africa Highway Network TAH† No
Trinidad and Tobago TTO
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Tunisia TUN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Turkey TUR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Turkmenistan TKM
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Tuvalu TUV
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Uganda UGA
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Ukraine UKR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
United Arab Emirates ARE
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
United Kingdom GBR
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in the The time allocated for running scripts has expired.|instances]]
No
United States USA
Yes
Uruguay URY
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Uzbekistan UZB
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Venezuela VEN
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Vietnam VNM
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Wales WLS
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Yemen YEM
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Yugoslavia YUG
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Zambia ZMB
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No
Zimbabwe ZWE
  • strings
  • name
  • shieldmain
  • shield
  • browselinks
  • [[:Category:Infobox road instances in The time allocated for running scripts has expired.|instances]]
No

Setup instructions

No setup is necessary for the above countries so long as all of the links are blue. If the country you're looking for isn't listed, the templates that need to be set up are listed below. <country ISO code> is the country's ISO 3166-1 alpha-3 code. If you are uncomfortable with setting up these templates yourself, feel free to post on Template talk:Infobox road, and another editor will do it for you.

Template What it does Example
[[Template:Infobox road/name/<country ISO code>]] Specifies the name that should be shown at the top of the infobox, below the shield but above everything else. Template:Infobox road/name/USA
[[Template:Infobox road/shieldmain/<country ISO code>]] Specifies the shield that should be shown at the top of the infobox. Template:Infobox road/shieldmain/USA
[[Template:Infobox road/shield/<country ISO code>]] Specifies the shield that should be shown in the browse row. Template:Infobox road/shield/USA
Template:Infobox road/styles.css Specifies the header colors in the infobox.
Module:Infobox road/browselinks Specifies the links that should be shown at the bottom of the infobox, above the browse row but below everything else.

To set up a basic road data module for an example country where the ISO 3166-1 alpha-3 code is AAA, copy and paste the following code into Module:Road data/strings/AAA:

--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
  {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}

To inspect the content of this data module when editing, enter the following
into the Debug console:
  local util = require("Module:Road data/util")
  print(util.arrayToString(p))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- <name of country>
local AAA = {}

local util = require("Module:Road data/util")

AAA.type = {
    shield = "",
    name = "",
    link = "",
    abbr = "",
    translation = "",
    lang = ""
	
}

return AAA

The comment at the top gives instructions on how to use the debug console while editing the data module.

For each route type, set up a table with the following fields:

  • shield - the route marker or number plate that denotes the route; do not include the File: namespace prefix
  • name - the official name of the route
  • link - the title of the pages
  • abbr - an abbreviation of the name of the route
  • translation - if the country is in a non-English-speaking area, the official name of the route in the native language
  • lang - the ISO 639-2 code of the native language; this code is used by {{Lang}} and {{Lang-xx}}.

Read Module:Road data/strings/doc for more instructions on filling out the road data string modules