(Go: >> BACK << -|- >> HOME <<)

Jump to content

Template talk:Country alias

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 62.73.207.204 (talk) at 13:19, 18 September 2021 (→‎Afghanistan: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Template-protected edit request on 23 July 2021

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

 Done firefly ( t · c ) 11:39, 24 July 2021 (UTC)[reply]
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)[reply]
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)[reply]
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)[reply]
Seems entirely reasonable to me! :) firefly ( t · c ) 12:51, 24 July 2021 (UTC)[reply]

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":

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

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

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

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

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

 Done, thanks. Primefac (talk) 10:23, 14 August 2021 (UTC)[reply]

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

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

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