Template:Icon/doc

From RimWorld Wiki
< Template:Icon
Revision as of 21:11, 25 February 2014 by AcDie (talk | contribs) (Created page with "A minimalist helper template to quickly create a resource icon. == Usage == <pre>{{icon | type (metal/stone/silver/food..) - used for icon | amount | image size (optional, ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A minimalist helper template to quickly create a resource icon.

Usage

{{icon 
| type (metal/stone/silver/food..) - used for icon 
| amount 
| image size (optional, 16px resize by default)
}}

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:
Steel Metal
Steel 1 1 Metal
Steel 5 5 Metal