Template:Flag data/doc: Difference between revisions
Jump to navigation
Jump to search
Randombell (talk | contribs) Created page with "{{documentation subpage}} {{template shortcut|Country data}} <code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <code>flag</code>, <code>flag icon</code>, 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,..." |
(No difference)
|
Latest revision as of 14:27, 14 August 2025
![]() | This is a documentation subpage for Template:Flag data. It contains usage information, categories and other content that is not part of the original template page. |
Template:Flag data/doc
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:
- Template:Flag icon/core Western Sahara (
{{flag icon|}} [[Western Sahara]]
)
which looks the same as
- Template:Noflag (
{{noflag|[[Western Sahara]]}}
)
Comparison: with and without flag
- Template:Flag icon/core Western Sahara (
{{flag icon|}} [[Western Sahara]]
) – internally transcludes {{Flag data}} - Template:Country data Western SaharaTemplate:Namespace detect showall Western Sahara (
{{flag icon|Western Sahara}} [[Western Sahara]]
) – internally transcludes {{Country data Western Sahara}}
For further instructions, please see: WikiProject Flag Template.