Difference between revisions of "Template:Icon link"

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!

Line 162: Line 162:
 
| Cactus Cake = <span class="sprite-icon pixel" style="background-position: 0 -480px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Cactus Cake = <span class="sprite-icon pixel" style="background-position: 0 -480px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Nether Wart Block = <span class="sprite-icon pixel" style="background-position: -240px -512px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Nether Wart Block = <span class="sprite-icon pixel" style="background-position: -240px -512px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
| Melon = <span class="sprite-icon pixel" style="background-position: -112px -528px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
+
| Melon Block = <span class="sprite-icon pixel" style="background-position: -112px -528px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Water = <span class="sprite-icon pixel" style="background-position: 0 -544px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Water = <span class="sprite-icon pixel" style="background-position: 0 -544px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lava = <span class="sprite-icon pixel" style="background-position: -64px -544px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lava = <span class="sprite-icon pixel" style="background-position: -64px -544px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>

Revision as of 17:45, 25 December 2021


About

This template serves as an easy method to add icon sprites along with their link into a page or anywhere else using a single, standarized format.

Usage

The syntax of the template is {{Icon link|<name>|<link>|<displayed-name>?|<tooltip-text>?|<class>?}}. All parameters default to the first one if those are not specified.

Examples