Difference between revisions of "Template:Icon Small/doc"
Jump to navigation
Jump to search
m (category) |
(fractions work perfectly well) |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
| name <-- determines image displayed, is a Pagename that has an image | | name <-- determines image displayed, is a Pagename that has an image | ||
| image size (optional, 16px resize by default) has to be an integer | | image size (optional, 16px resize by default) has to be an integer | ||
+ | | amount (optional) | ||
}}</pre> | }}</pre> | ||
Line 17: | Line 18: | ||
Icon with Size: {{Icon Small|Wood|32}} | Icon with Size: {{Icon Small|Wood|32}} | ||
<pre>{{Icon Small|Wood|32}}</pre> | <pre>{{Icon Small|Wood|32}}</pre> | ||
+ | |||
+ | Icon with Amount: {{Icon Small|Potatoes||10}} | ||
+ | <pre>{{Icon Small|Potatoes||10}}</pre> | ||
+ | |||
+ | Icon with Size and Amount: {{Icon Small|Chemfuel|32|150}} | ||
+ | <pre>{{Icon Small|Chemfuel|32|150}}</pre> | ||
<includeonly>[[Category:Icon templates]]</includeonly> | <includeonly>[[Category:Icon templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 15:38, 22 June 2022
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]
{{Icon Small|steel}}
{{Icon Small|Wood|32}}
{{Icon Small|Potatoes||10}}
Icon with Size and Amount: 150
{{Icon Small|Chemfuel|32|150}}