Template:Icon: Difference between revisions
Jump to navigation
Jump to search
Gorgonzola (talk | contribs) m Fix butter icon title |
Gorgonzola (talk | contribs) Add mouseover titles to the food icons. |
||
| Line 4: | Line 4: | ||
| saltpeter = item-icon-saltpeter.png{{!}}link=Saltpeter | | saltpeter = item-icon-saltpeter.png{{!}}link=Saltpeter | ||
| sulfur = item-icon-sulfur.png{{!}}link=Sulfur | | sulfur = item-icon-sulfur.png{{!}}link=Sulfur | ||
<!-- | <!-- Add mouseover title to help identify similar looking icons in the recipes table --> | ||
| banana = item-icon-banana.png{{!}}Banana | |||
| beet = item-icon-beet.png{{!}}Beet | |||
| butter = item-icon-butter.png{{!}}Butter | | butter = item-icon-butter.png{{!}}Butter | ||
| lemon = item-icon-banana.png{{!}}Lemon | |||
| lemon = item-icon-banana.png | | potato = item-icon-banana.png{{!}}Potato | ||
| potato = item-icon-banana.png | | redapple = item-icon-redapple.png{{!}}Red Apple | ||
<!-- default uses the shop item naming convention --> | <!-- default uses the shop item naming convention --> | ||
| #default = item-icon-{{{1|none}}}.png | | #default = item-icon-{{{1|none}}}.png | ||
Revision as of 20:59, 18 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}}