Difference between revisions of "Template:Flagicon image"

From blackwiki
Jump to navigation Jump to search
test>SiBr4
(Unbordered transparent image if first parameter is empty or undefined (see talk page))
m (17 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="flagicon">[[File:{{#if:{{{1|}}}|{{{1}}}|Flag placeholder.svg}}|{{{size|23x15px}}}|{{{border|{{#if:{{{1|}}}|border}}}}} |alt=|link=]]</span><noinclude>{{documentation}}</noinclude>
+
<span class="flagicon">[[File:{{#if:{{{1|}}}|{{{1}}}|Flag placeholder.svg}}|{{{size|23x15px}}}|{{{border|{{#if:{{{1|}}}|border}}}}} |alt=|link={{{link|}}}]]</span><noinclude>{{documentation}}</noinclude>

Latest revision as of 10:25, 7 September 2020

Template documentation[view] [edit] [history] [purge]

Produces an icon for the supplied image parameter, of the same size, CSS class, etc. as images produced by Template:Flagicon. This template can be used for arbitrary images that are not included in any country data template.

Please do not use this template to render non-free images, which would also not be acceptable within a country data template.

Usage
{{flagicon image|image name|size=optional|border=optional|link=optional}}
Examples
{{flagicon image|Red flag.svg}}
{{flagicon image|Red flag.svg|size=30x20px|link=Japan}}
{{flagicon image|ICS Alpha.svg|border=}}

See also

{{ListFlag}}