Difference between revisions of "Template:Flagicon image/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(prevent sandbox from being included in category)
imported>Great Brightstar
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
''Please do not use this template to render [[Wikipedia:Non-free content|non-free images]], which would also not be acceptable within a country data template.''
 
''Please do not use this template to render [[Wikipedia:Non-free content|non-free images]], which would also not be acceptable within a country data template.''
 
;Usage
 
;Usage
: <code><nowiki>{{flagicon image|image name|size=optional|border=optional}}</nowiki></code>
+
: <code><nowiki>{{flagicon image|image name|size=optional|border=optional|link=optional}}</nowiki></code>
 
;Examples
 
;Examples
 
: <code><nowiki>{{flagicon image|Red flag.svg}}</nowiki></code> → {{flagicon image|Red flag.svg}}
 
: <code><nowiki>{{flagicon image|Red flag.svg}}</nowiki></code> → {{flagicon image|Red flag.svg}}
: <code><nowiki>{{flagicon image|Red flag.svg|size=30x20px}}</nowiki></code> → {{flagicon image|Red flag.svg|size=30x20px}}
+
: <code><nowiki>{{flagicon image|Red flag.svg|size=30x20px|link=Japan}}</nowiki></code> → {{flagicon image|Red flag.svg|size=30x20px|link=Japan}}
 
: <code><nowiki>{{flagicon image|ICS Alpha.svg|border=}}</nowiki></code> → {{flagicon image|ICS Alpha.svg|border=}}
 
: <code><nowiki>{{flagicon image|ICS Alpha.svg|border=}}</nowiki></code> → {{flagicon image|ICS Alpha.svg|border=}}
 +
 +
== See also ==
 +
{{tl|ListFlag}}
  
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
[[Category:Flag template system]]
+
[[Category:Flag template system| ]]
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 17:37, 3 August 2020

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}}23x15px
{{flagicon image|Red flag.svg|size=30x20px|link=Japan}}30x20px
{{flagicon image|ICS Alpha.svg|border=}}File:ICS Alpha.svg

See also

{{ListFlag}}