Template talk:Flagof

Nepal in tables
Getting a weird sizing error with Nepal when used in a table. Observe: But outside of the table: Any ideas what could be causing this? Ibadibam (talk) 23:10, 25 November 2014 (UTC)
 * The template expands to Flag of Nepal.svg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nepal whether in a table or not. For some reason the empty parameter (the double pipe between the size and alt text) causes the flag image to display in its default size if inside a table. I added a space between the pipes, which is how flag avoids this issue. SiBr4 (talk) 08:56, 26 November 2014 (UTC)

Template not working with US or German flags
Hello! I'd just like to report that this template currently isn't working for either the US or German flags. As of the time of this post, both the US and Germany flags do not show up. Most everything else I've tried seems to work. Here's an example:


 * , United States
 * , United States
 * , United States

I discovered this while browsing List of flag names and noticed that the US flag wasn't showing up. If someone would be so kind as to take a look at this, I'd appreciate it! Thanks a bunch! Phuzion (talk) 14:36, 5 May 2020 (UTC) PAGE ]]) 21:23, 5 May 2020 (UTC)
 * Module:CountryData was failing to parse these countries' data templates after [//en.wikipedia.org/w/index.php?title=Special:Contributions&offset=202004302112&limit=13&target=Ahecht recent edits] by to make them substitutable. It is fixed now, although the module should probably be changed to not require such specific string patterns to consider a data template valid. SiBr4  (talk ) 18:41, 5 May 2020 (UTC)
 * Thanks. That use case didn't show up in the testcases on those templates. Ideally, we'd import all the country data into a Lua module, and then there's a whole slew of templates that could be simplified (I can't count how many pages excees the post-expand include size limit because they use which calls   which calls {{tlx|flagicon/core| {{{flag alias-{{{variant}}} }} which finally displays the flag, quadrupling the post-expand include size. --Ahecht ([[User talk:Ahecht|TALK

Redundant linking
The flag and the display name both link to the same article, e.g. Flag of Spain. I think the link from the flag should be removed, or retargeted to the actual file page – File:Flag of Spain.svg or whatever other variant is used – because the flag in question can be different from the default one mentioned first in the article. However, I can't figure out how to do either. --Theurgist (talk) 02:31, 2 February 2023 (UTC)