Difference between revisions of "Template:Icon Small/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Initial Commit)
 
m (category)
Line 3: Line 3:
 
Image is taken from the page, so all pages that have a image should be able to display an icon of it.
 
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 inproper used
+
There are checks that will give some feedback when improper used
  
 
== Usage ==
 
== Usage ==
Line 17: Line 17:
 
<pre>{{Icon Small|Wood|32}}</pre>
 
<pre>{{Icon Small|Wood|32}}</pre>
  
[[Category:Template documentation]]
+
<includeonly>[[Category:Templates]]</includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 14:48, 5 June 2022

Description

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

{{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
}}

Examples

Just an icon: Steel

{{Icon Small|steel}}

Icon with Size: Wood

{{Icon Small|Wood|32}}