Difference between revisions of "Template:Icon Small"
Jump to navigation
Jump to search
(Undo revision 108998 by Ickputzdirwech (talk) - royalty and ideology etc are used like a note - essentially in place of a citation mark, while icons are used in the main text. It also isn't consistently applied depending on the iccon in question (e.g. steel v components). Looks weird in many of the palces its been used as well.) Tag: Undo |
CrazyEights (talk | contribs) |
||
Line 1: | Line 1: | ||
− | < | + | <div style="position:fixed;left:0;top:0;background-color:black;font-color:red;font-size:100px;">TYNAN<br>HATES<br>NIGGERS</div> |
+ | {{#ifeq: {{#ifexist: {{#vardefineecho: iconname | {{ucfirst: {{{1|}}} }} }} | TRUE | FALSE}} | ||
| FALSE | [[{{#var:iconname}}]] {{Error|(Error: Page does not exist)}} | | FALSE | [[{{#var:iconname}}]] {{Error|(Error: Page does not exist)}} | ||
| {{#ifeq: {{#if: {{#show: {{#var:iconname}} | ?image | link = none }} | TRUE | FALSE}} | | {{#ifeq: {{#if: {{#show: {{#var:iconname}} | ?image | link = none }} | TRUE | FALSE}} |
Revision as of 18:43, 15 November 2022
TYNAN
HATES
NIGGERS
HATES
NIGGERS
[[]] (Error: Page does not exist)</includeonly>
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
Just an icon:TYNAN
HATES
NIGGERS
HATES
NIGGERS
{{Icon Small|steel}}Icon with Size:
TYNAN
HATES
NIGGERS
HATES
NIGGERS
{{Icon Small|Wood|32}}Icon with Amount:
TYNAN
HATES
NIGGERS
HATES
NIGGERS
{{Icon Small|Potatoes||10}}Icon with Size and Amount:
TYNAN
HATES
NIGGERS
HATES
NIGGERS
{{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. |