Template talk:Country flagcountry2
From Wikipedia, the free encyclopedia
[edit] fix for alt tags in flag images
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}}}}}}]] [[{{{alias}}}|{{ #if: {{{name|}}} | {{{name}}} | {{{shortname 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:02, 22 July 2007 (UTC)
- I'm not sure if you are suggesting a unique "flag name alias" for each flag variant, or a single 'global' one for the whole country_data template. If its the former, then I am reluctant to add that kind of logic, as these templates are in danger of getting far too bloated already. If its the latter, then that's similar to an idea we discussed on Wikipedia:WikiProject Flag Template, and I will see what I can do. Andrwsc 23:35, 22 July 2007 (UTC)
-
- It would be the latter. I cannot find the previous discussion. Do you have a direct link? Thanks, And. --sony-youthpléigh 07:08, 23 July 2007 (UTC)