Difference between revisions of "Template:Icon Small"
Jump to navigation
Jump to search
(First character is now always uppercase, also added some checks that will give back info whats gone wrong. so it's easier to use) |
m (Updating Documentation) |
||
Line 3: | Line 3: | ||
|{{#ifeq: {{#ifexist: {{#show: {{#var:name}} | ?image | link = none }}| TRUE | FALSE}}| FALSE | [[{{#var:name}}]] (Page has no "Image") | |{{#ifeq: {{#ifexist: {{#show: {{#var:name}} | ?image | link = none }}| TRUE | FALSE}}| FALSE | [[{{#var:name}}]] (Page has no "Image") | ||
|[[{{#show: {{#var:name}} | ?image | link = none }}|{{#if:{{{2|}}}|{{{2|}}}|16}}px|link={{#var:name}}]] | |[[{{#show: {{#var:name}} | ?image | link = none }}|{{#if:{{{2|}}}|{{{2|}}}|16}}px|link={{#var:name}}]] | ||
− | }} }}</onlyinclude><noinclude> | + | }} }}</onlyinclude> |
− | + | <noinclude> | |
− | + | {{documentation}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Revision as of 21:14, 29 May 2020
[[]](Page does not exist)
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 | amount (optional) }}
Examples
{{Icon Small|steel}}
{{Icon Small|Wood|32}}
{{Icon Small|Potatoes||10}}
{{Icon Small|Chemfuel|32|150}}
The above documentation is transcluded from Template:Icon Small/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |