Jump to content

Module talk:ISO 3166

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Le Deluge (talk | contribs) at 14:58, 8 March 2020 (Other discrepancies). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template-protected edit request on 20 September 2018

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)[reply]

done, will revert if I see any script errors popping up. Frietjes (talk) 13:44, 20 September 2018 (UTC)[reply]

Deleted codes

Does the module currently handle codes that were deleted? Jc86035 (talk) 11:26, 4 December 2018 (UTC)[reply]

Some testcases didn't work

See Module talk:ISO 3166/testcases(PRC and USA). --Vozhuo (talk) 08:53, 8 December 2018 (UTC)[reply]

Flag template appears to cause "obscure country" category to be applied

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)[reply]

Please limit error checking to main (article) space

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)[reply]

Jonesey95, seems reasonable. I did the same for Category:Wikipedia page with obscure subdivision. note that since namespace checking could add overhead, I put the checks inside the various if blocks so the check happens only if the category is to be added. if there were no overhead from checking the namespace, we could reduce the number of checks by a factor of 2. Frietjes (talk) 16:56, 28 April 2019 (UTC)[reply]
Thanks. – Jonesey95 (talk) 19:58, 28 April 2019 (UTC)[reply]

Updates needed

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)[reply]

Having compared the data page for the template with the official list there's quite a few discrepancies. I'm well aware some of these are old favourites for discussion on Wikipedia, such as Macau versus Macao, Czechia and Viet Nam, but if the template is billing itself as ISO 3166 then surely it should give the official ISO 3166 names, or does that break too many things down the line? (pinging @SiBr4, Frietjes, and BrandonXLF: as main editors here)
Template ISO3166
French Southern and Antarctic Lands French Southern Territories (the)
Laos Lao People's Democratic Republic (the)
Republic of Congo Congo (the)
Russia Russian Federation (the)
Syria Syrian Arab Republic (the)
United Kingdom United Kingdom of Great Britain and Northern Ireland (the)
United States United States of America (the)
Vatican City Holy See (the)
Bolivia Bolivia (Plurinational State of)
Caribbean Netherlands Bonaire, Sint Eustatius and Saba
Brunei Brunei Darussalam
Democratic Republic of the Congo Congo (the Democratic Republic of the)
Czech Republic Czechia
Swaziland Eswatini
Iran Iran (Islamic Republic of)
North Korea Korea (the Democratic People's Republic of)
South Korea Korea (the Republic of)
Macau Macao
Federated States of Micronesia Micronesia (Federated States of)
Moldova Moldova (the Republic of)
Palestine Palestine, State of
Saint-Martin Saint Martin (French part)
São Tomé and Príncipe Sao Tome and Principe
Sint Maarten Sint Maarten (Dutch part)
Taiwan Taiwan (Province of China)
Tanzania Tanzania, the United Republic of
Venezuela Venezuela (Bolivarian Republic of)
Vietnam Viet Nam
British Virgin Islands Virgin Islands (British)
United States Virgin Islands 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)[reply]