More actions
Moved documentation from Template:Icon |
Template deprecated because it uses 10x more CPU |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Deprecated|user= [[User:Arin Mara|Arin Mara]] ([[User talk:Arin Mara|talk]]) 18:30, 22 May 2022 (UTC)|"Due to the way pages are loaded and cached, this template consumes 10x CPU time usage compared to using regular image links. Just use regular image links, see [[Icons]] for a list of icon-images."}} | |||
== Syntax == | == Syntax == | ||
The function takes up to three parameters. Each of the parameters are optional, while still allowing for some customization if need be. | The function takes up to three parameters. Each of the parameters are optional, while still allowing for some customization if need be. | ||
| Line 15: | Line 16: | ||
== Examples == | == Examples == | ||
* <code><nowiki>{{icon|point}}</nowiki></code> → {{icon|point}} ''(it will use the default size and no mouse-over tooltip)'' | * <code><nowiki>{{icon|point}}</nowiki></code> → {{icon|point}} ''(it will use the default size and no mouse-over tooltip)'' | ||
* <code><nowiki>{{icon|||Stay put with a web!</nowiki></code> → {{icon|||Stay put with a web!}} ''(default icon and size was used since no first argument was given)'' | * <code><nowiki>{{icon|||Stay put with a web!}}</nowiki></code> → {{icon|||Stay put with a web!}} ''(default icon and size was used since no first argument was given)'' | ||
* <code><nowiki>{{icon|warp scrambler|16|No MWD for you!}}</nowiki></code> → {{icon|warp scrambler|16|No MWD for you!}} ''(smaller icon, could be used inside a paragraph without breaking the line height)'' | * <code><nowiki>{{icon|warp scrambler|16|No MWD for you!}}</nowiki></code> → {{icon|warp scrambler|16|No MWD for you!}} ''(smaller icon, could be used inside a paragraph without breaking the line height)'' | ||
<includeonly>[[Category:Image templates]]</includeonly> | |||
<includeonly>[[Category: | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||