Difference between revisions of "Template:Icon"

Jump to: navigation, search
(use 22px instead of 14px)
m (Add class for dark theme)
Line 9: Line 9:
  
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude><span style="vertical-align:middle;">[[Image:Icon-{{{1}}}.png|22px|link=]]</span>
+
</noinclude><span style="vertical-align:middle;" class="mono-icon">[[Image:Icon-{{{1}}}.png|22px|link=]]</span>

Revision as of 12:59, 21 July 2019

Insert a GUI icon image in the text. Usage: {{Icon|1=name-of-file}}.

The icon should be named Icon-name-of-file.png and preferably be uploaded in the size 22x22, since scaling down to this small size sometimes does not work well.

Note: Do not include the "Icon-" prefix or the ".png" suffix in the template.

Example: {{Icon|utilities-terminal}} yields Icon-utilities-terminal.png. [[Image:Icon-{{{1}}}.png|22px|link=]]


Content is available under Creative Commons License SA 4.0 unless otherwise noted.