Template talk:Country alias
To help centralise discussions and keep related topics together, all talk subpages of Template talk:Country alias and Module talk:Country alias redirect here. |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||||||||||||||
|
Material from Module talk:Country alias was split to Template talk:Country alias on 15 January 2017 from this version. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. Please leave this template in place to link the article histories and preserve this attribution. The former page's talk page can be accessed at Module talk:Country alias. |
|
||
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Template-protected edit request on 23 July 2021
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The name change of "Swaziland" (SWZ) to "Eswatini" (SWZ) has now become official in everything in which the country competes (i.e. the Olympics, etc.). However, unlike "Macedonia" (MKD) → "North Macedonia" (MKD), it has not been fully implemented in Module:Country alias. For example, on the All-time Olympic Games medal table page, typing "{{flagIOCteam|SWZ}}" leaves the country name out of date, but typing "{{flagIOCteam|SWZ_YO2018}}" makes the country code (which is visible on the page) appear as "(SWZ_YO2018)" instead of "(SWZ)" visibly.
Thus, on Module:Country alias, this:
elseif alias == 'SWZ' then
if fullName then
if year and year >= 2018 and fullName ~= '2018 Commonwealth Games' then
alias = 'SWZ_YO2018'
end
elseif year and year >= 2018 and games ~= 'Commonwealth Games' then
alias = 'SWZ_YO2018'
end
...should be changed to:
elseif alias == 'SWZ' then
if year and year >= 2018 then
alias = 'SWZ_2018'
end
Paintspot Infez (talk) 19:26, 23 July 2021 (UTC)
- Done firefly ( t · c ) 11:39, 24 July 2021 (UTC)
- As a note, the reason why there are two competing if statements is because the name changed halfway through the year and it's necessary in order to allow the Youth Olympics but not the Commonwealth Games. Primefac (talk) 11:49, 24 July 2021 (UTC)
- Primefac, ahhh, I see - my apologies. As it seems(?) that overall tables such as All-time Olympic Games medal table is the only sort of place where this will matter, I've swapped the use of {{FlagIOCteam}} there for Eswatini out for the expanded wikicode, as has been done for North Macedonia. firefly ( t · c ) 12:21, 24 July 2021 (UTC)
- It does appear that the all-time list is the only place where a year isn't provided (at least for {{flagIOCteam}} use), but I'll do some tracking and see about potentially making things default to the current name when appropriate; i.e. if MKD and SWZ (and potentially others) are not used for the historical names w/o years then we can default to the new name unless a pre-X year is defined. Primefac (talk) 12:37, 24 July 2021 (UTC)
- Seems entirely reasonable to me! :) firefly ( t · c ) 12:51, 24 July 2021 (UTC)
- It does appear that the all-time list is the only place where a year isn't provided (at least for {{flagIOCteam}} use), but I'll do some tracking and see about potentially making things default to the current name when appropriate; i.e. if MKD and SWZ (and potentially others) are not used for the historical names w/o years then we can default to the new name unless a pre-X year is defined. Primefac (talk) 12:37, 24 July 2021 (UTC)
- Primefac, ahhh, I see - my apologies. As it seems(?) that overall tables such as All-time Olympic Games medal table is the only sort of place where this will matter, I've swapped the use of {{FlagIOCteam}} there for Eswatini out for the expanded wikicode, as has been done for North Macedonia. firefly ( t · c ) 12:21, 24 July 2021 (UTC)
- As a note, the reason why there are two competing if statements is because the name changed halfway through the year and it's necessary in order to allow the Youth Olympics but not the Commonwealth Games. Primefac (talk) 11:49, 24 July 2021 (UTC)
After a fairly fuzzy search I found the following pages that call this module via the various {{flagIOC}}-type templates without a year or other designation that would help narrow down "Swaziland or Eswatini":
- List of participating nations at the Winter Youth Olympic Games: has never competed, so
SWZ
should probably show Eswatini. - List of participating nations at the Summer Youth Olympic Games: should be Eswatini
- 2018–2020 CAVB Beach Volleyball Continental Cup: not sure which it should be, as the competition started in 2018 and ended in 2020, but I think SWZ didn't play until it was Eswatini (based on the references). That being said, it is an Olympic qualifier, so the use of {{flagIOC}} is appropriate here.
- 2008 African Weightlifting Championships: incorrect use of {{flagIOC}} so somewhat of a moot point but I thought I would mention it (should be Swaziland for the record)
- List of CGF country codes: listed at [1] as Eswatini, so should show that
- List of IOC country codes: uses {{flagicon}} to show Eswatini, but breaks the {{flagIOC}} pattern for all other countries (i.e. should show Eswatini)
- List of participating nations at the Winter Olympic Games: should be Swaziland (in my opinion) as Eswatini has not competed under that name in the Winter Olympics, but I'm willing to be persuaded otherwise
- 1976 Summer Olympics: shows properly as Swaziland (via the redirect)
- 1980 Summer Olympics boycott: shows properly as Swaziland via the redirect
Now, with all that being said, and the fact that the 1980 list has a whole host of "hacked" outputs (e.g. Bahrain, Bermuda, Paraguay, etc), I do suppose that the two outstanding "Swaziland" instances in '76 and '80 can just be changed in a similar fashion, as well as the Winter Olympics usage. Would like to get thoughts before making any changes, though. Primefac (talk) 19:38, 24 July 2021 (UTC)
- Done for both MKD and SWZ. Please feel free to check things and let me know if I need further tweaks. There will be old cases of both codes that will show the new name, and they will likely need to be updated manually and/or changed to use something like {{flagicon}}. Primefac (talk) 10:29, 14 August 2021 (UTC)
Australia
I'm requesting a change to the converted version, which is used everywhere else in Wikipedia. So please change this one:
- "Flag of Australia.svg",
Into this one:
- "Flag of Australia (converted).svg",
August-54 (talk) 08:32, 28 July 2021 (UTC)
- There are almost three times as many uses of the former (link) as the latter (link) so I am not inclined to change it. Primefac (talk) 09:56, 28 July 2021 (UTC)
Cayman Islands Flag
The Cayman Islands used their white disc flag at many games.
I thing the following should catch all the odd ones out, at least until their next games.
CAY = { name = "Cayman Islands", {2020, "Flag of the Cayman Islands (pre-1999).svg"}, "Flag of the Cayman Islands.svg", ["Commonwealth Games"] = { [2002] = "Flag of the Cayman Islands.svg", [2006] = "Flag of the Cayman Islands.svg", [2010] = "Flag of the Cayman Islands.svg", }, },
Games | Flag | Source |
---|---|---|
2000 Summer Olympics | [2] | |
2002 Commonwealth Games | ||
2004 Summer Olympics | [3] | |
2006 Commonwealth Games | ||
2008 Summer Olympics | [4] | |
2010 Commonwealth Games | ||
2010 Winter Olympics | [5] | |
2012 Summer Olympics | [6] | |
2014 Commonwealth Games | [7] | |
2014 Winter Olympics | [8] | |
2016 Summer Olympics | [9] | |
2018 Commonwealth Games | [10] | |
2020 Summer Olympics |
Mjb1981 (talk) 16:26, 9 August 2021 (UTC)
- Done, thanks. Primefac (talk) 10:23, 14 August 2021 (UTC)
Afghanistan
Please add the old flags of Afghanistan for all the competitions until this year, since right now "File:Without official flag.svg" is shown. August-54 (talk) 21:45, 18 August 2021 (UTC)
- Not done, as I think this might have been a weird glitch in the system as people moved things around. Primefac (talk) 12:23, 21 August 2021 (UTC)
Afghanistan
Hello! I think it is possible that someone can change the Afghani flag at the Olympics after 2000 and so forth.
AFG = { name = "Afghanistan", {2020 = "Flag of Afghanistan (2013–2021).svg"}, "Flag of Afghanistan.svg", {2004 = "Flag of Afghanistan (2002–2004).svg", {2008 = "Flag of Afghanistan (2004–2013).svg", {2012 = "Flag of Afghanistan (2004–2013).svg", }, }.
Games | Flag | Source | 2004 Summer Olympics | [[File:Flag of Afghanistan (2002–2004).svg | [11] | 2008 Summer Olympics | [[File:Flag of Afghanistan (2004–2013).svg | [12] | 2012 Summer Olympixs | [[File:Flag of Afghanistan (2004–2013).svg | [13]
Yours sincerely, Sondre --62.73.207.204 (talk) 13:19, 18 September 2021 (UTC) |
---|
- Template-Class Athletics articles
- NA-importance Athletics articles
- WikiProject Athletics articles
- Template-Class Olympics articles
- NA-importance Olympics articles
- WikiProject Olympics articles
- Template-Class Multi-sport events articles
- NA-importance Multi-sport events articles
- Template-Class sports articles
- WikiProject Sports articles