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!

(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

{{{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