Difference between revisions of "Template:Icon"
From Project: Gorgon Wiki
Gorgonzola (talk | contribs) m |
Gorgonzola (talk | contribs) m (Documentation.) |
||
Line 8: | Line 8: | ||
| potato = item-icon-banana.png | | potato = item-icon-banana.png | ||
<!-- default uses the shop item naming convention --> | <!-- default uses the shop item naming convention --> | ||
− | | #default = item-icon-{{{1}}}.png | + | | #default = item-icon-{{{1|none}}}.png |
}}|{{{size|32px}}}]]<noinclude> | }}|{{{size|32px}}}]]<noinclude> | ||
− | + | __NOTOC__ | |
==Syntax== | ==Syntax== | ||
<pre> | <pre> | ||
Line 24: | Line 24: | ||
==Parameters== | ==Parameters== | ||
; parameter 1 | ; parameter 1 | ||
− | : Name of the icon | + | : Name of the icon. See [[Item Icons Guide]] for available icons (eg. "firstaid"). If not provided, an empty box is shown. |
; size | ; size |
Revision as of 11:07, 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}}