Template:Flag: Difference between revisions
Appearance
m 1 revision imported |
Replace flag helper with original Vrienden Universe implementation |
||
| Line 1: | Line 1: | ||
{{ | <includeonly>{{#if:{{Flag/data|{{{1|}}}|image}} | ||
|<span class="nowrap">[[File:{{Flag/data|{{{1|}}}|image}}|{{{size|23x15px}}}|border|alt=|link={{Flag/data|{{{1|}}}|link}}]] [[{{Flag/data|{{{1|}}}|link}}|{{#if:{{{name|}}}|{{{name}}}|{{Flag/data|{{{1|}}}|label}}}}]]</span> | |||
|<span class="error">Unknown flag: {{{1|not specified}}}</span> | |||
}}</includeonly><noinclude> | |||
== Usage == | |||
This template displays a small flag followed by a linked country or state name. | |||
<code><nowiki>{{flag|Tanoa Einsatzgruppen}}</nowiki></code> | |||
Optional parameters: | |||
* <code>size</code> changes the flag size; the default is <code>23x15px</code>. | |||
* <code>name</code> changes the visible name without changing the link. | |||
Flag records are maintained locally in [[Template:Flag/data]]. Only add confirmed file and article names. | |||
[[Category:Formatting templates]] | |||
</noinclude> | |||
Latest revision as of 07:20, 23 August 2026
Usage
[edit source]This template displays a small flag followed by a linked country or state name.
{{flag|Tanoa Einsatzgruppen}}
Optional parameters:
sizechanges the flag size; the default is23x15px.namechanges the visible name without changing the link.
Flag records are maintained locally in Template:Flag/data. Only add confirmed file and article names.