On 21 May 2024, it was proposed that this page be moved from Template:Flagathlete to Template:Flag athlete. The result of the discussion was moved. |
There's a problem. The third parameter is used for getting the correct flag, but not for getting the correct country link.
For example, on Bowls, I changed
{{flagathlete|Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon|IRE}}
Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon ( IRE)
to
{{flagathlete|Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon|IRE|1783}}
Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon ( IRE)
Which correctly changes the flag from the the Irish tricolour to the Saint Patrick's Cross, but does not change the country from Republic of Ireland to Ireland. The code needs to add something like
{{flagicon|{{{2}}}|{{{3|}}}}} {{{1}}} <span style="font-size:90%;">([[{{getalias|{{{2}}}}}|{{{2}}}]])</span>
{{flagicon|{{{2}}}|{{{3|}}}}} {{{1}}} <span style="font-size:90%;">([[{{getalias|{{{2}}}}}|{{{2}}}|{{{3|}}]])</span>
but I'm not competent to do this properly. jnestorius( talk) 22:58, 6 November 2008 (UTC)
alias
value variable using a parser function. The rationale for that change was to support {{flag|Ireland}} instead of forcing editors to use {{flagcountry|Republic of Ireland}}. I have tried to fixed this, but I'm not sure it can be done. Your suggestion won't work, alas. —
Andrwsc (
talk ·
contribs) 01:45, 7 November 2008 (UTC)
{{
editprotected}}
Recently installed changes to Mediawiki mean that one must mark purely-decorative images with |link=
|alt=
instead of merely with |link=
as it used to be. The new behavior is described in
WP:ALT #Purely decorative images. Could you please install
the obvious sandbox patch to {{
Country flagbio}}, which is an auxiliary to this template? Thanks.
Eubulides (
talk) 23:49, 27 October 2009 (UTC)
Why does this template fail to display in a Web slice (Internet Explorer feature)? It was working previously. From IE8 or IE9, go to Template:Current_Men's_Singles_ATP_Rankings, then press Alt-J and click the Green icon then click Add. Notice in the dropdown favorite that is added, the flags don't display. They used to earlier. - xpclient Talk 13:49, 19 October 2011 (UTC)
Could I ask why this template is useful for the project? I'd like to know that flags are not used merely as decorations, and have solid value as clear indicators of a nation. Anyone hazzard a guess as to the difference between the Australian and New Zealand flags? Tony (talk) 09:07, 9 February 2012 (UTC)
This template seriously and indiscriminately
overlinks. See how:{{flagathlete|[[Michael Phelps]]|USA}}
renders as
Michael Phelps (
USA). The link to the country is wide of the mark and thus totally unnecessary. It lacks focus and fails the specificity test because clicking on "USA" takes you to the generic
United States article and not 'United States National Swimming Team' or something that might approximate as being useful. The result on a macroscopic levels can be illustrated by
FIS Alpine Ski World Cup#Top results, where there is a sea of blue. The oft-repeated country links that nobody will click on and nobody can remove are a total waste of space. Can this automatic default linking should be undone in the first instance? I would if only I knew how, but it seems to be part of a series of nested templates and I cannot track the relevant one. I request for somebody to do the honours and unlink the country. Thanks. --
Ohc
¡digame! 01:48, 20 March 2014 (UTC)
Is there any way of removing the tooltip for instances when the whole country name is included in the brackets, for example at 2010 FIFA World Cup statistics? - 97rob ( talk) 10:15, 12 May 2014 (UTC)
|
Is there any reason why we wedge the athlete name in between the flag and its country code/name? Wouldn't it logically make more sense to put the name first and follow it with flag and country text, as below? This would need to be changed in the Template:Country flagbio. SFB 20:37, 20 May 2014 (UTC)
Usain Bolt | JAM |
Richard Thompson | TRI |
Walter Dix | USA |
— Andrwsc ( talk · contribs) 20:55, 20 May 2014 (UTC)
{{
flagu|TRI}}
so that there is neither a link or toolip. Using this template (in the first example) would give you the tooltip, or using {{
flag|TRI}}
would give you the latter. And if you weren't space-constrained in the table, you'd probably use {{
flag|Trinidad and Tobago}}
, or better to use {{
flagu|Trinidad and Tobago}}
to avoid
WP:OVERLINK. —
Andrwsc (
talk ·
contribs) 16:42, 21 May 2014 (UTC)
Hi Guys! At WP:TENNIS We've noticed the change you've made in accordance with the WP:OVERLINK. A new collapsible template to collect all flags in one place was created by one of our members (see section title). It could be added to every article that is affected by the "flag problem". The idea is this: Is it possible to transform the Flagathlete template to have the 3-digit country code link to the flag key template? (or better to the appropritae flag within the template?) That way we could relieve the already flag-heavy articles but keeping one flag key template at the bottom for informational/educational purposes. In my opinion the current problem is that one specific flag reappears numerous times within an article. One flag for one nation shouldn't be a problem but to have it attached next to an athlete's name every time he/she is listed is indeed superfluous. Ideas/comments? Lajbi Holla @ me • CP 10:28, 9 July 2014 (UTC)
Hi, what should I do if I need to display more than flag for an athlete? He was a footballer for Austria, but got Czechoslovak citizenship and played for Czechoslovakia. What is the correct way to display this correctly? Nazgul02 ( talk) 15:05, 6 December 2016 (UTC)
Primefac, it would be great if this template could use {{ Country alias}} since it would fix this problem. I have some transitional code in the sandbox, but I had to add an 'iferror' catch for the cases where {{ Country alias}} can't find the name of the country. a cleaner implementation would be to have an a way to check without throwing an error, and then add a tracking category to clean up the cases with unknown countries. Frietjes ( talk) 23:11, 27 February 2017 (UTC)
FR Yugoslavia
, would generate an error message right now. I suppose the thing to do would be to add some tracking right now, clean up any problematic uses, then transition to use {{
country alias}}?
Frietjes (
talk) 14:35, 28 February 2017 (UTC)
@ Primefac and Johnuniq: I believe Category:Pages using flagathlete with an unsupported country is now filled. the question now is what to do. (1) we could use the sandbox code, which prefers Module:Country alias, but falls back on the old code when the lookup fails, (2) we could add more countries to Module:Country alias, or (3) add the fall back logic to Module:Country alias, or (4) do nothing. Frietjes ( talk) 14:21, 30 March 2017 (UTC)
I've kind of been rolling this whole thing around in my head since I first got the ping in the above section, but... do we really need this template? I can understand the need for {{ flag}} (e.g. when one wants a flag but doesn't really care about the sport), and this template seems like a corollary to {{ flagIOCathlete}}, but if we're talking about an athlete (and we have flagIOCathlete) do we really need a generic version? It seems like a complicated waste. The reason we have the IPC/PASO/CGF variants is to condense the templates (so you don't have to input "Commonwealth Games" every time), but this template doesn't actually do that. Especially if we modify this to use {{ country alias}}, it practically is flagIOCathlete. I think I'm starting to ramble, so... thoughts are appreciated. If I'm not missing anything obvious, I might take this to TFD and we can clean up usage afterwards. Primefac ( talk) 02:57, 1 March 2017 (UTC)
I don't know why but this template with Libya doesn't work well, Mohamed Salem Tlish ( LBA) shows the Egyptian flag instead of old Libyan flag. Mohsen1248 ( talk) 15:53, 18 May 2017 (UTC)
{{flag|Libya|1977}}
→
Libya).
Frietjes (
talk) 16:49, 18 May 2017 (UTC)
Yes, this sort of poor coding was the reason why {{ country alias}} was created in the first place; there was no dynamic output for {country data X}. I'll have to have a think about the best way to fix this. The easiest thing, of course, would just be to roll back this particular family of templates to it's previous incarnation. It means we'll have to fix all of the invalid {country data X} calls as mentioned in the various discussions above. Primefac ( talk) 17:43, 18 May 2017 (UTC)
i hope i don't need to elaborate on the differences between, what the wiki page authors call, "Germany" in 1933-45 and the German Federal Republic of today. the template allows for oversimplifications of nation states in historical contexts. on the page Emil_Kijewski, the cyclist is representing "Germany" with a Nazi flag... i changed the content on the example pages myself using {{flag|Nazi Germany|1933}} or similar. it would be great if the flagathlete template would provide an option for this. it's just painful to see the wiki page of the German Federal Republic appear in the ajax preview when hovering over the nazi flag... — Preceding unsigned comment added by Schtom ( talk • contribs) 10:33, 20 July 2021 (UTC)
examples: UCI_Road_World_Championships, UCI Road World Championships - Men's Road Race, Emil_Kijewski
The result of the move request was: moved. ( closed by non-admin page mover) BilledMammal ( talk) 11:16, 28 May 2024 (UTC)
Template:Flagathlete →
Template:Flag athlete – Per
WP:TPN, we should follow standard English spelling, spacing, and capitalization
. A previous
WP:BOLDMOVE by
Rich Farmbrough was reverted by
Andrwsc (in 2009!), so I am bringing this to a full RM.
House
Blaster (
talk · he/him) 00:17, 21 May 2024 (UTC)
@
HouseBlaster: You might want to look at {{
flagicon}} and {{
flagdeco}} as well. --
Ahecht (
TALK
PAGE) 15:58, 28 May 2024 (UTC)
On 21 May 2024, it was proposed that this page be moved from Template:Flagathlete to Template:Flag athlete. The result of the discussion was moved. |
There's a problem. The third parameter is used for getting the correct flag, but not for getting the correct country link.
For example, on Bowls, I changed
{{flagathlete|Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon|IRE}}
Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon ( IRE)
to
{{flagathlete|Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon|IRE|1783}}
Jim Baker, Sammy Allen, John McCloughlin, Rodney McCutcheon ( IRE)
Which correctly changes the flag from the the Irish tricolour to the Saint Patrick's Cross, but does not change the country from Republic of Ireland to Ireland. The code needs to add something like
{{flagicon|{{{2}}}|{{{3|}}}}} {{{1}}} <span style="font-size:90%;">([[{{getalias|{{{2}}}}}|{{{2}}}]])</span>
{{flagicon|{{{2}}}|{{{3|}}}}} {{{1}}} <span style="font-size:90%;">([[{{getalias|{{{2}}}}}|{{{2}}}|{{{3|}}]])</span>
but I'm not competent to do this properly. jnestorius( talk) 22:58, 6 November 2008 (UTC)
alias
value variable using a parser function. The rationale for that change was to support {{flag|Ireland}} instead of forcing editors to use {{flagcountry|Republic of Ireland}}. I have tried to fixed this, but I'm not sure it can be done. Your suggestion won't work, alas. —
Andrwsc (
talk ·
contribs) 01:45, 7 November 2008 (UTC)
{{
editprotected}}
Recently installed changes to Mediawiki mean that one must mark purely-decorative images with |link=
|alt=
instead of merely with |link=
as it used to be. The new behavior is described in
WP:ALT #Purely decorative images. Could you please install
the obvious sandbox patch to {{
Country flagbio}}, which is an auxiliary to this template? Thanks.
Eubulides (
talk) 23:49, 27 October 2009 (UTC)
Why does this template fail to display in a Web slice (Internet Explorer feature)? It was working previously. From IE8 or IE9, go to Template:Current_Men's_Singles_ATP_Rankings, then press Alt-J and click the Green icon then click Add. Notice in the dropdown favorite that is added, the flags don't display. They used to earlier. - xpclient Talk 13:49, 19 October 2011 (UTC)
Could I ask why this template is useful for the project? I'd like to know that flags are not used merely as decorations, and have solid value as clear indicators of a nation. Anyone hazzard a guess as to the difference between the Australian and New Zealand flags? Tony (talk) 09:07, 9 February 2012 (UTC)
This template seriously and indiscriminately
overlinks. See how:{{flagathlete|[[Michael Phelps]]|USA}}
renders as
Michael Phelps (
USA). The link to the country is wide of the mark and thus totally unnecessary. It lacks focus and fails the specificity test because clicking on "USA" takes you to the generic
United States article and not 'United States National Swimming Team' or something that might approximate as being useful. The result on a macroscopic levels can be illustrated by
FIS Alpine Ski World Cup#Top results, where there is a sea of blue. The oft-repeated country links that nobody will click on and nobody can remove are a total waste of space. Can this automatic default linking should be undone in the first instance? I would if only I knew how, but it seems to be part of a series of nested templates and I cannot track the relevant one. I request for somebody to do the honours and unlink the country. Thanks. --
Ohc
¡digame! 01:48, 20 March 2014 (UTC)
Is there any way of removing the tooltip for instances when the whole country name is included in the brackets, for example at 2010 FIFA World Cup statistics? - 97rob ( talk) 10:15, 12 May 2014 (UTC)
|
Is there any reason why we wedge the athlete name in between the flag and its country code/name? Wouldn't it logically make more sense to put the name first and follow it with flag and country text, as below? This would need to be changed in the Template:Country flagbio. SFB 20:37, 20 May 2014 (UTC)
Usain Bolt | JAM |
Richard Thompson | TRI |
Walter Dix | USA |
— Andrwsc ( talk · contribs) 20:55, 20 May 2014 (UTC)
{{
flagu|TRI}}
so that there is neither a link or toolip. Using this template (in the first example) would give you the tooltip, or using {{
flag|TRI}}
would give you the latter. And if you weren't space-constrained in the table, you'd probably use {{
flag|Trinidad and Tobago}}
, or better to use {{
flagu|Trinidad and Tobago}}
to avoid
WP:OVERLINK. —
Andrwsc (
talk ·
contribs) 16:42, 21 May 2014 (UTC)
Hi Guys! At WP:TENNIS We've noticed the change you've made in accordance with the WP:OVERLINK. A new collapsible template to collect all flags in one place was created by one of our members (see section title). It could be added to every article that is affected by the "flag problem". The idea is this: Is it possible to transform the Flagathlete template to have the 3-digit country code link to the flag key template? (or better to the appropritae flag within the template?) That way we could relieve the already flag-heavy articles but keeping one flag key template at the bottom for informational/educational purposes. In my opinion the current problem is that one specific flag reappears numerous times within an article. One flag for one nation shouldn't be a problem but to have it attached next to an athlete's name every time he/she is listed is indeed superfluous. Ideas/comments? Lajbi Holla @ me • CP 10:28, 9 July 2014 (UTC)
Hi, what should I do if I need to display more than flag for an athlete? He was a footballer for Austria, but got Czechoslovak citizenship and played for Czechoslovakia. What is the correct way to display this correctly? Nazgul02 ( talk) 15:05, 6 December 2016 (UTC)
Primefac, it would be great if this template could use {{ Country alias}} since it would fix this problem. I have some transitional code in the sandbox, but I had to add an 'iferror' catch for the cases where {{ Country alias}} can't find the name of the country. a cleaner implementation would be to have an a way to check without throwing an error, and then add a tracking category to clean up the cases with unknown countries. Frietjes ( talk) 23:11, 27 February 2017 (UTC)
FR Yugoslavia
, would generate an error message right now. I suppose the thing to do would be to add some tracking right now, clean up any problematic uses, then transition to use {{
country alias}}?
Frietjes (
talk) 14:35, 28 February 2017 (UTC)
@ Primefac and Johnuniq: I believe Category:Pages using flagathlete with an unsupported country is now filled. the question now is what to do. (1) we could use the sandbox code, which prefers Module:Country alias, but falls back on the old code when the lookup fails, (2) we could add more countries to Module:Country alias, or (3) add the fall back logic to Module:Country alias, or (4) do nothing. Frietjes ( talk) 14:21, 30 March 2017 (UTC)
I've kind of been rolling this whole thing around in my head since I first got the ping in the above section, but... do we really need this template? I can understand the need for {{ flag}} (e.g. when one wants a flag but doesn't really care about the sport), and this template seems like a corollary to {{ flagIOCathlete}}, but if we're talking about an athlete (and we have flagIOCathlete) do we really need a generic version? It seems like a complicated waste. The reason we have the IPC/PASO/CGF variants is to condense the templates (so you don't have to input "Commonwealth Games" every time), but this template doesn't actually do that. Especially if we modify this to use {{ country alias}}, it practically is flagIOCathlete. I think I'm starting to ramble, so... thoughts are appreciated. If I'm not missing anything obvious, I might take this to TFD and we can clean up usage afterwards. Primefac ( talk) 02:57, 1 March 2017 (UTC)
I don't know why but this template with Libya doesn't work well, Mohamed Salem Tlish ( LBA) shows the Egyptian flag instead of old Libyan flag. Mohsen1248 ( talk) 15:53, 18 May 2017 (UTC)
{{flag|Libya|1977}}
→
Libya).
Frietjes (
talk) 16:49, 18 May 2017 (UTC)
Yes, this sort of poor coding was the reason why {{ country alias}} was created in the first place; there was no dynamic output for {country data X}. I'll have to have a think about the best way to fix this. The easiest thing, of course, would just be to roll back this particular family of templates to it's previous incarnation. It means we'll have to fix all of the invalid {country data X} calls as mentioned in the various discussions above. Primefac ( talk) 17:43, 18 May 2017 (UTC)
i hope i don't need to elaborate on the differences between, what the wiki page authors call, "Germany" in 1933-45 and the German Federal Republic of today. the template allows for oversimplifications of nation states in historical contexts. on the page Emil_Kijewski, the cyclist is representing "Germany" with a Nazi flag... i changed the content on the example pages myself using {{flag|Nazi Germany|1933}} or similar. it would be great if the flagathlete template would provide an option for this. it's just painful to see the wiki page of the German Federal Republic appear in the ajax preview when hovering over the nazi flag... — Preceding unsigned comment added by Schtom ( talk • contribs) 10:33, 20 July 2021 (UTC)
examples: UCI_Road_World_Championships, UCI Road World Championships - Men's Road Race, Emil_Kijewski
The result of the move request was: moved. ( closed by non-admin page mover) BilledMammal ( talk) 11:16, 28 May 2024 (UTC)
Template:Flagathlete →
Template:Flag athlete – Per
WP:TPN, we should follow standard English spelling, spacing, and capitalization
. A previous
WP:BOLDMOVE by
Rich Farmbrough was reverted by
Andrwsc (in 2009!), so I am bringing this to a full RM.
House
Blaster (
talk · he/him) 00:17, 21 May 2024 (UTC)
@
HouseBlaster: You might want to look at {{
flagicon}} and {{
flagdeco}} as well. --
Ahecht (
TALK
PAGE) 15:58, 28 May 2024 (UTC)