Template:Flag data
{{ {{{1}}} | alias = | flag alias = Flag placeholder.svg | name = | size = 25x17px | border= | altlink = }}
This template is used on many pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
Template:Flag data
is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag
, flag icon
, and others.
This template is transcluded if a flag template is used without the first parameter, or with an empty first parameter. It can be used to place an "invisible" flag icon, as an alternative to using {{Noflag }} (which adds a <span>
tag with padding at the size of a flag icon), if one item in a list of items with flags shouldn't have a flag icon. For example:
- Western Sahara (
{{flag icon|}} [[Western Sahara]]
)
which looks the same as
- Template:Noflag (
{{noflag|[[Western Sahara]]}}
)
Comparison: with and without flag
- Western Sahara (
{{flag icon|}} [[Western Sahara]]
) – internally transcludes {{Flag data }} - Template:Country data Western Sahara Western Sahara (
{{flag icon|Western Sahara}} [[Western Sahara]]
) – internally transcludes {{Country data Western Sahara }}
For further instructions, please see: WikiProject Flag Template.