Difference between revisions of "Template:I"

From Mine Blocks Wiki
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
| name15 = Diamond hoe
+
| name16 = Diamond hoe
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 71: Line 71:
 
| name14 = Iron shovel
 
| name14 = Iron shovel
 
| name15 = Diamond shovel
 
| name15 = Diamond shovel
| name15 = Diamond hoe
+
| name16 = Diamond hoe
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 21:38, 20 December 2021

{{{1}}}

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>Wooden Planks
  • {{I|Wooden Planks|Cow}}</nowiki>Wooden Planks
  • {{I|Wooden Planks|Cow|Tooltip text.}}</nowiki>Tooltip text.
{{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
}}

Wooden sword Stone sword Golden sword Iron sword Diamond sword Wooden axe Stone axe Golden axe Iron axe Diamond axe Wooden shovel Stone shovel Golden shovel Iron shovel Diamond shovel Diamond hoe