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!
(Testing animated images) |
(It works perfectly! :D) |
||
Line 50: | Line 50: | ||
| name14 = Iron shovel | | name14 = Iron shovel | ||
| name15 = Diamond shovel | | name15 = Diamond shovel | ||
− | | | + | | name16 = Diamond hoe |
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 71: | Line 71: | ||
| name14 = Iron shovel | | name14 = Iron shovel | ||
| name15 = Diamond shovel | | name15 = Diamond shovel | ||
− | | | + | | name16 = Diamond hoe |
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 21:38, 20 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.
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 }}