Template talk:Flagicon
| Template:Flagicon is permanently protected from editing, and can therefore only be edited by administrators, since it is a heavily used or visible template. Substantial changes should be proposed here, if the proposal is uncontroversial or has been discussed and is supported by consensus. Use {{edit protected}} to attract the attention of an administrator in such cases. Any contributor may edit the template's documentation to add usage notes, categories or interwiki links. |
| This is the talk page for discussing improvements to the Flagicon template. | |||
|---|---|---|---|
|
|||
| Archives: 1 | |||
| WikiProject Flag Template | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
[edit] Flag of Rome
{{editprotected}} Hi all. Would it be possible to add the flag of Rome to the template? Filename is Image:Flag of Rome.svg. Thanks Cdhaptomos talk–contribs 12:11, 8 February 2009 (UTC)
Not done This template is generally reserved for countries. Best, PeterSymonds (talk) 06:50, 13 February 2009 (UTC)
-
- Why? There are plenty of flags on it that aren't countries (like all 50 American States, Cornwall
, Abruzzo (an Italian region,
), Abu Dhabi
) so why not this one? Cdhaptomos talk–contribs 10:43, 14 February 2009 (UTC)
Added. You don't need administratorship to add new flags. It's a little confusing though.--Tim Thomason 04:18, 17 July 2010 (UTC)
- Why? There are plenty of flags on it that aren't countries (like all 50 American States, Cornwall
[edit] New parameter for accessibility
{{editprotected}}
While reviewing List of teams and cyclists in the 2009 Giro d'Italia I noticed an WP:ACCESSIBILITY problem: that article has several instances of flags, such as "
Lance Armstrong (USA)", in which the flag is purely decorative but still has a link. As per WP:ALT#Purely decorative images, if an image conveys no useful info other than what is already available in adjacent text, as is the case here with the "USA", the image should not have a link and should not have alt text.
To support this sort of usage of the {{flagicon}} template, I added a new "decorative=yes" parameter to the sandbox version of {{flagicon}}, documented the new parameter in Template:Flagicon/doc, and tested the result in Template:Flagicon/testcases. If this new parameter is not used, the behavior remains the same as before. Can you please install the sandbox change? This relies on a new template, {{country flagicon decorative2}}, which should be protected just as {{flagicon}} is protected. Thanks. Eubulides (talk) 01:32, 6 September 2009 (UTC)
Question: I don't understand the need for this. MOS:ICON says that icons should not be decorative, so adding a parameter to this template that allows decorative=yesseems I direct contradiction of that. Additionally, if you are going along adding in this parameter, you might as well change/remove the offending flags. Rambo's Revenge (talk) 09:30, 6 September 2009 (UTC)
Not done: I agree with Rambo's Revenge above. This would seem to contradict the guidelines for using the flag icons. - Rjd0060 (talk) 14:55, 6 September 2009 (UTC)
-
-
- The MOS:ICON guideline clearly allows and encourages the proposed change. MOS:ICON #Remember accessibility for the visually impaired says "Purely decorative icons, which convey no useful information other than what is already communicated by adjacent text, should use an empty link instead of alt text, so that they do not confuse screen readers." That is precisely what is being asked for here.
- The intended use for this new parameter is for templates like {{flagathlete}}, in which a purely decorative icon is used to make it easier to pick out countries in lists of contestants. Please see List of teams and cyclists in the 2009 Giro d'Italia #Teams for examples. Here, the flags are purely decorative in the technical (W3C) sense that they do not convey information other than what is already in adjacent text, and so therefore they should not have alt text or links; for details, please see WP:ALT#Purely decorative images. However, the flags are still encyclopedic, since they let sighted readers more easily pick out where (say) the French riders stood. Thus they are not used for "exclusively decorative purposes" in the sense of MOS:ICON #Do not solely decorate.
- The proposed change does not affect any existing usage of the template, and it clearly would help WP:ACCESSIBILITY for visually impaired readers of sections like List of teams and cyclists in the 2009 Giro d'Italia #Teams. Please don't reject it based on a misunderstanding of MOS:ICON.
- Eubulides (talk) 18:17, 6 September 2009 (UTC)
-
-
-
- Coming back to this, it also seems to be fine how it is. In checking the testcases page for alttext both your version and the current version seem to work in compliance with MOS. Rambo's Revenge (talk) 15:38, 9 September 2009 (UTC)
-
-
-
-
Not done If any change is to be made, it should not be to this template (flagicon). It makes more sense to change the internal code for {{flagathlete}} (which I have just done), similar to the previous changes to {{flag}} etc. — Andrwsc (talk · contribs) 16:12, 9 September 2009 (UTC)
-
-
[edit] Alt text should describe function of icon
{{editprotected}} Currently, "{{flagicon|Poland}}" generates a flag that wikilinks to the Poland article and contains the alt text "Flag of Poland". As per WP:ALT#Links, if an image links to a location other than to the image's file page, the image's alt text should describe the function of the link, not the appearance of the image. Therefore, the alt text here should say "Poland" (because that's what the linked-to article is about), not "Flag of Poland" (the image). To fix this, please install the straightforward sandbox patch to the auxiliary template {{Country flagicon2}}. Thanks. Eubulides (talk) 18:22, 9 October 2009 (UTC)
In progress We need more than just that patch. Any country data template that has an alt attributeparameter set will need adjustment or removal. That is often used when "the" is needed in front of the country name, such as "Flag of the United Kingdom" instead of "Flag of United Kingdom" by default. I will work on this. — Andrwsc (talk · contribs) 18:46, 9 October 2009 (UTC)
Done. All remnants of alt attributehave been removed, so the alt text simply matches the linked article in all cases. — Andrwsc (talk · contribs) 04:27, 14 October 2009 (UTC)
[edit] Request
Can we please get one for File:Rusyn flag.svg, for use above the box in Rusyn American? Badagnani (talk) 01:12, 28 November 2009 (UTC)
[edit] image link
{{editprotected}} Please consider removing the image link for this template. This template should behave as the {{flag}} template for organization which don't have country data. Compare:
United Nations (wiki code: {{flag|United Nations}})
United Nations (wiki code: {{flagicon|United Nations}} [[United Nations]])
Thanks, – Fuzzy – 15:55, 18 January 2010 (UTC)
- I would tend to agree. Let's leave this for a few days in case anyone has any reasons why this isn't a good idea. — Martin (MSGJ · talk) 16:38, 18 January 2010 (UTC)
- No, I strongly disagree. {{flagicon}} is used in thousands of instances to render the flag as a standalone image, without the corresponding wikilink, and in those cases, the image link is necessary. This is precisely why the former instance of wiki markup in the examples above (using {{flag}}) are preferred over the latter instance (and also see the notice very close to the top of the main documentation page at WP:WikiProject Flag Template). Occasionally I will start AWB runs to make these replacements, and I would encourage others to make those edits also. — Andrwsc (talk · contribs) 17:20, 18 January 2010 (UTC)
In many places, flag of state A is used to represent state B. For example, in
Galmudug the wikilink to Somalia is misguiding. See here for more examples of misleading links which redirect to a wrong country/state/organization. So what do you think should be the solution for such {{flagicon}}s? – Fuzzy – 00:35, 22 January 2010 (UTC)
- If Galmudug doesn't have a unique flag, then using {{noflag}} is probably the best solution. — Andrwsc (talk · contribs) 00:51, 22 January 2010 (UTC)
- But it has a flag -- the Somalian one. More precisely, many time a certain flag is used for several entities. – Fuzzy – 00:43, 23 January 2010 (UTC)
- I have just created Template:Country data Galmudug, so that should solve the problem. — Andrwsc (talk · contribs) 01:42, 23 January 2010 (UTC)
- You have solved the issue for one state. How about
Spanish State vs.
Spain? How about the inconsistency between {{flagicon}} and {{flagicon image}} (
Spanish State vs.
Spanish State)? – Fuzzy – 22:16, 23 January 2010 (UTC)
- If you really want a wikilink that points to Spanish State, then create Template:Country data Spanish State. We already have precedent for this sort of thing with {{flagicon|Nazi Germany}} vs {{flagicon|Germany|Nazi}}. The former is used frequently for WWII articles, and the latter is used for sports results from that era (e.g. {{fb|Germany|Nazi}} is used on 1938 FIFA World Cup etc.) — Andrwsc (talk · contribs) 02:35, 26 January 2010 (UTC)
- You have solved the issue for one state. How about
- I have just created Template:Country data Galmudug, so that should solve the problem. — Andrwsc (talk · contribs) 01:42, 23 January 2010 (UTC)
- But it has a flag -- the Somalian one. More precisely, many time a certain flag is used for several entities. – Fuzzy – 00:43, 23 January 2010 (UTC)
[edit] Haiti
Why Haiti-flagicon shows Russian flag? NoGo (talk) 07:13, 10 March 2010 (UTC)
It doesn't now. I can't find any evidence it ever did (
<--Russia, in case you're interested). What page did you seem them mixed up on?--Tim Thomason 04:23, 17 July 2010 (UTC)
[edit] Something may be wrong
Hello, please view 2011 NASCAR Sprint Cup Series#Calendar. It seems that
has messed up. Youdon't see
doing this so I believe there is a problem.--Nascar1996 Contributions / Guestbook 14:11, 17 August 2010 (UTC)
Fixed. User:Skier Dude had broken the template by adding a newline with this edit. — Andrwsc (talk · contribs) 14:37, 17 August 2010 (UTC)
- Thanks. --Nascar1996 Contributions / Guestbook 14:42, 17 August 2010 (UTC)
[edit] Wrong redirection - when clicking the flag of the British Mandate for Palestine
Clicking the flagicon of the British Mandate for Palestine currently redirects to "Palestinian Territories" and not "British Mandate for Palestine" ? (An Example:
). Please help me fix this mistake. TheCuriousGnome (talk) 17:43, 16 September 2010 (UTC)
Fixed. Created Template:Country data British Mandate for Palestine, so you will have to use {{flagicon|British Mandate for Palestine}}to get the desired link. — Andrwsc (talk · contribs) 17:55, 16 September 2010 (UTC)
[edit]
I'm not entirely certain, but shouldn't {{flagicon|United States of America|naval}} instead be the naval jack: File:Naval Jack of the United States.svg?
- No, it's the naval ensign, not the naval jack, that is produced by the
navalvariant. In the USA's case, the naval ensign happens to be the same as the national flag. (Several other countries are like this.) — Andrwsc (talk · contribs) 01:28, 31 March 2011 (UTC)
[edit] Wikilink to a different article?
Is there a way to use flagicon, but to have the embedded wikilink (that works when you click on the flag) to either be switched off or changed to a different article? --Bob (talk) 22:06, 30 March 2011 (UTC)
- Not easily done with this template; it would be better to create something new. Would something like this be ok:
{{flagicon link|country|variant|link=article}}? Would you want the alt attribute to be the name of the country, or the name of the article? Where would this be used—what do you have in mind? — Andrwsc (talk · contribs) 01:26, 31 March 2011 (UTC)- That would be good. An example for usage would be this:
AS Monaco FC, but instead of the link in the flag linking to France, it links to the French Football Federation. However, I would like to implement it more in the rugby national squad templates as a first step. I suppose a second template could be created using the one you suggested imbedded so that using the country data codes, such as FRA, the automatic link could be the FFF?? --Bob (talk) 04:19, 31 March 2011 (UTC)
- That would be good. An example for usage would be this:
[edit] Uruguay
Hiya {{flagicon}} for Uruguay seems not be working, i.e.
Any idea why? Thks Fmph (talk) 07:35, 3 April 2011 (UTC)
- It appears to be working now. I am guessing this was due to recent issues with the thumbnail image generation. See WP:VPT. Thanks! Plastikspork ―Œ(talk) 17:13, 3 April 2011 (UTC)
[edit] Imperial flag of Emperor of Russia
No
?--♫GoP♫TCN 11:57, 22 October 2011 (UTC)
[edit] Narrow flags
How come some flags are much smaller in height than others? Compare
with
for example. Formion (talk) 12:33, 26 November 2011 (UTC)
- Because different flags are different shapes. If you look at the infobox of Flag of the United Kingdom you will see it contains "Proportion: 1:2", which means that the height and width of the flag are in the ratio 1:2, i.e. the flag is twice as wide as it is high. Contrast this with the infobox for Flag of Italy, which says "Proportion: 2:3", indicating that the height and width of the flag are in the ratio 2:3 (i.e. the flag is 1.5 times as wide as it is high). The Flag of Switzerland (
) has a proportion of "1:1", i.e. it is square. Since the flagicons are all the same width, the height of each flagicon varies according to the official proportion of the flag. DH85868993 (talk) 02:42, 16 December 2011 (UTC)