Hearthstone Wiki

Our community portal has been updated. Be sure to check out the projects if you wish to become an editor and help contribute the Hearthstone Wiki!

READ MORE

Hearthstone Wiki
(Created page with "<onlyinclude><includeonly>{{#if:{{{1|}}}|[[File:{{{1}}}.png|baseline|{{#if:{{{2|}}}|{{{2}}}|x16px}}|link=]]|}}</includeonly></onlyinclude>{{doc}} [[Category:General wiki templ...")
 
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{{1|}}}|[[File:{{{1}}}.png|baseline|{{#if:{{{2|}}}|{{{2}}}|x16px}}|link=]]|}}</includeonly></onlyinclude>{{doc}}
+
<onlyinclude><includeonly>[[File:{{#ifexist:File:{{{1}}}|{{{1}}}|<!--
  +
-->{{#switch:{{#sub:{{{1}}}|-4}}
[[Category:General wiki templates]]
 
  +
|.png|.svg|.jpg|.gif={{{1}}}
  +
|#default={{#ifexist:File:{{{1}}} icon.png|{{{1}}} icon.png|{{{1}}}.png}}
  +
}}
  +
}}<!--
  +
-->|{{{2|16px}}}|link={{{3|}}}|{{{1|{{{4}}}}}}]]</includeonly></onlyinclude>{{documentation}}[[Category:Icon templates| ]]

Latest revision as of 06:05, 3 April 2021

The following documentation is transcluded from Template:Icon/doc (edit):

This template is used for displaying an icon inline. It assumes icons are uploaded in PNG format.

Usage

{{icon|name|optional size|optional link|tooltip}}
  • Name is the filename of the icon. Usually minus the " icon.png" part.
  • An optional size can be provided in standard MediaWiki syntax. Default: 16px

Notes

  • Do not use this template with table templates that involve semantics.