Template:Icon Small/doc

From RimWorld Wiki
< Template:Icon Small
Revision as of 15:38, 22 June 2022 by Ickputzdirwech (talk | contribs) (fractions work perfectly well)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description[edit]

Will give a small icon (16px default)
Image is taken from the page, so all pages that have a image should be able to display an icon of it.

There are checks that will give some feedback when improper used

Usage[edit]

{{Icon Small
| name <-- determines image displayed, is a Pagename that has an image
| image size (optional, 16px resize by default) has to be an integer
| amount (optional)
}}

Examples[edit]

Just an icon: Steel

{{Icon Small|steel}}

Icon with Size: Wood

{{Icon Small|Wood|32}}

Icon with Amount: Potatoes 10

{{Icon Small|Potatoes||10}}

Icon with Size and Amount: Chemfuel 150

{{Icon Small|Chemfuel|32|150}}