Difference between revisions of "Template:Flag data/doc"
Jump to navigation
Jump to search
imported>Paine Ellsworth m (update /doc) |
imported>Tholme |
||
| Line 5: | Line 5: | ||
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]] (< | + | * {{flagicon|}} [[Western Sahara]] (<code><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></code>) |
which looks the same as | which looks the same as | ||
| − | * {{noflag|[[Western Sahara]]}} (< | + | * {{noflag|[[Western Sahara]]}} (<code><nowiki>{{noflag|[[Western Sahara]]}}</nowiki></code>) |
== Comparison: with and without flag == | == Comparison: with and without flag == | ||
| − | * {{flagicon|}} [[Western Sahara]] (< | + | * {{flagicon|}} [[Western Sahara]] (<code><nowiki>{{flagicon|}} [[Western Sahara]]</nowiki></code>) – internally transcludes {{tl|Flag data}} |
| − | * {{flagicon|Western Sahara}} [[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]]. | ||
Revision as of 19:36, 3 June 2019
| 40px | 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. |
| 40px | This template is used on approximately 4,900 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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:
- File:Flag placeholder.svg Western Sahara (
{{flagicon|}} [[Western Sahara]])
which looks the same as
- Template:Noflag (
{{noflag|[[Western Sahara]]}})
Comparison: with and without flag
- File:Flag placeholder.svg Western Sahara (
{{flagicon|}} [[Western Sahara]]) – internally transcludes {{Flag data}} - 23x15px Western Sahara (
{{flagicon|Western Sahara}} [[Western Sahara]]) – internally transcludes {{Flag data Western Sahara}}
For further instructions, please see: WikiProject Flag Template.