Changes

Jump to: navigation, search

Template:Icon

787 bytes added, 10:39, 17 October 2014
Main template to use for all kinds of icons.
[[File:{{#switch:{{lc:{{{1|}}}}}
<!-- icons with a custom wiki page destination -->
| firedust = item-icon-firedust.png{{!}}link=Fire Dust
| saltpeter = item-icon-saltpeter.png{{!}}link=Saltpeter
| sulfur = item-icon-sulfur.png{{!}}link=Sulfur
| #default = Skill.png
}}|{{{size|32px}}}]]<noinclude>

==Syntax==
<pre>
{{icon|<name>|size=16px}}
</pre>

==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

; size
: OPTIONAL. Changes the size of the icon (default is 32px).

==Examples==
<pre>
{{icon|saltpeter}}
</pre>
2,804
edits

Navigation menu