Template documentation follows
Visit Template:Icon/doc to edit this documentation. (How does this work?)
Pages using this template

This template is used to add an image as icon. By default, the image includes a border and links to the image page. The default dimensions of an icon are 22x18px.

Usage examples

Standard usage
{{icon|Flag of Texas.png}}
{{icon|File:Flag of Texas.png}}
No border (slightly larger image to compensate)
{{icon|Flag of Texas.png|border=}}
{{icon|Flag of Texas.png|link=}}
Custom link
{{icon|Flag of Texas.png|link=Texas}}
{{icon|Flag of Texas.png|size=30x24px}}
Mouseover text
{{icon|Flag of Texas.png|Flag of Texas}}Flag of Texas
Image placeholder (uses unlinked and unbordered transparent image)
Non-decorative flag image (removes the "icon" class to avoid the image being hidden if the code below is used)
{{icon|Flag of Texas.png|dec=}}

Removing icons from display

If you have a Wikia account, you can make icons created with this template not display by copying the following into Special:MyPage/wikia.css (or Special:MyPage/monobook.css if you use the Monobook skin):

.icon {display:none;}
Community content is available under CC-BY-SA unless otherwise noted.