Template:Icon: Difference between revisions

From KDE Wiki Sandbox
No edit summary
(Corrected and expanded explanatory text)
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 sufffix 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 16x16, since scaling down to this small size sometimes does not work well.
 
Note: Do not include the "Icon-" suffix or the ".png" sufffix in the template.
 
Example: <nowiki>{{Icon|utilities-terminal}}</nowiki> yields {{Icon|utilities-terminal}}.
 
[[Category:Template]]
[[Category:Template]]
</noinclude><span style="vertical-align:middle;">[[Image:Icon-{{{1}}}.png|14px|link=]]</span>
</noinclude><span style="vertical-align:middle;">[[Image:Icon-{{{1}}}.png|14px|link=]]</span>

Revision as of 16:39, 5 March 2012

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 16x16, since scaling down to this small size sometimes does not work well.

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

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