Template:Icon: Difference between revisions
(Corrected and expanded explanatory text) |
m (deprecated "Image:" → "File:") |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
Insert a GUI icon image in the text. Usage: <nowiki>{{Icon|1=name-of-file}}</nowiki>. | 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 | 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-" | Note: Do not include the "Icon-" prefix or the ".png" suffix in the template. | ||
Example: <nowiki>{{Icon|utilities-terminal}}</nowiki> yields {{Icon|utilities-terminal}}. | Example: <nowiki>{{Icon|utilities-terminal}}</nowiki> yields {{Icon|utilities-terminal}}. | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude | </noinclude>[[File:Icon-{{{1}}}.png|22px|link=]] |
Latest revision as of 21:14, 7 June 2020
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 . [[File:Icon-{{{1}}}.png|22px|link=]]