Template:Icon/doc
< Template:Icon
Jump to navigation
Jump to search
Revision as of 18:31, 20 July 2016 by Theaetetus (talk | contribs) (→Examples: Added missing examples.Also added examples of everything at 32px. Looks like I have some assets to upload...)
A minimalist helper template to quickly create a resource icon.
Usage
{{icon | type (metal/plasteel/cloth/devilstrand/synthread/hyperweave/stone/silver/gold/potato/agave/berries/bmeat/smeat/hmeat/herbal/medicine/glitterworld...) - used for icon | amount | image size (optional, 16px resize by default) | image position (optional, use default settings) }}
Examples
Just an icon:
{{icon|metal}}
Icon with quantity: 10
{{icon|potato|10}}
Bigger icon with quantity: 250
{{icon|silver|250|32}} (size is in pixels)
Everything Available
16 px (default):
32 px:
Without a parameter
Using the template without any parameters will simply generate a icon, without anything other text.
Render and link
- Template will not generate a link, and will not be linkable (neither the text, nor the icon).
- However, mousing over the template will create a hover text with the full English rendering, for readability:
| class="text-right" | Metal | |
1 | class="text-right" | 1 Metal | |
5 | class="text-right" |5 Metal |