Difference between revisions of "Template:Icon/doc"
Jump to navigation
Jump to search
Theaetetus (talk | contribs) (→Examples: Added missing examples.Also added examples of everything at 32px. Looks like I have some assets to upload...) |
Theaetetus (talk | contribs) (→Usage: + list of acceptable params. deprecated a few) |
||
Line 2: | Line 2: | ||
== Usage == | == Usage == | ||
<pre>{{icon | <pre>{{icon | ||
− | | type (metal/plasteel/cloth/ | + | | type (metal/plasteel/cloth/etc) <-- determines image displayed and sets alt text |
| amount | | amount | ||
| image size (optional, 16px resize by default) | | image size (optional, 16px resize by default) | ||
| image position (optional, use default settings) | | image position (optional, use default settings) | ||
}}</pre> | }}</pre> | ||
+ | |||
+ | ===== List of available types ===== | ||
+ | *wood | ||
+ | *steel | ||
+ | *plasteel | ||
+ | *cloth | ||
+ | *devilstrand | ||
+ | *synthread | ||
+ | *hyperweave | ||
+ | *stone | ||
+ | *silver | ||
+ | *gold | ||
+ | *uranium | ||
+ | *potato | ||
+ | *agave | ||
+ | *berries | ||
+ | *bmeat | ||
+ | *smeat | ||
+ | *hmeat | ||
+ | *muffalo | ||
+ | *npaste | ||
+ | *simple | ||
+ | *fine | ||
+ | *lavish | ||
+ | *survival | ||
+ | *shell | ||
+ | *debris | ||
+ | *slag | ||
+ | *component | ||
+ | *herbal | ||
+ | *medicine | ||
+ | *glitterworld | ||
+ | *corn | ||
+ | *hops | ||
+ | *rice | ||
+ | *milk | ||
+ | |||
+ | ===== List of deprecated types ===== | ||
+ | |||
+ | *metal (superseded by: steel) | ||
+ | *uran (superseded by: uranium) | ||
+ | *med (superseded by: medicine) | ||
+ | *muffalo (superseded by: bmeat) | ||
+ | *boomrat (superseded by: smeat) | ||
+ | *squirell (sic) (superseded by:smeat) | ||
+ | *missile (does not exist in vanilla)</pre> | ||
=== Examples === | === Examples === |
Revision as of 08:05, 21 July 2016
A minimalist helper template to quickly create a resource icon.
Usage
{{icon | type (metal/plasteel/cloth/etc) <-- determines image displayed and sets alt text | amount | image size (optional, 16px resize by default) | image position (optional, use default settings) }}
List of available types
- wood
- steel
- plasteel
- cloth
- devilstrand
- synthread
- hyperweave
- stone
- silver
- gold
- uranium
- potato
- agave
- berries
- bmeat
- smeat
- hmeat
- muffalo
- npaste
- simple
- fine
- lavish
- survival
- shell
- debris
- slag
- component
- herbal
- medicine
- glitterworld
- corn
- hops
- rice
- milk
List of deprecated types
- metal (superseded by: steel)
- uran (superseded by: uranium)
- med (superseded by: medicine)
- muffalo (superseded by: bmeat)
- boomrat (superseded by: smeat)
- squirell (sic) (superseded by:smeat)
- missile (does not exist in vanilla)
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 |