Template:Country data/doc: Difference between revisions

From Azupedia
Jump to navigation Jump to search
imported>Fire
ページの作成:「{{documentation subpage}} {{template shortcut|Country data}} {{二次利用}} <code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transclu…」
 
No edit summary
 
Line 8: Line 8:
which looks the same as
which looks the same as
* {{noflag|[[Western Sahara]]}} (<code><nowiki>{{noflag|[[Western Sahara]]}}</nowiki></code>)
* {{noflag|[[Western Sahara]]}} (<code><nowiki>{{noflag|[[Western Sahara]]}}</nowiki></code>)
 
== Comparison: with and without flag ==
== Comparison: with and without flag ==
* {{flagicon|}} [[Western Sahara]] (<code><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></code>) – internally transcludes {{tl|Flag data}}
* {{flagicon|}} [[Western Sahara]] (<code><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></code>) – internally transcludes {{tl|Flag data}}

Latest revision as of 08:00, 23 January 2023

Template:Country data/doc is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as flag, flagicon, 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:

which looks the same as

Comparison: with and without flag

For further instructions, please see: WikiProject Flag Template.