Difference between revisions of "Template:Flag data/doc"

From blackwiki
Jump to navigation Jump to search
imported>Wbm1058
imported>Vanisaac
m (→‎Comparison: with and without flag: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{documentation subpage}}
 
{{documentation subpage}}
 
{{template shortcut|Country data}}
 
{{template shortcut|Country data}}
{{high-use| 4,100 }}
+
{{high-use| 4250 }}
 
<code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <code>[[Template:flag|flag]]</code>, <code>[[Template:flagicon|flagicon]]</code>, and others.
 
<code>Template:{{PAGENAME}}</code> is an internal data container not intended to be transcluded directly. It is used indirectly by templates such as <code>[[Template:flag|flag]]</code>, <code>[[Template:flagicon|flagicon]]</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, as an alternative to using {{tl|noflag}} (which adds a {{tag|span|open}} 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:
 
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 {{tl|noflag}} (which adds a {{tag|span|open}} 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:
* {{flagicon|}} [[Western Sahara]] (<tt><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></tt>)
+
* {{flagicon|}} [[Western Sahara]] (<code><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></code>)
 
which looks the same as
 
which looks the same as
* {{noflag|[[Western Sahara]]}} (<tt><nowiki>{{noflag|[[Western Sahara]]}}</nowiki></tt>)
+
* {{noflag|[[Western Sahara]]}} (<code><nowiki>{{noflag|[[Western Sahara]]}}</nowiki></code>)
  
 
== Comparison: with and without flag ==
 
== Comparison: with and without flag ==
* {{flagicon|}} [[Western Sahara]] (<tt><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></tt>) – internally transcludes {{tl|Flag data}}
+
* {{flagicon|}} [[Western Sahara]] (<code><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></code>) – internally transcludes {{tl|Flag data}}
* {{flagicon|Western Sahara}} [[Western Sahara]] (<tt><nowiki>{{flagicon|Western Sahara}} [[Western Sahara]]</nowiki></tt>) – internally transcludes {{tl|Flag data Western Sahara}}
+
* {{flagicon|Western Sahara}} [[Western Sahara]] (<code><nowiki>{{flagicon|Western Sahara}} [[Western Sahara]]</nowiki></code>) – internally transcludes {{tl|Flag data Western Sahara}}
  
 
For further instructions, please see: [[Wikipedia:WikiProject Flag Template|WikiProject Flag Template]].
 
For further instructions, please see: [[Wikipedia:WikiProject Flag Template|WikiProject Flag Template]].
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:All country data templates| ]]
 
[[Category:All country data templates| ]]
 
[[Category:Country data templates| ]]
 
[[Category:Country data templates| ]]
</includeonly>
+
}}</includeonly>

Latest revision as of 04:49, 25 April 2020

Template:Flag 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.