Difference between revisions of "Template:Icon Small/doc"
Jump to navigation
Jump to search
m (category) |
m (category) |
||
Line 1: | Line 1: | ||
− | == Description== | + | == Description == |
− | Will give a small icon (16px default)< | + | Will give a small icon (16px default)<br> |
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. | ||
Line 10: | Line 10: | ||
| image size (optional, 16px resize by default) has to be an integer | | image size (optional, 16px resize by default) has to be an integer | ||
}}</pre> | }}</pre> | ||
+ | |||
=== Examples === | === Examples === | ||
Just an icon: {{Icon Small|steel}} | Just an icon: {{Icon Small|steel}} | ||
Line 17: | Line 18: | ||
<pre>{{Icon Small|Wood|32}}</pre> | <pre>{{Icon Small|Wood|32}}</pre> | ||
− | <includeonly>[[Category: | + | <includeonly>[[Category:Icon templates]]</includeonly> |
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 22:58, 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
{{Icon Small|steel}}
{{Icon Small|Wood|32}}