Template:Icon: Difference between revisions
Jump to navigation
Jump to search
Gorgonzola (talk | contribs) mNo edit summary |
Gorgonzola (talk | contribs) m Fix butter icon title |
||
| Line 5: | Line 5: | ||
| sulfur = item-icon-sulfur.png{{!}}link=Sulfur | | sulfur = item-icon-sulfur.png{{!}}link=Sulfur | ||
<!-- foods which have similar looking icons, using mouseover title --> | <!-- foods which have similar looking icons, using mouseover title --> | ||
| butter = item-icon-butter.png{{!}} | | butter = item-icon-butter.png{{!}}Butter | ||
<!-- look-alike items for which we use the same icons (in alpha) --> | <!-- look-alike items for which we use the same icons (in alpha) --> | ||
| lemon = item-icon-banana.png | | lemon = item-icon-banana.png | ||
Revision as of 21:13, 17 October 2014
Syntax
{{icon|<name>|size=16px}}
Description
This template has several purposes:
- Always used instead of direct links, it can save many edits in the future.
- Reduces custom mediawiki code in the articles.
- Makes icons link to relevant article pages, instead of the default "File history" page.
Parameters
- parameter 1
- Name of the icon. See Item Icons Guide for available icons (eg. "firstaid"). If not provided, an empty box is shown.
- size
- OPTIONAL. Changes the size of the icon (default is 32px).
Examples
{{icon|saltpeter}}