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!
(Oh crap, I forgot that there's no block combinations in here :0) |
|||
Line 1: | Line 1: | ||
{{#if: {{{1|}}}|<span class="icon-link">[[{{{1}}}|{{#switch: {{{1}}} | {{#if: {{{1|}}}|<span class="icon-link">[[{{{1}}}|{{#switch: {{{1}}} | ||
+ | | Bedrock = <span class="sprite-icon pixel" style="background-position": 0 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | Stone = <span class="sprite-icon pixel" style="background-position": -16px 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | Cobblestone = <span class="sprite-icon pixel" style="background-position": -32px 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | Moss Stone = <span class="sprite-icon pixel" style="background-position": -48px 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | Stone Brick = <span class="sprite-icon pixel" style="background-position": -64px 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | Obsidian = <span class="sprite-icon pixel" style="background-position": -80px 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | Gravel = <span class="sprite-icon pixel" style="background-position": -96px 0;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
+ | | = <span class="sprite-icon pixel" style="background-position": ;><span class="sprite-text">{{{1}}}</span>]] | ||
| Wooden Planks = <span class="sprite-icon pixel" style="background-position: 0 -128px;"></span><span class="sprite-text">{{{1}}}</span> | | Wooden Planks = <span class="sprite-icon pixel" style="background-position: 0 -128px;"></span><span class="sprite-text">{{{1}}}</span> | ||
− | |||
}}]]</span>}}<noinclude> | }}]]</span>}}<noinclude> | ||
== About == | == About == |
Revision as of 11:49, 23 December 2021
About
This template (named Ilink as a shortcut for icon link) 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 {{Ilink|<name>|<link>|<displayed-name>?|<tooltip-text>?|<class>?}}</nowiki>
. All parameters default to the first one if those are not specified.
Examples
{{Ilink|Wooden Planks}}</nowiki>
→ Wooden Planks