Difference between revisions of "Template:Icon"

Jump to: navigation, search
(span tag destroyed centering of icon)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Insert a GUI icon image in the text. Usage: <nowiki>{{Image|1=icon-name}}</nowiki>. Note: Do not add the .png postfix to the name.
+
Insert a GUI icon image in the text. Usage: <nowiki>{{Icon|1=name-of-file}}</nowiki>.
 +
 
 +
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: <nowiki>{{Icon|utilities-terminal}}</nowiki> yields {{Icon|utilities-terminal}}.
 +
 
 
[[Category:Template]]
 
[[Category:Template]]
</noinclude><span style="vertical-align:sub;">[[Image:Icon-{{{1}}}.png|16px]]</span>
+
</noinclude>[[Image:Icon-{{{1}}}.png|22px|link=]]

Latest revision as of 10:57, 23 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=]]


This page was last edited on 23 July 2019, at 10:57. Content is available under Creative Commons License SA 4.0 unless otherwise noted.