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!
(It works perfectly! :D) |
|||
Line 19: | Line 19: | ||
{{#if: {{{name16|}}}|<span class="ts-slide">[[File:{{{name16|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{class1}}}|link={{{link16|{{{name16}}}}}}|{{{3|{{{name16}}}}}}]]</span>}} | {{#if: {{{name16|}}}|<span class="ts-slide">[[File:{{{name16|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{class1}}}|link={{{link16|{{{name16}}}}}}|{{{3|{{{name16}}}}}}]]</span>}} | ||
</span> | </span> | ||
− | | #default = [[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{4}}}|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]] | + | | #default = [[File:{{{1|Invisible-sprite}}}.png|16x16px|class=item-icon pixel {{{4|}}}|link={{{2|{{{1}}}}}}|{{{3|{{{1}}}}}}]] |
}}<noinclude> | }}<noinclude> | ||
== About == | == About == |
Revision as of 07:46, 3 January 2022
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.
Examples
{{I|Wooden Planks}}</nowiki>
→{{I|Wooden Planks|Cow}}</nowiki>
→{{I|Wooden Planks|Cow|Tooltip text.}}</nowiki>
→
{{I | animated = true | name1 = Wooden sword | name2 = Stone sword | name3 = Golden sword | name4 = Iron sword | name5 = Diamond sword | name6 = Wooden axe | name7 = Stone axe | name8 = Golden axe | name9 = Iron axe | name10 = Diamond axe | name11 = Wooden shovel | name12 = Stone shovel | name13 = Golden shovel | name14 = Iron shovel | name15 = Diamond shovel | name16 = Diamond hoe }}