Template talk:Flagicon

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Flag Template
The world flag 2006.svg
This template is within the scope of WikiProject Flag Template, a collaborative effort to improve and manage Wikipedia's flag icon templates and related resources. If you would like to participate or have any questions, please visit the project page.
 

Contents

[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 talkcontribs 12:11, 8 February 2009 (UTC)

N 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 Cornwall, Abruzzo (an Italian region, Abruzzo), Abu Dhabi Abu Dhabi (emirate)) so why not this one? Cdhaptomos talkcontribs 10:43, 14 February 2009 (UTC)
Rome Added. You don't need administratorship to add new flags. It's a little confusing though.--Tim Thomason 04:18, 17 July 2010 (UTC)

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

Pictogram voting question.svg 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=yes seems 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)
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)
N 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)
That works for me too. Thanks! Eubulides (talk) 19:11, 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)

Crystal Clear app clock-orange.svg In progress We need more than just that patch. Any country data template that has an alt attribute parameter 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)
YesY Done. All remnants of alt attribute have 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:

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 Somalia 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 Spain Spanish State vs.  Spain? How about the inconsistency between {{flagicon}} and {{flagicon image}} (Spain 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)

[edit] Haiti

Why Haiti-flagicon shows Russian flag? NoGo (talk) 07:13, 10 March 2010 (UTC)

Haiti It doesn't now. I can't find any evidence it ever did (Russia <--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 Texas has messed up. Youdon't see North Carolina 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: Palestinian territories). 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] United States navy

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 naval variant. 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: France 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)
Wow, a change like that would affect several tens of thousands of articles. I'd like to see some discussion at WT:FOOTY and WT:RU before something like this gets deployed. — Andrwsc (talk · contribs) 04:38, 31 March 2011 (UTC)

[edit] Uruguay

Hiya {{flagicon}} for Uruguay seems not be working, i.e. Uruguay 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 Imperial Standard of the Emperor of Russia (1858–1917).svg?--♫GoP♫TCN 11:57, 22 October 2011 (UTC)

[edit] Narrow flags

How come some flags are much smaller in height than others? Compare United Kingdom with Italy 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 (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)
Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox