Difference between revisions of "Template:Flag data"
Jump to navigation
Jump to search
blackwiki>SiBr4 (Passing {{{name}}} through so Template:Getalias works with this template) |
blackwiki>RMCD bot (Notifying of move discussion on Template talk:Country data) |
||
| Line 1: | Line 1: | ||
| − | {{ {{{1}}} | alias = | flag alias = Flag placeholder.svg | name = {{{name|}}} | size = {{{size|}}} | border= | altlink = {{{altlink|}}} }}<noinclude> | + | <noinclude>{{User:RMCD bot/subject notice|1=Template:Flag data|2=Template talk:Country data#Requested move 23 September 2017 }} |
| + | </noinclude>{{ {{{1}}} | alias = | flag alias = Flag placeholder.svg | name = {{{name|}}} | size = {{{size|}}} | border= | altlink = {{{altlink|}}} }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 20:16, 23 September 2017
User:RMCD bot/subject notice {{ {{{1}}} | alias = | flag alias = Flag placeholder.svg | name = | size = | border= | altlink = }}
| 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 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.
| The above documentation is transcluded from Template:Flag data/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |