Template:Flagicon image/doc: Difference between revisions
m (Updated template name.) |
(No difference)
|
Revision as of 15:30, 17 July 2024
This is a documentation subpage for Template:Flagicon image. It contains usage information, categories and other content that is not part of the original Template page. |
This template is used on many pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
Produces an icon for the supplied image parameter, of the same size, CSS class, etc. as images produced by Template:Flag icon. This template can be used for arbitrary images that are not included in any country data template.
Caution is advised if this is used in infoboxes, as flags are generally discouraged there, and additional concerns (such as not using flags purely for decoration, and not using them in an anachronistic manner) may apply. Further guidance is given at MOS:FLAGS.
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 Alfa.svg|border=}}
→
See also
{{ListFlag }}