![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
@ Joeyline, Primefac, Raymarcbadz, Sportsfan 1234, and VEO15:
The module is transcluded in 34,664 pages and even minor edit wars are inappropriate when changes have such an impact. Editing the module should be done with care and any disagreements should be discussed on the talk page. I recommend using Template talk:Country alias as it is the template that appears in articles and it is conventional for discussions about changes affecting the template to occur on its talk. The module talk page is usually either a redirect to the template talk, or is for discussion about technical issues regarding the module (that is, how the code works, not whether some data should be "Ivory Coast" or "Côte d'Ivoire").
By the way Primefac, it is time to remove the TODO note at the top. You may like to also keep or remove the EXA and EXX examples: whatever you think. Johnuniq ( talk) 01:27, 15 January 2017 (UTC)
Been doing some redirect research, and I have the possible solution. I agree with Johnuniq about the location of various discussions, so I'll split/copy this discussion to Template talk:Country alias and turn Module talk:Country alias into a redirect (leaving all of the other discussions in place). This allows for template-related discussions to happen at the template, and module/code-related discussions to happen at the module. Sound good? Primefac ( talk) 02:23, 15 January 2017 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
88.90.217.227 ( talk) 11:52, 25 February 2017 (UTC)
Hello! Can you right the Belarusian country alias module because that the flag for 2012 is there. They also had a flag until 1995 previously
Hello! This is a message from me. Can you add the right flag alias for Belarus. I see that they only have the flag until 2012. They used the Pahonian flag in the 1994 Winter Olympic Games in Lillehammer. That country alias is missed in the module. -- 88.90.217.227 ( talk) 11:55, 25 February 2017 (UTC)
Hi, I think there is a little mistake for Philippines flag here. right now this is what we see for the country at the 1986 Asian Games
Philippines but per
Flag of the Philippines they changed their flag in February 1986 while the Asian Games were held much later on September. they used the "navy blue" flag for most of 1986 year including the Asian Games. they used that "light blue" flag from February 1985 to February 1986.
Exactly the same goes to their 1998 flag, they used the old flag since February 1998 and the Asian Games were held in December 1998. maybe this is the better way to have it (I changed the year a bit)
I think there are probably more situations like this, I will try to find if there is still any. Mohsen1248 ( talk) 03:46, 20 March 2017 (UTC)
Hi again, I checked few more countries and found this list.
Looks like there are more flags for South Korea. per Template:Country data South Korea and Flag of South Korea, in current format we are using 1984-1997 flag for 1949 to 1997 ! here is the possible outcome
I see we have Olympic flag for India for the year of 2013, not sure if that's necessary because whenever India participated under Olympic flag they used another IOC code like IOA or something like that. but if that should stay, you have to make an exception for the 2013 World Games, they participated under the Indian flag there, Source. Mohsen1248 ( talk) 21:43, 7 August 2017 (UTC)
Mauritania has got a new flag with two red stripes (this means that every Olympics from 2020 will use this flag) and also, Malawi has flowned the current flag at the 2012 Olympics and Bulgaria has flowed the same as the current flag because the emblem didn't exist until 1946. Please change this 2607:FEA8:4F20:59F:2D7C:B3B7:8ADF:CAD0 ( talk) 11:03, 12 August 2017 (UTC)
The Hong Kong flag for the Commonwealth Games needs to be its British colonial ensign, the territory's current SAR flag shows when the flagCGFteam template is used. Also, the flag for Wales in the 1930 and 1934 British Empire Games articles show up as the Saint George's cross when it should be the Red Dragon flag, which has been used to represent the country long before it gained official status in the 1950s. VEO one five 23:28, 16 August 2017 (UTC)
VEO one five 23:41, 16 August 2017 (UTC)
{{flagCGF|HKG}}
template and its corresponding article, the SAR flag is used ({{flagCGF|HKG|1994}}
, then sure, it'll show the most recent colonial flag (Hello. Can You add old Belarusian flag?
— Preceding unsigned comment added by Almagestas ( talk • contribs) 08:47, 24 September 2017 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request to add a new country code: OAR for Olympic Athlete from Russia, using the Olympic Flag, to be used at Olympic Athlete from Russia at the 2018 Winter Olympics and other pages related to the 2018 Winter Olympics and the Doping in Russia scandal. [1] 208.58.219.2 ( talk) 19:14, 5 December 2017 (UTC)
Hi, We had Asian Indoor and Martial Arts Games in Turkmenistan and I want to ask for few changes because of that.
|name=
parameter in {{
flagIOC2}} allows for a custom name to be displayed, e.g. {{flagIOC2|TAH|2017 Asian Indoor and Martial Arts Games}}
(and similar uses) will now return Can 'COR' be added to this list? The IOC announced that 'COR' will be used for the unified Korea Olympic team, competing in Women’s Ice Hockey, at the 2018 Winter Olympics ( link). Wpeneditor ( talk) 16:07, 20 January 2018 (UTC)
GBR should render as "Great Britain and Northern Ireland" (the name used by the teams), and not as just "Great Britain". -- DeFacto ( talk). 19:16, 27 January 2018 (UTC)
The United Kingdom of Great Britain and Northern Ireland competed as Great Britain at...(or just say "Great Britain"). If this change is to be made, it should probably be made across the article text as well as the template, and for that you'd need a larger consensus. Primefac ( talk) 19:21, 27 January 2018 (UTC)
@ Primefac: Your TLC is needed again! "Lua error in Module:Country_alias at line 1715: Invalid country alias: NPA." Johnuniq ( talk) 21:40, 6 February 2018 (UTC)
Korean Unification Flag in 2018 Winter Olympics do not have Ulleung Island. It should be File:Unification flag of Korea (pre 2006).svg(No Ulleung Island version of Korean Unification Flag.).-- 121.145.243.251 ( talk) 12:28, 9 February 2018 (UTC)
Could someone please add the country alias FRY with the name FR Yugoslavia. This country appeared at the Olympics from 1994 until 2002. After that it was renamed "Serbia and Montenegro" but that name had not been coined at all back in the 90's. They used the same flag both as FR Yugoslavia and Serbia and Montenegro. Thanks, T v x1 16:16, 30 January 2018 (UTC)
For what it's worth, 1998 FIFA World Cup uses the {{ fb}} template, which (at the moment) doesn't call this template, and it also looks like it's using the correct flag. Happy to add exceptions as you find them. Primefac ( talk) 12:54, 20 February 2018 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following at Module:Country alias:
URS = { name = "Soviet Union", {1955, "Flag of the Soviet Union (1923-1955).svg"}, {1980, "Flag of the Soviet Union (1955-1980).svg"}, "Flag of the Soviet Union.svg", },
With this:
URS = { name = "Soviet Union", {1936, "Flag of the Soviet Union (1924-1936).svg"}, {1955, "Flag of the Soviet Union (1936-1955).svg"}, {1980, "Flag of the Soviet Union (1955-1980).svg"}, "Flag of the Soviet Union.svg", },
This change will accomplish two things:
(1) File:Flag of the Soviet Union (1923-1955).svg (which is presently invoked) redirects to File:Flag of the Soviet Union (1936-1955).svg; this change will bypass the redirect.
(2) The earlier version of the Soviet flag, at File:Flag of the Soviet Union (1924-1936).svg and not presently invoked here, will be used where appropriate (prior to 1936). Jdaloner ( talk) 09:42, 26 March 2018 (UTC)
Hi, based on Flag of Poland, Poland used the new flag from January 1980. but per {1980, "Flag of Poland (1928-1980).svg"}, we use this flag for the year of 1980 as well. while they used the new flag for almost the whole year specially 1980 Summer Olympics. I think it has to change to {1979, "Flag of Poland (1928-1980).svg"},. Mohsen1248 ( talk) 11:49, 26 April 2018 (UTC)
Hi again, I asked for flag change for South Korea almost a year ago. here ,I want to ask for that again, I'm not necessarily supporting these changes but if this template and this should be similar. the current situation uses Flag of South Korea (1984-1997).svg for 1950-1997 which is obviously wrong based on the file name. Mohsen1248 ( talk) 20:22, 8 May 2018 (UTC)
Hi, looks like we need an update on North Korea flag because of this Template:Country data North Korea which says North Korea had a different flag from 1948 to 1992. I tried to make sure this is the correct change but you might want to double check it yourself. Mohsen1248 ( talk) 11:49, 5 June 2018 (UTC)
![]() | This
edit request to
Template:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add "Independent Asian Athletes" from Kuwait for 2018 Asian Games#Participating National Olympic Committees with File:Olympic Council of Asia Logo.svg (or probably use File:Olympic flag.svg because fair use). Source [3] and 2018 Asian Games#Independent athletes. Hddty. ( talk) 19:31, 9 August 2018 (UTC)
For Antigua and Barbuda, the IOC code is ANT, but the ISO code is ATG.
For Netherlands Antilles, the IOC code is AHO, but the ISO code (and the FIFA code) is ANT.
Template:Country data ANT redirects to Netherlands Antilles.
This module lists ANT as Antigua and Barbuda, which is its IOC code.
There is a list of differences between IOC, ISO, and FIFA at List of FIFA country codes#FIFA, IOC and ISO differences. There may be other overlaps; I haven't looked.
What, if anything, should be done in this module to minimize confusion for editors? – Jonesey95 ( talk) 08:03, 24 September 2018 (UTC)
Is there a reason Taiwan isn't included in this? Happy to add it myself but want to make sure there isn't a specific reason for it being excluded. -- Zackmann ( Talk to me/ What I been doing) 18:18, 24 September 2018 (UTC)
According to Template:Country data Norfolk Island the proper 3 letter code is NFK not NFI. Should this be fixed here? Do we just need to add a redirect? -- Zackmann ( Talk to me/ What I been doing) 19:10, 24 September 2018 (UTC)
Hi, I recenty implemented this module into Turkish Wikipedia, and I saw that some countries are written two times on the main countries table. I workaround s solution about this problem. Can't we change this line:
local country = countries[alias]
with this:
local ulke = countries[countries[alias]] or countries[alias]
And then instead of adding the same data twice, just redirect the codes as ["SWK"] = "SAR",
. It seems that it workes just fine on tr wiki and I wanted to share it here. ~
Z (
m)
22:07, 1 October 2018 (UTC)
local countryAliases = { ANG_CGF = "AIA", SWK = "SAR", } local country = countries[alias] or countries[countryAliases[alias]]
@ Primefac: I forget how all this is supposed to work but a couple of articles have an error due to the recent edit for SWZ. For example, 1976 Summer Olympics shows
due to use of {{flagIOC|SWZ}}
. {{
FlagIOC}} passes " Olympics" to {{
FlagIOC2}} as parameter 2 and that sets fullName. Then an expression error occurs, I think because the String match would give an empty string so the expression would be "<2018". That's as far as I can take it at the moment.
Johnuniq (
talk)
23:03, 17 January 2019 (UTC)
alias
based on the year/games inputs.
Primefac (
talk)
12:15, 18 January 2019 (UTC)@ Primefac: I have nearly finished preparing some code for the module to replace the logic in the template. I will put it in the sandbox soon. However, I would like something clarified first. My reading of the template is that if fullName is given then year and games are set from fullName. If fullName is "2012 Competition" then year = 2012 and games = Competition. That's fine. But if fullName is "Competition" then year is assumed to be an empty string (will not equal any year) or zero (will be less than any year). Any value in the year parameter would be ignored. Is that what is wanted, or was it too painful to say something like "use year from fullName if fullName is given and starts with a number; otherwise use year parameter if given; otherwise use empty string/zero"? Johnuniq ( talk) 01:22, 20 January 2019 (UTC)
|fullName=
is given, then it would be assumed that |year=
would not also be used, because why give both? In other words, if fullName is given, it's assumed that the year (if there is one) will come from that and return a null string if |fullName=Competition
. The only time 0 should be passed to the year is if someone puts |year=0
, which would (properly) give an error.
Primefac (
talk)
14:23, 20 January 2019 (UTC)Real life became particularly complicated in the last couple of days but I think I have moved the alias exception logic from Template:Country alias/sandbox to Module:Country alias/sandbox. Please check the edits to both of those. Here are some tests. I'm not sure if these cover all possibilities. When you have time to check, let me know how it looks.
{{country alias/sandbox|ANG|games=Example}}
→ Angola{{country alias/sandbox|ANG|games=Commonwealth Games}}
→ Anguilla{{country alias/sandbox|GBR|games=Example}}
→ Great Britain{{country alias/sandbox|GBR|games=World Championships in Athletics}}
→ Great Britain and Northern Ireland{{country alias/sandbox|GBR|games=European Athletics Championships}}
→ Great Britain and Northern Ireland{{country alias/sandbox|GBR|games=European Championships|year=2017}}
→ Great Britain{{country alias/sandbox|GBR|games=European Championships|year=2018}}
→ Great Britain and Northern Ireland{{country alias/sandbox|HKG|games=Example|flag=yes}}
→ Flag of Hong Kong.svg{{country alias/sandbox|HKG|games=Commonwealth Games|flag=yes}}
→ Flag of Hong Kong (1959–1997).svg{{country alias/sandbox|IOA|games=Example|year=2000}}
→ Individual Olympic Athletes{{country alias/sandbox|IOA|games=Example|year=2001}}
→ Independent Olympic Athletes{{country alias/sandbox|SWZ|fullName=Example}}
→ Swaziland{{country alias/sandbox|SWZ|fullName=2017 Example}}
→ Swaziland{{country alias/sandbox|SWZ|fullName=2018 Example}}
→ Eswatini{{country alias/sandbox|SWZ|fullName=2019 Example}}
→ Eswatini{{country alias/sandbox|SWZ|fullName=2018 Commonwealth Games}}
→ Swaziland{{country alias/sandbox|SWZ|games=Example|year=2018}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games|year=2017}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games|year=2018}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games|year=2019}}
→ EswatiniThe module now has two sets of comments that refer to alias exceptions: the original notes at the top of the module and the new comments before function getAlias which I copied (and tweaked) from the template. It might be better to remove the duplication. Johnuniq ( talk) 09:01, 21 January 2019 (UTC)
Question: what is 'IOP, IOA, OAR'? Is that really a country code that is used in a template somewhere? Johnuniq ( talk) 09:27, 22 January 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Direct file link fixes: Please replace - with – in the following flags:
{1930, "Flag of Venezuela (1905-1930).svg"}, {1954, "Flag of Venezuela (1930-1954).svg"}, {2006, "Flag of Venezuela (1954-2006).png"},
Links on commons: c:File:Flag of Venezuela (1905-1930).svg, c:File:Flag of Venezuela (1930-1954).svg and c:File:Flag of Venezuela (1954-2006).png - Christian75 ( talk) 11:01, 17 February 2019 (UTC)
Chronological summary of the 2016 Summer Olympics is in
Category:Pages with script errors with a zillion "The time allocated for running scripts has expired" errors. That occurs because {{
country alias}} is called 3912 times! I'm not sure that encouraging such bloat is desirable but I'm not going to fix that so I'm wondering whether changing
Module:Country alias to cope with the fact that it can be called thousands of times would be desirable. The technical solution would be to move the large tables from that module to a new
Module:Country alias/data and access it with mw.loadData
which would greatly speed up the module when called a thousand times on a page. @
Primefac: What do you think? Prune/split the article or split the module?
Johnuniq (
talk)
02:51, 2 February 2019 (UTC)
@ Primefac: I have created Module:Country alias/data (and its sandbox). Please template protect the new module. I will then update Module:Country alias to match its sandbox. Quick test:
{{Country alias|ITA}}
→ Italy{{Country alias|ITA|flag=yes}}
→ Flag of Italy.svg{{Country alias|ITA|flag=yes|year=1946}}
→ Flag of Italy (1861-1946).svg{{Country alias|ITA|flag=yes|year=1947}}
→ Flag of Italy.svg{{Country alias|ITA|flag=yes|year=1980|games=Summer Olympics}}
→ Olympic flag.svg{{Country alias|ITA|flag=yes|year=2006|games=Summer Olympics}}
→ Flag of Italy (2003–2006).svg{{Country alias/sandbox|ITA}}
→ Italy{{Country alias/sandbox|ITA|flag=yes}}
→ Flag of Italy.svg{{Country alias/sandbox|ITA|flag=yes|year=1946}}
→ Flag of Italy (1861-1946).svg{{Country alias/sandbox|ITA|flag=yes|year=1947}}
→ Flag of Italy.svg{{Country alias/sandbox|ITA|flag=yes|year=1980|games=Summer Olympics}}
→ Olympic flag.svg{{Country alias/sandbox|ITA|flag=yes|year=2006|games=Summer Olympics}}
→ Flag of Italy (2003–2006).svgUnfortunately the fix does not seem to be sufficient for Chronological summary of the 2016 Summer Olympics according to a preview I performed. I'll think about that after it goes live. Johnuniq ( talk) 07:01, 4 February 2019 (UTC)
I was irritated to see that Chronological summary of the 2016 Summer Olympics still uses a lot of Lua time, even after moving the data to a separate module. Investigation shows these results for that article:
Template | Occurrences | Calls to {{ country alias}} |
---|---|---|
{{ flagIOC}} | 1023 | 3 |
{{ flagIOC-rt}} | 33 | 3 |
{{ flagIOCathlete}} | 200 | 2 |
Each call to {{ country alias}} invokes Module:Country alias so the module is invoked 1023*3 + 33*3 + 200*2 = 3568 times in Chronological summary of the 2016 Summer Olympics. That takes about 6.5 seconds of Lua time which is 1.8 ms/call. If a better fix were wanted, it would involve changing the way the templates work. For example, {{ flagIOC}} calls {{ flagIOC2}} and the latter calls {{ country alias}} three times. The fix would be to have the former invoke a new function in the module to do the equivalent of flagIOC2 in a single call. That would reduce the number of calls to the module from 3568 to 1256 which should reduce the Lua time by about the same factor. Johnuniq ( talk) 04:20, 5 February 2019 (UTC)
I updated Module:Country alias and {{ flagIOC}}. I don't think I'll bother with the related flag templates (such as {{ flagIOC2}}) unless there is a need. At Chronological summary of the 2016 Summer Olympics, Template:FlagIOC dropped from occupying 57% of the transclusion expansion time to 13%, and the Lua time usage dropped from 9.4 seconds to 3.9. Johnuniq ( talk) 04:24, 18 February 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add an alias for North Macedonia. IOC has adopted the name already [4]. -- 1.64.90.9 ( talk) 10:17, 27 March 2019 (UTC)
{{flagIOC|MKD|1996 Summer}}
→ {{flagIOC|MKD|2020 Summer}}
→ Hi, Based on this source Turkmenistan made some changed in the flag in January 1997, while currently we are using the 1992-1997 flag for the whole year of 1997, for example 1997 West Asian Games were held on November. so I'm asking for a change, either changing 1997, "Flag of Turkmenistan (1992-1997).svg"} to 1996, "Flag of Turkmenistan (1992-1997).svg"} or just make an exception for the 1997 West Asian Games. also they again changed the flag on January 2001. even though I'm not sure if we had an important even in 2001, but it's just better to also change the next line from 2001 to 2000. thanks in advance. Mohsen1248 ( talk) 22:26, 28 March 2019 (UTC)
Hi again, I don't know if I asked this before. but I wonder if that's technically possible to have a different name for NOC code for different competitions ? if that's possible the ART code should return just the "Refugee Team" and not
Refugee Team for the 2017 Asian Indoor and Martial Arts Games. that's the official term they used for the competition. even the article is
Refugee Team at the 2017 Asian Indoor and Martial Arts Games. that's no big deal if this is not possible technically because a redirect already solved this but I thought that should be better. thanks in advance.
Mohsen1248 (
talk)
12:18, 7 April 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi! Can you update "File:Bohemian Olympic Flag (1912).png" to "File:Bohemian Olympic Flag (1912).svg"? Thanks! B1mbo ( talk) 22:52, 15 July 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please, change "Flag of Italy (2003–2006).svg" with "Flag of Italy (Pantone, 2003).svg". The Pantone colors used in the current file are wrong, as you can see here. Nick.mon ( talk) 20:13, 23 July 2019 (UTC)
{{
edit template-protected}}
template. I started a discussion with you about this above. It's not done yet. Please don't submit an edit request until we determine this is the right flag.
Primefac (
talk)
01:26, 24 July 2019 (UTC)Could someone update the 2003 Italian flag, which is absolutely wrong, as you can see in it.Wiki. The correct flag is this one:
Thank you. -- Nick.mon ( talk) 10:45, 23 July 2019 (UTC)
Having read through most of the discussions at commons:File talk:Flag_of_Italy.svg, it seems like there has always been some concern with converting between Pantone and RGB. While it seems that the current flag discussion has died down, no one has ever started a discussion on the 03-06 variant to decide which pantone to use. Primefac ( talk) 18:11, 25 July 2019 (UTC)
Hi, Russia used a different flag from 1991 to 1993, they participated at the World Games in 1993, so I'm requesting a change for that.
Thanks in advance. Mohsen1248 ( talk) 19:44, 19 October 2019 (UTC)
Please change the year parameter for "Flag of Albania (1946–1992).svg" from "1992" to "1991" so that it does not cover the 1992 Summer Olympics, which occurred later in the year the flag was changed. -- Jonel ( Speak to me) 16:39, 6 February 2020 (UTC)
The crown in Liechtenstein's flag was different than now until 1982, so I'll request to add this one:
Also, Spain did not use the Olympic flag in the Moscow Olympics in 1980, but its NOC flag (File:Spain Olympic Flag 1980.svg) instead. August-54 ( talk) 16:56, 8 February 2020 (UTC)
I noticed we are using the 1988-2004 flag for Lithuania for 2004 Olympics which can be wrong, per Flag of Lithuania, they changed the flag on July 2004, one month before the Olympics. so unless there is a source indicate they still used the old flag, I think we should make a change. change this code {2004, "Flag of Lithuania (1988-2004).svg"} to {2003, "Flag of Lithuania (1988-2004).svg"} or simply make the 2004 Olympics an exception which is probably a better idea. Mohsen1248 ( talk) 01:23, 5 May 2020 (UTC)
It seems Albania had a slightly different flag from 1992 to 2002 which covers 1992, 1996 and 2000 Olympics, I think we should add something like this {2002, "Flag of Albania (1992–2002).svg"} or {2001, "Flag of Albania (1992–2002).svg"}, from what I saw there was no even at 2002 (with Albania participating). Mohsen1248 ( talk) 00:25, 6 May 2020 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per information here in Flag of Albania, changing the section about Albania into this.
also the same for Ecuador per this page Flag of Ecuador
those lines in bold should be added. Mohsen1248 ( talk) 18:59, 4 June 2020 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Apparently Soviet Union didn't change flag in 1980, someone explained it well here and this template Template:Country data Soviet Union doesn't support 1955-1980 flag anymore, it seems that was wrong information, so I think we should remove this line from Soviet Union section
Mohsen1248 ( talk) 02:28, 8 July 2020 (UTC)
Belize changed their flag in 2019 to a standardized version, so I'll request to add this one:
August-54 ( talk) 17:48, 10 January 2021 (UTC)
August-54 ( talk) 12:49, 20 January 2021 (UTC)
Hi, Russian team at the 2020 Winter Youth Olympics participated as Russia, not ROC. ( Almagestas ( talk) 10:14, 28 February 2021 (UTC))
This one should be added:
August-54 ( talk) 19:22, 4 March 2021 (UTC)
One of Afghanistan's flags is missing. Could it be added, please?
August-54 ( talk) 20:59, 10 March 2021 (UTC)
Did Ghana at the 1960 Summer Olympics really have that colonial-era flag of Gold Coast? This one here should be removed:
And these should be added in the place of the above mentioned one:
August-54 ( talk) 21:27, 20 March 2021 (UTC)
According to this Commons page, Zambia changed its original flag with a darker shade of green to the current one on 8 March 1996, a few months before the Atlanta Olympics. So, please change the year parameter for "Flag of Zambia (1964–1996).svg" from "1996" to "1995". August-54 ( talk) 17:38, 24 March 2021 (UTC)
Russian team for the 2022 Winter Olympics will participate in the Russian Olympic Committee (ROC) as well as the 2020 Summer Olympics. -- Sangjinhwa ( talk) 01:57, 7 April 2021 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following at Module:Country alias:
ROC_2020 = { name = "ROC", "ROC flag (2021 NWSCh).png", },
With this:
ROC_2020 = { name = "ROC", "Russian Olympic Committee flag.svg", }
Sangjinhwa ( talk) 02:31, 15 April 2021 (UTC)
![]() | This
edit request to
Template:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hello! Regarding the afghan flag i think this should be changed regarding ceremonial datas. The years from 2004 until 2012 should be changed. The flag in 2004 should be Flag of Afghanistan (2002–2004).svg
the flag in 2008 and 2012 should be Flag of Afghanistan (2004–2013).svg
. If you should find videos that the flag are featured in please find them.
Yours sincerely, Sondre --
80.212.169.236 (
talk)
19:48, 22 April 2021 (UTC)
Hello! Is it possible for you to change the Seychelles parameter from 1996 to 1995?. Because Seychelles changed their flag on the 10th of June 1996 a month before the Atlanta Games. Yours sincerely, Sondre -- 80.212.169.236 ( talk) 09:43, 24 April 2021 (UTC)
Hello! Seychelles changed their flag 10 June 1996 a month or so before the Atlanta Olympics started. So, please change the year parameter for "Flag of Seychelles (1977–1996).svg" from "1996" to "1995". Yours sincerely, Sondre -- 80.212.169.236 ( talk) 10:29, 26 April 2021 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Flag of Rhodesia (1964).svg has been deleted. Can someone replace it in the data module? I'd suggest using Flag of Southern Rhodesia (1924–1964).svg. - Sumanuil ( talk) 02:26, 13 June 2021 (UTC)
I'm requesting a change to the converted version, which is used everywhere else in Wikipedia. So please change this one:
Into this one:
August-54 ( talk) 08:32, 28 July 2021 (UTC)
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 |
![]() |
[7] |
2002 Commonwealth Games |
![]() |
|
2004 Summer Olympics |
![]() |
[8] |
2006 Commonwealth Games |
![]() |
|
2008 Summer Olympics |
![]() |
[9] |
2010 Commonwealth Games |
![]() |
|
2010 Winter Olympics |
![]() |
[10] |
2012 Summer Olympics |
![]() |
[11] |
2014 Commonwealth Games |
![]() |
[12] |
2014 Winter Olympics |
![]() |
[13] |
2016 Summer Olympics |
![]() |
[14] |
2018 Commonwealth Games |
![]() |
[15] |
2020 Summer Olympics |
![]() |
Mjb1981 ( talk) 16:26, 9 August 2021 (UTC)
![]() | This
edit request to
Template:Country alias 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)
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":
SWZ
should probably show 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)
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)
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 |
![]() |
[17] |
2008 Summer Olympics |
![]() |
[18] |
2012 Summer Olympixs |
![]() |
[19] |
Yours sincerely, Sondre -- 62.73.207.204 ( talk) 13:19, 18 September 2021 (UTC)
@
Primefac: re.
Special:Diff/1067430903/1067431244,
Template:FlagIOCathlete cannot use the module without that change as the module only reads parameter 3 from frame:getParent().args
and parameter 3 needs to have " Olympics" appended to it. The page exceeding the PEIS limit is
Japan at the 2020 Summer Olympics, and I just had it fixed before your revert.
User:GKFX
talk
12:34, 23 January 2022 (UTC)
{{{3}}} Olympics
as is done at {{
country alias}}. Apologies.
Primefac (
talk)
12:36, 23 January 2022 (UTC)
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
@ Joeyline, Primefac, Raymarcbadz, Sportsfan 1234, and VEO15:
The module is transcluded in 34,664 pages and even minor edit wars are inappropriate when changes have such an impact. Editing the module should be done with care and any disagreements should be discussed on the talk page. I recommend using Template talk:Country alias as it is the template that appears in articles and it is conventional for discussions about changes affecting the template to occur on its talk. The module talk page is usually either a redirect to the template talk, or is for discussion about technical issues regarding the module (that is, how the code works, not whether some data should be "Ivory Coast" or "Côte d'Ivoire").
By the way Primefac, it is time to remove the TODO note at the top. You may like to also keep or remove the EXA and EXX examples: whatever you think. Johnuniq ( talk) 01:27, 15 January 2017 (UTC)
Been doing some redirect research, and I have the possible solution. I agree with Johnuniq about the location of various discussions, so I'll split/copy this discussion to Template talk:Country alias and turn Module talk:Country alias into a redirect (leaving all of the other discussions in place). This allows for template-related discussions to happen at the template, and module/code-related discussions to happen at the module. Sound good? Primefac ( talk) 02:23, 15 January 2017 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
88.90.217.227 ( talk) 11:52, 25 February 2017 (UTC)
Hello! Can you right the Belarusian country alias module because that the flag for 2012 is there. They also had a flag until 1995 previously
Hello! This is a message from me. Can you add the right flag alias for Belarus. I see that they only have the flag until 2012. They used the Pahonian flag in the 1994 Winter Olympic Games in Lillehammer. That country alias is missed in the module. -- 88.90.217.227 ( talk) 11:55, 25 February 2017 (UTC)
Hi, I think there is a little mistake for Philippines flag here. right now this is what we see for the country at the 1986 Asian Games
Philippines but per
Flag of the Philippines they changed their flag in February 1986 while the Asian Games were held much later on September. they used the "navy blue" flag for most of 1986 year including the Asian Games. they used that "light blue" flag from February 1985 to February 1986.
Exactly the same goes to their 1998 flag, they used the old flag since February 1998 and the Asian Games were held in December 1998. maybe this is the better way to have it (I changed the year a bit)
I think there are probably more situations like this, I will try to find if there is still any. Mohsen1248 ( talk) 03:46, 20 March 2017 (UTC)
Hi again, I checked few more countries and found this list.
Looks like there are more flags for South Korea. per Template:Country data South Korea and Flag of South Korea, in current format we are using 1984-1997 flag for 1949 to 1997 ! here is the possible outcome
I see we have Olympic flag for India for the year of 2013, not sure if that's necessary because whenever India participated under Olympic flag they used another IOC code like IOA or something like that. but if that should stay, you have to make an exception for the 2013 World Games, they participated under the Indian flag there, Source. Mohsen1248 ( talk) 21:43, 7 August 2017 (UTC)
Mauritania has got a new flag with two red stripes (this means that every Olympics from 2020 will use this flag) and also, Malawi has flowned the current flag at the 2012 Olympics and Bulgaria has flowed the same as the current flag because the emblem didn't exist until 1946. Please change this 2607:FEA8:4F20:59F:2D7C:B3B7:8ADF:CAD0 ( talk) 11:03, 12 August 2017 (UTC)
The Hong Kong flag for the Commonwealth Games needs to be its British colonial ensign, the territory's current SAR flag shows when the flagCGFteam template is used. Also, the flag for Wales in the 1930 and 1934 British Empire Games articles show up as the Saint George's cross when it should be the Red Dragon flag, which has been used to represent the country long before it gained official status in the 1950s. VEO one five 23:28, 16 August 2017 (UTC)
VEO one five 23:41, 16 August 2017 (UTC)
{{flagCGF|HKG}}
template and its corresponding article, the SAR flag is used ({{flagCGF|HKG|1994}}
, then sure, it'll show the most recent colonial flag (Hello. Can You add old Belarusian flag?
— Preceding unsigned comment added by Almagestas ( talk • contribs) 08:47, 24 September 2017 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Request to add a new country code: OAR for Olympic Athlete from Russia, using the Olympic Flag, to be used at Olympic Athlete from Russia at the 2018 Winter Olympics and other pages related to the 2018 Winter Olympics and the Doping in Russia scandal. [1] 208.58.219.2 ( talk) 19:14, 5 December 2017 (UTC)
Hi, We had Asian Indoor and Martial Arts Games in Turkmenistan and I want to ask for few changes because of that.
|name=
parameter in {{
flagIOC2}} allows for a custom name to be displayed, e.g. {{flagIOC2|TAH|2017 Asian Indoor and Martial Arts Games}}
(and similar uses) will now return Can 'COR' be added to this list? The IOC announced that 'COR' will be used for the unified Korea Olympic team, competing in Women’s Ice Hockey, at the 2018 Winter Olympics ( link). Wpeneditor ( talk) 16:07, 20 January 2018 (UTC)
GBR should render as "Great Britain and Northern Ireland" (the name used by the teams), and not as just "Great Britain". -- DeFacto ( talk). 19:16, 27 January 2018 (UTC)
The United Kingdom of Great Britain and Northern Ireland competed as Great Britain at...(or just say "Great Britain"). If this change is to be made, it should probably be made across the article text as well as the template, and for that you'd need a larger consensus. Primefac ( talk) 19:21, 27 January 2018 (UTC)
@ Primefac: Your TLC is needed again! "Lua error in Module:Country_alias at line 1715: Invalid country alias: NPA." Johnuniq ( talk) 21:40, 6 February 2018 (UTC)
Korean Unification Flag in 2018 Winter Olympics do not have Ulleung Island. It should be File:Unification flag of Korea (pre 2006).svg(No Ulleung Island version of Korean Unification Flag.).-- 121.145.243.251 ( talk) 12:28, 9 February 2018 (UTC)
Could someone please add the country alias FRY with the name FR Yugoslavia. This country appeared at the Olympics from 1994 until 2002. After that it was renamed "Serbia and Montenegro" but that name had not been coined at all back in the 90's. They used the same flag both as FR Yugoslavia and Serbia and Montenegro. Thanks, T v x1 16:16, 30 January 2018 (UTC)
For what it's worth, 1998 FIFA World Cup uses the {{ fb}} template, which (at the moment) doesn't call this template, and it also looks like it's using the correct flag. Happy to add exceptions as you find them. Primefac ( talk) 12:54, 20 February 2018 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following at Module:Country alias:
URS = { name = "Soviet Union", {1955, "Flag of the Soviet Union (1923-1955).svg"}, {1980, "Flag of the Soviet Union (1955-1980).svg"}, "Flag of the Soviet Union.svg", },
With this:
URS = { name = "Soviet Union", {1936, "Flag of the Soviet Union (1924-1936).svg"}, {1955, "Flag of the Soviet Union (1936-1955).svg"}, {1980, "Flag of the Soviet Union (1955-1980).svg"}, "Flag of the Soviet Union.svg", },
This change will accomplish two things:
(1) File:Flag of the Soviet Union (1923-1955).svg (which is presently invoked) redirects to File:Flag of the Soviet Union (1936-1955).svg; this change will bypass the redirect.
(2) The earlier version of the Soviet flag, at File:Flag of the Soviet Union (1924-1936).svg and not presently invoked here, will be used where appropriate (prior to 1936). Jdaloner ( talk) 09:42, 26 March 2018 (UTC)
Hi, based on Flag of Poland, Poland used the new flag from January 1980. but per {1980, "Flag of Poland (1928-1980).svg"}, we use this flag for the year of 1980 as well. while they used the new flag for almost the whole year specially 1980 Summer Olympics. I think it has to change to {1979, "Flag of Poland (1928-1980).svg"},. Mohsen1248 ( talk) 11:49, 26 April 2018 (UTC)
Hi again, I asked for flag change for South Korea almost a year ago. here ,I want to ask for that again, I'm not necessarily supporting these changes but if this template and this should be similar. the current situation uses Flag of South Korea (1984-1997).svg for 1950-1997 which is obviously wrong based on the file name. Mohsen1248 ( talk) 20:22, 8 May 2018 (UTC)
Hi, looks like we need an update on North Korea flag because of this Template:Country data North Korea which says North Korea had a different flag from 1948 to 1992. I tried to make sure this is the correct change but you might want to double check it yourself. Mohsen1248 ( talk) 11:49, 5 June 2018 (UTC)
![]() | This
edit request to
Template:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Add "Independent Asian Athletes" from Kuwait for 2018 Asian Games#Participating National Olympic Committees with File:Olympic Council of Asia Logo.svg (or probably use File:Olympic flag.svg because fair use). Source [3] and 2018 Asian Games#Independent athletes. Hddty. ( talk) 19:31, 9 August 2018 (UTC)
For Antigua and Barbuda, the IOC code is ANT, but the ISO code is ATG.
For Netherlands Antilles, the IOC code is AHO, but the ISO code (and the FIFA code) is ANT.
Template:Country data ANT redirects to Netherlands Antilles.
This module lists ANT as Antigua and Barbuda, which is its IOC code.
There is a list of differences between IOC, ISO, and FIFA at List of FIFA country codes#FIFA, IOC and ISO differences. There may be other overlaps; I haven't looked.
What, if anything, should be done in this module to minimize confusion for editors? – Jonesey95 ( talk) 08:03, 24 September 2018 (UTC)
Is there a reason Taiwan isn't included in this? Happy to add it myself but want to make sure there isn't a specific reason for it being excluded. -- Zackmann ( Talk to me/ What I been doing) 18:18, 24 September 2018 (UTC)
According to Template:Country data Norfolk Island the proper 3 letter code is NFK not NFI. Should this be fixed here? Do we just need to add a redirect? -- Zackmann ( Talk to me/ What I been doing) 19:10, 24 September 2018 (UTC)
Hi, I recenty implemented this module into Turkish Wikipedia, and I saw that some countries are written two times on the main countries table. I workaround s solution about this problem. Can't we change this line:
local country = countries[alias]
with this:
local ulke = countries[countries[alias]] or countries[alias]
And then instead of adding the same data twice, just redirect the codes as ["SWK"] = "SAR",
. It seems that it workes just fine on tr wiki and I wanted to share it here. ~
Z (
m)
22:07, 1 October 2018 (UTC)
local countryAliases = { ANG_CGF = "AIA", SWK = "SAR", } local country = countries[alias] or countries[countryAliases[alias]]
@ Primefac: I forget how all this is supposed to work but a couple of articles have an error due to the recent edit for SWZ. For example, 1976 Summer Olympics shows
due to use of {{flagIOC|SWZ}}
. {{
FlagIOC}} passes " Olympics" to {{
FlagIOC2}} as parameter 2 and that sets fullName. Then an expression error occurs, I think because the String match would give an empty string so the expression would be "<2018". That's as far as I can take it at the moment.
Johnuniq (
talk)
23:03, 17 January 2019 (UTC)
alias
based on the year/games inputs.
Primefac (
talk)
12:15, 18 January 2019 (UTC)@ Primefac: I have nearly finished preparing some code for the module to replace the logic in the template. I will put it in the sandbox soon. However, I would like something clarified first. My reading of the template is that if fullName is given then year and games are set from fullName. If fullName is "2012 Competition" then year = 2012 and games = Competition. That's fine. But if fullName is "Competition" then year is assumed to be an empty string (will not equal any year) or zero (will be less than any year). Any value in the year parameter would be ignored. Is that what is wanted, or was it too painful to say something like "use year from fullName if fullName is given and starts with a number; otherwise use year parameter if given; otherwise use empty string/zero"? Johnuniq ( talk) 01:22, 20 January 2019 (UTC)
|fullName=
is given, then it would be assumed that |year=
would not also be used, because why give both? In other words, if fullName is given, it's assumed that the year (if there is one) will come from that and return a null string if |fullName=Competition
. The only time 0 should be passed to the year is if someone puts |year=0
, which would (properly) give an error.
Primefac (
talk)
14:23, 20 January 2019 (UTC)Real life became particularly complicated in the last couple of days but I think I have moved the alias exception logic from Template:Country alias/sandbox to Module:Country alias/sandbox. Please check the edits to both of those. Here are some tests. I'm not sure if these cover all possibilities. When you have time to check, let me know how it looks.
{{country alias/sandbox|ANG|games=Example}}
→ Angola{{country alias/sandbox|ANG|games=Commonwealth Games}}
→ Anguilla{{country alias/sandbox|GBR|games=Example}}
→ Great Britain{{country alias/sandbox|GBR|games=World Championships in Athletics}}
→ Great Britain and Northern Ireland{{country alias/sandbox|GBR|games=European Athletics Championships}}
→ Great Britain and Northern Ireland{{country alias/sandbox|GBR|games=European Championships|year=2017}}
→ Great Britain{{country alias/sandbox|GBR|games=European Championships|year=2018}}
→ Great Britain and Northern Ireland{{country alias/sandbox|HKG|games=Example|flag=yes}}
→ Flag of Hong Kong.svg{{country alias/sandbox|HKG|games=Commonwealth Games|flag=yes}}
→ Flag of Hong Kong (1959–1997).svg{{country alias/sandbox|IOA|games=Example|year=2000}}
→ Individual Olympic Athletes{{country alias/sandbox|IOA|games=Example|year=2001}}
→ Independent Olympic Athletes{{country alias/sandbox|SWZ|fullName=Example}}
→ Swaziland{{country alias/sandbox|SWZ|fullName=2017 Example}}
→ Swaziland{{country alias/sandbox|SWZ|fullName=2018 Example}}
→ Eswatini{{country alias/sandbox|SWZ|fullName=2019 Example}}
→ Eswatini{{country alias/sandbox|SWZ|fullName=2018 Commonwealth Games}}
→ Swaziland{{country alias/sandbox|SWZ|games=Example|year=2018}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games|year=2017}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games|year=2018}}
→ Eswatini{{country alias/sandbox|SWZ|games=Commonwealth Games|year=2019}}
→ EswatiniThe module now has two sets of comments that refer to alias exceptions: the original notes at the top of the module and the new comments before function getAlias which I copied (and tweaked) from the template. It might be better to remove the duplication. Johnuniq ( talk) 09:01, 21 January 2019 (UTC)
Question: what is 'IOP, IOA, OAR'? Is that really a country code that is used in a template somewhere? Johnuniq ( talk) 09:27, 22 January 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Direct file link fixes: Please replace - with – in the following flags:
{1930, "Flag of Venezuela (1905-1930).svg"}, {1954, "Flag of Venezuela (1930-1954).svg"}, {2006, "Flag of Venezuela (1954-2006).png"},
Links on commons: c:File:Flag of Venezuela (1905-1930).svg, c:File:Flag of Venezuela (1930-1954).svg and c:File:Flag of Venezuela (1954-2006).png - Christian75 ( talk) 11:01, 17 February 2019 (UTC)
Chronological summary of the 2016 Summer Olympics is in
Category:Pages with script errors with a zillion "The time allocated for running scripts has expired" errors. That occurs because {{
country alias}} is called 3912 times! I'm not sure that encouraging such bloat is desirable but I'm not going to fix that so I'm wondering whether changing
Module:Country alias to cope with the fact that it can be called thousands of times would be desirable. The technical solution would be to move the large tables from that module to a new
Module:Country alias/data and access it with mw.loadData
which would greatly speed up the module when called a thousand times on a page. @
Primefac: What do you think? Prune/split the article or split the module?
Johnuniq (
talk)
02:51, 2 February 2019 (UTC)
@ Primefac: I have created Module:Country alias/data (and its sandbox). Please template protect the new module. I will then update Module:Country alias to match its sandbox. Quick test:
{{Country alias|ITA}}
→ Italy{{Country alias|ITA|flag=yes}}
→ Flag of Italy.svg{{Country alias|ITA|flag=yes|year=1946}}
→ Flag of Italy (1861-1946).svg{{Country alias|ITA|flag=yes|year=1947}}
→ Flag of Italy.svg{{Country alias|ITA|flag=yes|year=1980|games=Summer Olympics}}
→ Olympic flag.svg{{Country alias|ITA|flag=yes|year=2006|games=Summer Olympics}}
→ Flag of Italy (2003–2006).svg{{Country alias/sandbox|ITA}}
→ Italy{{Country alias/sandbox|ITA|flag=yes}}
→ Flag of Italy.svg{{Country alias/sandbox|ITA|flag=yes|year=1946}}
→ Flag of Italy (1861-1946).svg{{Country alias/sandbox|ITA|flag=yes|year=1947}}
→ Flag of Italy.svg{{Country alias/sandbox|ITA|flag=yes|year=1980|games=Summer Olympics}}
→ Olympic flag.svg{{Country alias/sandbox|ITA|flag=yes|year=2006|games=Summer Olympics}}
→ Flag of Italy (2003–2006).svgUnfortunately the fix does not seem to be sufficient for Chronological summary of the 2016 Summer Olympics according to a preview I performed. I'll think about that after it goes live. Johnuniq ( talk) 07:01, 4 February 2019 (UTC)
I was irritated to see that Chronological summary of the 2016 Summer Olympics still uses a lot of Lua time, even after moving the data to a separate module. Investigation shows these results for that article:
Template | Occurrences | Calls to {{ country alias}} |
---|---|---|
{{ flagIOC}} | 1023 | 3 |
{{ flagIOC-rt}} | 33 | 3 |
{{ flagIOCathlete}} | 200 | 2 |
Each call to {{ country alias}} invokes Module:Country alias so the module is invoked 1023*3 + 33*3 + 200*2 = 3568 times in Chronological summary of the 2016 Summer Olympics. That takes about 6.5 seconds of Lua time which is 1.8 ms/call. If a better fix were wanted, it would involve changing the way the templates work. For example, {{ flagIOC}} calls {{ flagIOC2}} and the latter calls {{ country alias}} three times. The fix would be to have the former invoke a new function in the module to do the equivalent of flagIOC2 in a single call. That would reduce the number of calls to the module from 3568 to 1256 which should reduce the Lua time by about the same factor. Johnuniq ( talk) 04:20, 5 February 2019 (UTC)
I updated Module:Country alias and {{ flagIOC}}. I don't think I'll bother with the related flag templates (such as {{ flagIOC2}}) unless there is a need. At Chronological summary of the 2016 Summer Olympics, Template:FlagIOC dropped from occupying 57% of the transclusion expansion time to 13%, and the Lua time usage dropped from 9.4 seconds to 3.9. Johnuniq ( talk) 04:24, 18 February 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add an alias for North Macedonia. IOC has adopted the name already [4]. -- 1.64.90.9 ( talk) 10:17, 27 March 2019 (UTC)
{{flagIOC|MKD|1996 Summer}}
→ {{flagIOC|MKD|2020 Summer}}
→ Hi, Based on this source Turkmenistan made some changed in the flag in January 1997, while currently we are using the 1992-1997 flag for the whole year of 1997, for example 1997 West Asian Games were held on November. so I'm asking for a change, either changing 1997, "Flag of Turkmenistan (1992-1997).svg"} to 1996, "Flag of Turkmenistan (1992-1997).svg"} or just make an exception for the 1997 West Asian Games. also they again changed the flag on January 2001. even though I'm not sure if we had an important even in 2001, but it's just better to also change the next line from 2001 to 2000. thanks in advance. Mohsen1248 ( talk) 22:26, 28 March 2019 (UTC)
Hi again, I don't know if I asked this before. but I wonder if that's technically possible to have a different name for NOC code for different competitions ? if that's possible the ART code should return just the "Refugee Team" and not
Refugee Team for the 2017 Asian Indoor and Martial Arts Games. that's the official term they used for the competition. even the article is
Refugee Team at the 2017 Asian Indoor and Martial Arts Games. that's no big deal if this is not possible technically because a redirect already solved this but I thought that should be better. thanks in advance.
Mohsen1248 (
talk)
12:18, 7 April 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi! Can you update "File:Bohemian Olympic Flag (1912).png" to "File:Bohemian Olympic Flag (1912).svg"? Thanks! B1mbo ( talk) 22:52, 15 July 2019 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please, change "Flag of Italy (2003–2006).svg" with "Flag of Italy (Pantone, 2003).svg". The Pantone colors used in the current file are wrong, as you can see here. Nick.mon ( talk) 20:13, 23 July 2019 (UTC)
{{
edit template-protected}}
template. I started a discussion with you about this above. It's not done yet. Please don't submit an edit request until we determine this is the right flag.
Primefac (
talk)
01:26, 24 July 2019 (UTC)Could someone update the 2003 Italian flag, which is absolutely wrong, as you can see in it.Wiki. The correct flag is this one:
Thank you. -- Nick.mon ( talk) 10:45, 23 July 2019 (UTC)
Having read through most of the discussions at commons:File talk:Flag_of_Italy.svg, it seems like there has always been some concern with converting between Pantone and RGB. While it seems that the current flag discussion has died down, no one has ever started a discussion on the 03-06 variant to decide which pantone to use. Primefac ( talk) 18:11, 25 July 2019 (UTC)
Hi, Russia used a different flag from 1991 to 1993, they participated at the World Games in 1993, so I'm requesting a change for that.
Thanks in advance. Mohsen1248 ( talk) 19:44, 19 October 2019 (UTC)
Please change the year parameter for "Flag of Albania (1946–1992).svg" from "1992" to "1991" so that it does not cover the 1992 Summer Olympics, which occurred later in the year the flag was changed. -- Jonel ( Speak to me) 16:39, 6 February 2020 (UTC)
The crown in Liechtenstein's flag was different than now until 1982, so I'll request to add this one:
Also, Spain did not use the Olympic flag in the Moscow Olympics in 1980, but its NOC flag (File:Spain Olympic Flag 1980.svg) instead. August-54 ( talk) 16:56, 8 February 2020 (UTC)
I noticed we are using the 1988-2004 flag for Lithuania for 2004 Olympics which can be wrong, per Flag of Lithuania, they changed the flag on July 2004, one month before the Olympics. so unless there is a source indicate they still used the old flag, I think we should make a change. change this code {2004, "Flag of Lithuania (1988-2004).svg"} to {2003, "Flag of Lithuania (1988-2004).svg"} or simply make the 2004 Olympics an exception which is probably a better idea. Mohsen1248 ( talk) 01:23, 5 May 2020 (UTC)
It seems Albania had a slightly different flag from 1992 to 2002 which covers 1992, 1996 and 2000 Olympics, I think we should add something like this {2002, "Flag of Albania (1992–2002).svg"} or {2001, "Flag of Albania (1992–2002).svg"}, from what I saw there was no even at 2002 (with Albania participating). Mohsen1248 ( talk) 00:25, 6 May 2020 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per information here in Flag of Albania, changing the section about Albania into this.
also the same for Ecuador per this page Flag of Ecuador
those lines in bold should be added. Mohsen1248 ( talk) 18:59, 4 June 2020 (UTC)
![]() | This
edit request to
Module:Country alias/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Apparently Soviet Union didn't change flag in 1980, someone explained it well here and this template Template:Country data Soviet Union doesn't support 1955-1980 flag anymore, it seems that was wrong information, so I think we should remove this line from Soviet Union section
Mohsen1248 ( talk) 02:28, 8 July 2020 (UTC)
Belize changed their flag in 2019 to a standardized version, so I'll request to add this one:
August-54 ( talk) 17:48, 10 January 2021 (UTC)
August-54 ( talk) 12:49, 20 January 2021 (UTC)
Hi, Russian team at the 2020 Winter Youth Olympics participated as Russia, not ROC. ( Almagestas ( talk) 10:14, 28 February 2021 (UTC))
This one should be added:
August-54 ( talk) 19:22, 4 March 2021 (UTC)
One of Afghanistan's flags is missing. Could it be added, please?
August-54 ( talk) 20:59, 10 March 2021 (UTC)
Did Ghana at the 1960 Summer Olympics really have that colonial-era flag of Gold Coast? This one here should be removed:
And these should be added in the place of the above mentioned one:
August-54 ( talk) 21:27, 20 March 2021 (UTC)
According to this Commons page, Zambia changed its original flag with a darker shade of green to the current one on 8 March 1996, a few months before the Atlanta Olympics. So, please change the year parameter for "Flag of Zambia (1964–1996).svg" from "1996" to "1995". August-54 ( talk) 17:38, 24 March 2021 (UTC)
Russian team for the 2022 Winter Olympics will participate in the Russian Olympic Committee (ROC) as well as the 2020 Summer Olympics. -- Sangjinhwa ( talk) 01:57, 7 April 2021 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the following at Module:Country alias:
ROC_2020 = { name = "ROC", "ROC flag (2021 NWSCh).png", },
With this:
ROC_2020 = { name = "ROC", "Russian Olympic Committee flag.svg", }
Sangjinhwa ( talk) 02:31, 15 April 2021 (UTC)
![]() | This
edit request to
Template:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hello! Regarding the afghan flag i think this should be changed regarding ceremonial datas. The years from 2004 until 2012 should be changed. The flag in 2004 should be Flag of Afghanistan (2002–2004).svg
the flag in 2008 and 2012 should be Flag of Afghanistan (2004–2013).svg
. If you should find videos that the flag are featured in please find them.
Yours sincerely, Sondre --
80.212.169.236 (
talk)
19:48, 22 April 2021 (UTC)
Hello! Is it possible for you to change the Seychelles parameter from 1996 to 1995?. Because Seychelles changed their flag on the 10th of June 1996 a month before the Atlanta Games. Yours sincerely, Sondre -- 80.212.169.236 ( talk) 09:43, 24 April 2021 (UTC)
Hello! Seychelles changed their flag 10 June 1996 a month or so before the Atlanta Olympics started. So, please change the year parameter for "Flag of Seychelles (1977–1996).svg" from "1996" to "1995". Yours sincerely, Sondre -- 80.212.169.236 ( talk) 10:29, 26 April 2021 (UTC)
![]() | This
edit request to
Module:Country alias has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Flag of Rhodesia (1964).svg has been deleted. Can someone replace it in the data module? I'd suggest using Flag of Southern Rhodesia (1924–1964).svg. - Sumanuil ( talk) 02:26, 13 June 2021 (UTC)
I'm requesting a change to the converted version, which is used everywhere else in Wikipedia. So please change this one:
Into this one:
August-54 ( talk) 08:32, 28 July 2021 (UTC)
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 |
![]() |
[7] |
2002 Commonwealth Games |
![]() |
|
2004 Summer Olympics |
![]() |
[8] |
2006 Commonwealth Games |
![]() |
|
2008 Summer Olympics |
![]() |
[9] |
2010 Commonwealth Games |
![]() |
|
2010 Winter Olympics |
![]() |
[10] |
2012 Summer Olympics |
![]() |
[11] |
2014 Commonwealth Games |
![]() |
[12] |
2014 Winter Olympics |
![]() |
[13] |
2016 Summer Olympics |
![]() |
[14] |
2018 Commonwealth Games |
![]() |
[15] |
2020 Summer Olympics |
![]() |
Mjb1981 ( talk) 16:26, 9 August 2021 (UTC)
![]() | This
edit request to
Template:Country alias 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)
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":
SWZ
should probably show 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)
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)
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 |
![]() |
[17] |
2008 Summer Olympics |
![]() |
[18] |
2012 Summer Olympixs |
![]() |
[19] |
Yours sincerely, Sondre -- 62.73.207.204 ( talk) 13:19, 18 September 2021 (UTC)
@
Primefac: re.
Special:Diff/1067430903/1067431244,
Template:FlagIOCathlete cannot use the module without that change as the module only reads parameter 3 from frame:getParent().args
and parameter 3 needs to have " Olympics" appended to it. The page exceeding the PEIS limit is
Japan at the 2020 Summer Olympics, and I just had it fixed before your revert.
User:GKFX
talk
12:34, 23 January 2022 (UTC)
{{{3}}} Olympics
as is done at {{
country alias}}. Apologies.
Primefac (
talk)
12:36, 23 January 2022 (UTC)