Difference between revisions of "Template:I"
Jump to navigation
Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
(Created page with "[[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]]<noinclude> == About == This templated (named '''I''' as a shortcut for...") |
|||
Line 1: | Line 1: | ||
− | [[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]]<noinclude> | + | [[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{4}}}|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]]<noinclude> |
== About == | == About == | ||
This templated (named '''I''' as a shortcut for '''icon''') serves as an easy method to add icon sprites into a page or anywhere else using a single, standarized format. | This templated (named '''I''' as a shortcut for '''icon''') serves as an easy method to add icon sprites into a page or anywhere else using a single, standarized format. | ||
== Usage == | == Usage == | ||
− | The syntax of the template is <code><nowiki>{{I|<file-name>|<item-link>?|<tooltip-text>?}}</nowiki></nowiki></code>. All parameters default to the first one if those are not specified. | + | The syntax of the template is <code><nowiki>{{I|<file-name>|<item-link>?|<tooltip-text>?|<class>?}}</nowiki></nowiki></code>. All parameters default to the first one if those are not specified. |
== Examples == | == Examples == | ||
− | * <code><nowiki>{{I|Wooden | + | * <code><nowiki>{{I|Wooden Planks}}</nowiki></nowiki></code> → {{I|Wooden Planks}} |
− | * <code><nowiki>{{I|Wooden | + | * <code><nowiki>{{I|Wooden Planks|Cow}}</nowiki></nowiki></code> → {{I|Wooden Planks|Cow}} |
− | * <code><nowiki>{{I|Wooden | + | * <code><nowiki>{{I|Wooden Planks|Cow|Tooltip text.}}</nowiki></nowiki></code> → {{I|Wooden Planks|Cow|Tooltip text.}} |
</noinclude> | </noinclude> |
Revision as of 09:31, 18 December 2021
About
This templated (named I as a shortcut for icon) serves as an easy method to add icon sprites into a page or anywhere else using a single, standarized format.
Usage
The syntax of the template is {{I|<file-name>|<item-link>?|<tooltip-text>?|<class>?}}</nowiki>
. All parameters default to the first one if those are not specified.