Jump to content

Template:Flag: Difference between revisions

From the Vrienden Universe, a fictional wiki
m 1 revision imported
Replace flag helper with original Vrienden Universe implementation
 
Line 1: Line 1:
{{country data {{{1|}}}|flag/core|name={{{name|{{{1|}}}}}}|variant={{{variant|{{{2|}}}}}}|size={{{size|}}}}}<noinclude>{{documentation}}</noinclude>
<includeonly>{{#if:{{Flag/data|{{{1|}}}|image}}
|<span class="nowrap">[[File:{{Flag/data|{{{1|}}}|image}}|{{{size|23x15px}}}|border|alt=|link={{Flag/data|{{{1|}}}|link}}]]&nbsp;[[{{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

This template displays a small flag followed by a linked country or state name.

{{flag|Tanoa Einsatzgruppen}}

Optional parameters:

  • size changes the flag size; the default is 23x15px.
  • name changes the visible name without changing the link.

Flag records are maintained locally in Template:Flag/data. Only add confirmed file and article names.