Template:Icon
Creates an inline icon with predefined sizes using data from Module:Icon/data.
Parameter | Description | Type | Status | |
---|---|---|---|---|
code | 1 | The code of the desired icon. These can be found in the Module:Icon/data page.
| String | required |
size | size | A custom icon size. There are four predefined sizes: small (12px), normal (18px), medium (24px) and large (42px). While a custom size is an accepted value, it's recommended to use the predefined sizes for consistency across the wiki.
| String | optional |
link | link | Determines whether the link specified in its data is displayed next to the icon as text. If yes, it will use the name data as its display name.
| Boolean | optional |
text | text | Determines whether the name specified in its data is displayed next to the icon as text.
| Boolean | optional |
color | color | Accepts an HTML color code which changes the color of the link and/or text.
| String | optional |
icon | icon | Determines whether the icon is displayed. If no, there will be no icon, which allows for either text or link to be used on its own.
| Boolean | optional |
Syntax
{{icon|<code>|<size>|<link>|<border>|<showlabel>|<text>|<labelstyle>|<image>}}