Difference between revisions of "Template:Icon link"
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!
(Undo revision 26387 by Tobias Alcaraz (talk)) Tag: Undo |
(This should cover all blocks and items...) |
||
Line 1: | Line 1: | ||
− | + | {{#if: {{{1|}}}|<span class="icon-link">[[{{{3|{{{1}}}}}}|{{#switch: {{{1}}} | |
+ | | Bedrock = <span class="sprite-icon pixel" style="background-position: 0 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Stone = <span class="sprite-icon pixel" style="background-position: -16px 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Cobblestone = <span class="sprite-icon pixel" style="background-position: -32px 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Moss Stone = <span class="sprite-icon pixel" style="background-position: -48px 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Stone Brick = <span class="sprite-icon pixel" style="background-position: -64px 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Obsidian = <span class="sprite-icon pixel" style="background-position: -80px 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Gravel = <span class="sprite-icon pixel" style="background-position: -96px 0;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Diamond Ore = <span class="sprite-icon pixel" style="background-position: 0 -656px;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> | ||
+ | | Gold Ore = <span class= | ||
<!-- | <!-- | ||
− | | | + | | = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--> | --> | ||
}}]]</span>}}<noinclude> | }}]]</span>}}<noinclude> |
Revision as of 23:14, 27 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
{{Icon link|Wooden Planks}}
→ Wooden Planks