Template talk:Flag icon/core
![]() | Template:Flag icon/core is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. This template does not have a testcases subpage. You can create the testcases subpage here. |
fix for alt tag text
[edit]Would it be possible to change the code to be as follows:
[[Image:{{
#if: {{{variant|}}} | {{{flag alias-{{{variant}}}}}} | {{{flag alias}}}
}}|{{
#if: {{{size|}}} | {{{size}}} | 22x20px
}}|border|Flag of {{{flag name alias|{{{alias}}}}}}]]
This change would allow for a "flag name alias" variable to be used in country_data template for countries where "alias" is not the same as "shortname alias". This variable would allow the alt text of flags to appear correctly. For example, in the case of Ireland, the alt text of the flag image would be able to read "Flag of Ireland" not "Flag of Republic of Ireland", as it does at present. The change would also allow related sporting flags (e.g. {{fb|Ireland}}
) to display alt tags correctly. --sony-youthpléigh 22:04, 22 July 2007 (UTC)
- Reply for similar question answered at Template talk:Country flagcountry2. Andrwsc 23:38, 22 July 2007 (UTC)
Translate to {{Country flagicon}}
[edit]{{editprotected}}
- Shouldn't this template be renamed to {{Country flagicon}}, the name without the 2 is redirect to this template, so it shouldn't be a problem to translate this template. Locos ~ epraix Beaste~praix 20:10, 24 May 2009 (UTC)
- It doesn't really matter, does it, since it's only a meta template, and should never be used directly. I'll let Andrew decide that in any case, I'm sure he has this on his watchlist. Amalthea 21:46, 24 May 2009 (UTC)
- Agree, I'm not sure why this is needed. The downside is that we would add a quarter million tasks to the job queue (I think) by this change, so we need a compelling reason before proceeding. — Andrwsc (talk · contribs) 04:57, 25 May 2009 (UTC)
- Then, let's keep the things as they are. Locos ~ epraix Beaste~praix 05:02, 25 May 2009 (UTC)
- Agree, I'm not sure why this is needed. The downside is that we would add a quarter million tasks to the job queue (I think) by this change, so we need a compelling reason before proceeding. — Andrwsc (talk · contribs) 04:57, 25 May 2009 (UTC)
- It doesn't really matter, does it, since it's only a meta template, and should never be used directly. I'll let Andrew decide that in any case, I'm sure he has this on his watchlist. Amalthea 21:46, 24 May 2009 (UTC)
Edit request on 1 June 2013
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change the size attribute from 22x20 to 24x16 23x15 pixels because most of national flags have ratio 3:2, that means the flagicon will be "full" (for example Italy). Many flags have ratio 2:1 (for example
Great Britain), that means the flagicon will be in fact 24x12 pixels.
And, especially, three national flags — Switzerland,
Vatican City and
Nepal will be in 16x16 pix size, because they are in 1:1 ratio. These flagicons are currently causing an ugliness of the wikitables, like in this example:
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
So, change the text of this template to this:
[[File:{{{flag alias}}}|24x16px|border |alt={{{alias}}}|link={{{alias}}}]]
Maiō T. (talk) 14:51, 1 June 2013 (UTC)
Not done for now: Hi Maiō, and thanks for the edit request. This would be a fairly major change to the template, and it would affect about 350,000 articles, so I think it needs some more discussion before we implement it. Could you post notices on Wikipedia talk:WikiProject Flag Template and WP:VPT letting users know about your proposed change, and then leave about a week for people to comment? If there are no objections after that then you can reactivate the {{edit protected}} template and I can make the change. Best — Mr. Stradivarius ♪ talk ♪ 13:59, 2 June 2013 (UTC)
Practically all contributors agree with the icon height of 15 pixels, as you see here. So, now is the right time to modify the template to 23x15 px. Thanks,
Maiō T. (talk) 00:32, 30 June 2013 (UTC)
Done. Thanks for all your work, and sorry that this has been sitting open for so long. Best — Mr. Stradivarius ♪ talk ♪ 12:15, 8 July 2013 (UTC)