Template:StickerIcon: Difference between revisions

No edit summary
m (Text replacement - "== ([^=])" to "== $1")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span title="{{{1}}}">[[Image:StickerIcon{{{1|}}}.png|{{{s|16}}}px|link={{#if:{{{l|}}}|{{{l}}}|{{{1|Typeless}}}}}]]</span></includeonly><noinclude>
<includeonly><span title="{{{1}}}">[[File:StickerIcon{{#replace:{{{1|}}}| |}}.png|{{{s|16}}}px|link={{#switch:{{{l|}}}|Specials Direct=Specials: Direct|Specials Indirect=Specials: Indirect|}}]]</span></includeonly><noinclude>


==Usage==
==Usage==
<code><nowiki>{{StickerIcon|nameOfType|s=sizeInPixels|l=linkToPage}}</nowiki></code>
<code><nowiki>{{StickerIcon|nameOfType|s=sizeInPixels|l=linkToPage}}</nowiki></code>



Latest revision as of 00:34, April 13, 2022


Usage

{{StickerIcon|nameOfType|s=sizeInPixels|l=linkToPage}}

Leaving out a size defaults to 16px. Leaving out a link defaults to linking to the article with the same title as the icon given.