![]() |
Module:ISO 3166 is permanently
protected from editing because it is a
heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Replace the liver version with the sandbox version Module:ISO 3166/sandbox. The sandbox allows for more inputs to be converted to usable inputs as seen at the test cases Module_talk:ISO_3166/testcases and I indented all the code so it's more organized and easier to read, as well as fixing a few comments. – BrandonXLF (t@lk) 03:12, 20 September 2018 (UTC)
Does the module currently handle codes that were deleted? Jc86035 ( talk) 11:26, 4 December 2018 (UTC)
See Module talk:ISO 3166/testcases(PRC and USA). -- Vozhuo ( talk) 08:53, 8 December 2018 (UTC)
The use of a flag template, as allowed in the documentation for {{ Infobox settlement}}, appears to cause this template to apply Category:Wikipedia page with obscure country. See Belmont Village, Philadelphia for an example. – Jonesey95 ( talk) 06:13, 13 March 2019 (UTC)
Category:Wikipedia page with obscure country is not limited to main (article) space, but it should be. Can someone who knows about Lua programming please place this limit on this and other tracking categories used by this module? Thanks. – Jonesey95 ( talk) 16:41, 28 April 2019 (UTC)
I see that Module:ISO 3166/data still uses Swaziland rather than Eswatini, that needs changing. Le Deluge ( talk) 13:15, 8 March 2020 (UTC)
Template | ISO3166 | Template (|isoname=yes )
|
---|---|---|
French Southern and Antarctic Lands | French Southern Territories (the) | French Southern Territories |
Laos | Lao People's Democratic Republic (the) | Lao People's Democratic Republic |
Republic of Congo | Congo (the) | Congo |
Russia | Russian Federation (the) | Russian Federation |
Syria | Syrian Arab Republic (the) | Syrian Arab Republic |
United Kingdom | United Kingdom of Great Britain and Northern Ireland (the) | United Kingdom of Great Britain and Northern Ireland |
United States | United States of America (the) | United States of America |
Vatican City | Holy See (the) | Holy See |
Bolivia | Bolivia (Plurinational State of) | Bolivia (Plurinational State of) |
Caribbean Netherlands | Bonaire, Sint Eustatius and Saba | Bonaire, Sint Eustatius and Saba |
Brunei | Brunei Darussalam | Brunei Darussalam |
Democratic Republic of the Congo | Congo (the Democratic Republic of the) | Congo, Democratic Republic of the |
Czech Republic | Czechia | Czechia |
Swaziland | Eswatini | Eswatini |
Iran | Iran (Islamic Republic of) | Iran (Islamic Republic of) |
North Korea | Korea (the Democratic People's Republic of) | Korea (Democratic People's Republic of) |
South Korea | Korea (the Republic of) | Korea, Republic of |
Macau | Macao | Macao |
Federated States of Micronesia | Micronesia (Federated States of) | Micronesia (Federated States of) |
Moldova | Moldova (the Republic of) | Moldova, Republic of |
Palestine | Palestine, State of | Palestine, State of |
Saint-Martin | Saint Martin (French part) | Saint Martin (French part) |
São Tomé and Príncipe | Sao Tome and Principe | Sao Tome and Principe |
Sint Maarten | Sint Maarten (Dutch part) | Sint Maarten (Dutch part) |
Taiwan | Taiwan (Province of China) | Taiwan, Province of China |
Tanzania | Tanzania, the United Republic of | Tanzania, United Republic of |
Venezuela | Venezuela (Bolivarian Republic of) | Venezuela (Bolivarian Republic of) |
Vietnam | Viet Nam | Viet Nam |
British Virgin Islands | Virgin Islands (British) | Virgin Islands (British) |
United States Virgin Islands | Virgin Islands (U.S.) | Virgin Islands (U.S.) |
Bahamas (the) | ||
British Indian Ocean Territory (the) | ||
Cayman Islands (the) | ||
Central African Republic (the) | ||
Cocos (Keeling) Islands (the) | ||
Comoros (the) | ||
Cook Islands (the) | ||
Dominican Republic (the) | ||
Falkland Islands (the) [Malvinas] | ||
Faroe Islands (the) | ||
Gambia (the) | ||
Marshall Islands (the) | ||
Netherlands (the) | ||
Niger (the) | ||
Northern Mariana Islands (the) | ||
Philippines (the) | ||
Sudan (the) | ||
Turks and Caicos Islands (the) | ||
United Arab Emirates (the) | ||
United States Minor Outlying Islands (the) |
Le Deluge ( talk) 14:58, 8 March 2020 (UTC)
|isoname=
to toggle between common names and ISO names. The ISO names in the module (which I added to your table for comparison) don't include the article "(the)", though I note the
ISO site itself doesn't consistently include it (or rather, it seems to consistently include it only in the "Short name lower case" field and not in the all-caps "Short name"). Similarly, the standard's two short names of the
DRC,
South Korea and
Taiwan differ in the use of commas vs. parentheses, with the module being consistent with the uppercase names.
SiBr4 (
talk)
19:42, 8 March 2020 (UTC)Looks like Kosovo (XK) is missing? Le Deluge ( talk) 23:40, 24 August 2020 (UTC)
I tried to subst {{
Country name}}
and I got a bare invoke instead of the output. Is there a way to subst these templates? –
Fredddie
™
06:03, 2 January 2022 (UTC)
{{#invoke:ISO 3166|name}}
to {{safesubst:<noinclude/>#invoke:ISO 3166|name}}
, which would allow substitution via the template. {{u|
Sdkb}}
talk
20:53, 17 March 2022 (UTC)Currently, {{ISO 3166 code-3|Guinea-Bissau}}
does not return anything, despite seemingly being listed
in the module. Could anyone figure out the error and resolve it? {{u|
Sdkb}}
talk
20:51, 17 March 2022 (UTC)
::: if string.find(code1,"%-") then
::: code1, code2 = string.match(code1,"^([^%-]*)%-(.*)$")
::: end
:::
<COUNTRY>-<SUBDIVISION>
, like 'United Kingdom-England' —
wqnvlz (
talk ·
contribs)
17:08, 31 March 2022 (UTC)
{{#invoke:ISO 3166|name|England|Glasgow}}
work. How did this work in the original ISO standard?nil
vs ''
differently. This might break direct invocations in other modules/templates (Hyrum's law, I suppose). Some searches for invocations:
safesubst:
wouldn't work; for good measure, I tested at
Template:ISO 3166 code-3/testcases and it looks fine.Extended content
|
---|
(, )
(, )
(, )
(, )
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
|
3 years ago asked at #Kosovo? and still relevant. I'm unfamiliar with these modules so would rather not edit and break anything here. Can this be added please? Gonnym ( talk) 13:36, 11 January 2024 (UTC)
Template:Infobox settlement uses {{#invoke:ISO 3166|geocoordinsert}}, but this option is not explained on the documentation page for this module. Is it possible for someone to explain the parameters that can be used and what the output should look like for this option? Redheadkelly ( talk) 03:11, 17 February 2024 (UTC)
![]() |
Module:ISO 3166 is permanently
protected from editing because it is a
heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
![]() | This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Replace the liver version with the sandbox version Module:ISO 3166/sandbox. The sandbox allows for more inputs to be converted to usable inputs as seen at the test cases Module_talk:ISO_3166/testcases and I indented all the code so it's more organized and easier to read, as well as fixing a few comments. – BrandonXLF (t@lk) 03:12, 20 September 2018 (UTC)
Does the module currently handle codes that were deleted? Jc86035 ( talk) 11:26, 4 December 2018 (UTC)
See Module talk:ISO 3166/testcases(PRC and USA). -- Vozhuo ( talk) 08:53, 8 December 2018 (UTC)
The use of a flag template, as allowed in the documentation for {{ Infobox settlement}}, appears to cause this template to apply Category:Wikipedia page with obscure country. See Belmont Village, Philadelphia for an example. – Jonesey95 ( talk) 06:13, 13 March 2019 (UTC)
Category:Wikipedia page with obscure country is not limited to main (article) space, but it should be. Can someone who knows about Lua programming please place this limit on this and other tracking categories used by this module? Thanks. – Jonesey95 ( talk) 16:41, 28 April 2019 (UTC)
I see that Module:ISO 3166/data still uses Swaziland rather than Eswatini, that needs changing. Le Deluge ( talk) 13:15, 8 March 2020 (UTC)
Template | ISO3166 | Template (|isoname=yes )
|
---|---|---|
French Southern and Antarctic Lands | French Southern Territories (the) | French Southern Territories |
Laos | Lao People's Democratic Republic (the) | Lao People's Democratic Republic |
Republic of Congo | Congo (the) | Congo |
Russia | Russian Federation (the) | Russian Federation |
Syria | Syrian Arab Republic (the) | Syrian Arab Republic |
United Kingdom | United Kingdom of Great Britain and Northern Ireland (the) | United Kingdom of Great Britain and Northern Ireland |
United States | United States of America (the) | United States of America |
Vatican City | Holy See (the) | Holy See |
Bolivia | Bolivia (Plurinational State of) | Bolivia (Plurinational State of) |
Caribbean Netherlands | Bonaire, Sint Eustatius and Saba | Bonaire, Sint Eustatius and Saba |
Brunei | Brunei Darussalam | Brunei Darussalam |
Democratic Republic of the Congo | Congo (the Democratic Republic of the) | Congo, Democratic Republic of the |
Czech Republic | Czechia | Czechia |
Swaziland | Eswatini | Eswatini |
Iran | Iran (Islamic Republic of) | Iran (Islamic Republic of) |
North Korea | Korea (the Democratic People's Republic of) | Korea (Democratic People's Republic of) |
South Korea | Korea (the Republic of) | Korea, Republic of |
Macau | Macao | Macao |
Federated States of Micronesia | Micronesia (Federated States of) | Micronesia (Federated States of) |
Moldova | Moldova (the Republic of) | Moldova, Republic of |
Palestine | Palestine, State of | Palestine, State of |
Saint-Martin | Saint Martin (French part) | Saint Martin (French part) |
São Tomé and Príncipe | Sao Tome and Principe | Sao Tome and Principe |
Sint Maarten | Sint Maarten (Dutch part) | Sint Maarten (Dutch part) |
Taiwan | Taiwan (Province of China) | Taiwan, Province of China |
Tanzania | Tanzania, the United Republic of | Tanzania, United Republic of |
Venezuela | Venezuela (Bolivarian Republic of) | Venezuela (Bolivarian Republic of) |
Vietnam | Viet Nam | Viet Nam |
British Virgin Islands | Virgin Islands (British) | Virgin Islands (British) |
United States Virgin Islands | Virgin Islands (U.S.) | Virgin Islands (U.S.) |
Bahamas (the) | ||
British Indian Ocean Territory (the) | ||
Cayman Islands (the) | ||
Central African Republic (the) | ||
Cocos (Keeling) Islands (the) | ||
Comoros (the) | ||
Cook Islands (the) | ||
Dominican Republic (the) | ||
Falkland Islands (the) [Malvinas] | ||
Faroe Islands (the) | ||
Gambia (the) | ||
Marshall Islands (the) | ||
Netherlands (the) | ||
Niger (the) | ||
Northern Mariana Islands (the) | ||
Philippines (the) | ||
Sudan (the) | ||
Turks and Caicos Islands (the) | ||
United Arab Emirates (the) | ||
United States Minor Outlying Islands (the) |
Le Deluge ( talk) 14:58, 8 March 2020 (UTC)
|isoname=
to toggle between common names and ISO names. The ISO names in the module (which I added to your table for comparison) don't include the article "(the)", though I note the
ISO site itself doesn't consistently include it (or rather, it seems to consistently include it only in the "Short name lower case" field and not in the all-caps "Short name"). Similarly, the standard's two short names of the
DRC,
South Korea and
Taiwan differ in the use of commas vs. parentheses, with the module being consistent with the uppercase names.
SiBr4 (
talk)
19:42, 8 March 2020 (UTC)Looks like Kosovo (XK) is missing? Le Deluge ( talk) 23:40, 24 August 2020 (UTC)
I tried to subst {{
Country name}}
and I got a bare invoke instead of the output. Is there a way to subst these templates? –
Fredddie
™
06:03, 2 January 2022 (UTC)
{{#invoke:ISO 3166|name}}
to {{safesubst:<noinclude/>#invoke:ISO 3166|name}}
, which would allow substitution via the template. {{u|
Sdkb}}
talk
20:53, 17 March 2022 (UTC)Currently, {{ISO 3166 code-3|Guinea-Bissau}}
does not return anything, despite seemingly being listed
in the module. Could anyone figure out the error and resolve it? {{u|
Sdkb}}
talk
20:51, 17 March 2022 (UTC)
::: if string.find(code1,"%-") then
::: code1, code2 = string.match(code1,"^([^%-]*)%-(.*)$")
::: end
:::
<COUNTRY>-<SUBDIVISION>
, like 'United Kingdom-England' —
wqnvlz (
talk ·
contribs)
17:08, 31 March 2022 (UTC)
{{#invoke:ISO 3166|name|England|Glasgow}}
work. How did this work in the original ISO standard?nil
vs ''
differently. This might break direct invocations in other modules/templates (Hyrum's law, I suppose). Some searches for invocations:
safesubst:
wouldn't work; for good measure, I tested at
Template:ISO 3166 code-3/testcases and it looks fine.Extended content
|
---|
(, )
(, )
(, )
(, )
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(New York, New York)
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
(, )
|
3 years ago asked at #Kosovo? and still relevant. I'm unfamiliar with these modules so would rather not edit and break anything here. Can this be added please? Gonnym ( talk) 13:36, 11 January 2024 (UTC)
Template:Infobox settlement uses {{#invoke:ISO 3166|geocoordinsert}}, but this option is not explained on the documentation page for this module. Is it possible for someone to explain the parameters that can be used and what the output should look like for this option? Redheadkelly ( talk) 03:11, 17 February 2024 (UTC)