Difference between revisions of "Template:Icon"
From Project: Gorgon Wiki
Gorgonzola (talk | contribs) m (Try to get label if image is missing.) |
Gorgonzola (talk | contribs) m |
||
Line 8: | Line 8: | ||
| beet = item-icon-beet.png{{!}}Beet | | beet = item-icon-beet.png{{!}}Beet | ||
| butter = item-icon-butter.png{{!}}Butter | | butter = item-icon-butter.png{{!}}Butter | ||
+ | | beet = item-icon-grape.png{{!}}Grapes | ||
| lemon = item-icon-banana.png{{!}}Lemon | | lemon = item-icon-banana.png{{!}}Lemon | ||
+ | | orange = item-icon-orange.png{{!}}Orange | ||
| potato = item-icon-banana.png{{!}}Potato | | potato = item-icon-banana.png{{!}}Potato | ||
| redapple = item-icon-redapple.png{{!}}Red Apple | | redapple = item-icon-redapple.png{{!}}Red Apple |
Revision as of 13:18, 21 October 2014
Syntax
{{icon|<name>|size=16px}}
Description
This template has several purposes:
- Makes some item icons link to relevant article pages instead of the default "File history" page (eg. Saltpeter).
- It can save many edits in the future, for example certain foods that have the same icon now (banana & lemon), could have a unique icon later. The article refers to the individual foods, so the article won't need updating.
- Adds mouseover title. TODO: add a mouseover popup with the title (very handy in recipes tables)
- Reduces custom mediawiki code in the articles.
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}}