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!

(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">[[{{{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=
 
<!--
 
<!--
| Grass = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
+
| = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{3|{{{1}}}}}}</span>
| Coarse Dirt = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Farmland = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Mycelium = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Gold Soil = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
-->
 
| Wood = <span class="sprite-icon pixel" style="background-position: 0 -112px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Wooden Planks = <span class="sprite-icon pixel" style="background-position: 0 -128px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Sapling = <span class="sprite-icon pixel" style="background-position: 0 -144px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!--
 
| Golden Sapling = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
-->
 
| Leaves = <span class="sprite-icon pixel" style="background-position: 0 -160px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!--
 
| Apple in Leaves = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Orange in Leaves = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Golden Apple in Leaves = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lemon in Leaves= <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
-->
 
| Apple = <span class="sprite-icon pixel" style="background-position: -16px -160px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Orange = <span class="sprite-icon pixel" style="background-position: -32px -160px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Golden Apple = <span class="sprite-icon pixel" style="background-position: -48px -160px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lemon = <span class="sprite-icon pixel" style="background-position: -64px -160px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Snow Block = <span class="sprite-icon pixel" style="background-position: -16px -176px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Ice = <span class="sprite-icon pixel" style="background-position: -32px -176px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!--
 
| Frosted Ice = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
-->
 
| Seaweed = <span class="sprite-icon pixel" style="background-position: -48px -176px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Coral = <span class="sprite-icon pixel" style="background-position: -64px -176px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lilypad = <span class="sprite-icon pixel" style="background-position: -80px -176px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Coral Lantern = <span class="sprite-icon pixel" style="background-position: -96px -176px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Redstone Torch = <span class="sprite-icon pixel" style="background-position: -272px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Button = <span class="sprite-icon pixel" style="background-position: -112px -192px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lever = <span class="sprite-icon pixel" style="background-position: -144px -192px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Pressure Plate = <span class="sprite-icon pixel" style="background-position: -176px -192px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Wooden Pressure Plate= <span class="sprite-icon pixel" style="background-position: -208px -192px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Piston = <span class="sprite-icon pixel" style="background-position: 0 -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Sticky Piston = <span class="sprite-icon pixel" style="background-position: -48px -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Dispenser = <span class="sprite-icon pixel" style="background-position: -96px -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Dropper = <span class="sprite-icon pixel" style="background-position: -112px -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Note Block = <span class="sprite-icon pixel" style="background-position: -128px -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Redstone Lamp = <span class="sprite-icon pixel" style="background-position: -144px -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| TNT = <span class="sprite-icon pixel" style="background-position: -176px -208px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Minecart Rail = <span class="sprite-icon pixel" style="background-position: -256px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Powered Minecart Rail = <span class="sprite-icon pixel" style="background-position: -272px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Activator Minecart Rail = <span class="sprite-icon pixel" style="background-position: -288px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Detector Minecart Rail = <span class="sprite-icon pixel" style="background-position: -304px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Wooden Door = <span class="sprite-icon pixel" style="background-position: 0 -640px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Iron Door = <span class="sprite-icon pixel" style="background-position: -32px -640px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Bamboo Door = <span class="sprite-icon pixel" style="background-position: -64px -640px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Doors = <span class="sprite-icon pixel" style="background-position: -96px -640px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Trap Door = <span class="sprite-icon pixel" style="background-position: 0 -272px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Iron Bars = <span class="sprite-icon pixel" style="background-position: -32px -272px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Wooden Fence = <span class="sprite-icon pixel" style="background-position: 0 -288px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Wooden Fence Gate = <span class="sprite-icon pixel" style="background-position: -48px -288px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Nether Brick Fence = <span class="sprite-icon pixel" style="background-position: 0 -304px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Nether Brick Fence Gate = <span class="sprite-icon pixel" style="background-position: -48px -304px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Fences = <span class="sprite-icon pixel" style="background-position: 0 -688px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Fence Gates = <span class="sprite-icon pixel" style="background-position: -32px -688px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Long Grass= <span class="sprite-icon pixel" style="background-position: 0 -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!-- TODO: Make Shrub and Dry Shrub into a single sprite. -->
 
| Shrub = <span class="sprite-icon pixel" style="background-position: -16px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Dry Shrub = <span class="sprite-icon pixel" style="background-position: -32px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Desert Shrub = <span class="sprite-icon pixel" style="background-position: -48px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Bamboo = <span class="sprite-icon pixel" style="background-position: -64px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Sugarcane = <span class="sprite-icon pixel" style="background-position: -80px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Yellow Flower = <span class="sprite-icon pixel" style="background-position: -112px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Red Flower = <span class="sprite-icon pixel" style="background-position: -128px -320px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Brown Mushroom = <span class="sprite-icon pixel" style="background-position: 0 -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Brown Mushroom Cap = <span class="sprite-icon pixel" style="background-position: -16px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Brown Mushroom Stem = <span class="sprite-icon pixel" style="background-position: -32px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Red Mushroom = <span class="sprite-icon pixel" style="background-position: -48px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Red Mushroom Cap = <span class="sprite-icon pixel" style="background-position: -64px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Red Mushroom Stem = <span class="sprite-icon pixel" style="background-position: -80px -336px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Sandstone = <span class="sprite-icon pixel" style="background-position: 0 -352px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Sand = <span class="sprite-icon pixel" style="background-position: -16px -352px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Clay Block = <span class="sprite-icon pixel" style="background-position: -32px -352px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Bricks = <span class="sprite-icon pixel" style="background-position: -48px -352px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Cactus = <span class="sprite-icon pixel" style="background-position: -64px -352px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Netherrack = <span class="sprite-icon pixel" style="background-position: 0 -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Nether Bricks = <span class="sprite-icon pixel" style="background-position: -16px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Red Nether Bricks = <span class="sprite-icon pixel" style="background-position: -32px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Soul Sand = <span class="sprite-icon pixel" style="background-position: -48px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Portal Stone = <span class="sprite-icon pixel" style="background-position: -64px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Portal Block = <span class="sprite-icon pixel" style="background-position: -80px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Glowstone = <span class="sprite-icon pixel" style="background-position: -112px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Bone Block = <span class="sprite-icon pixel" style="background-position: -128px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Cobweb = <span class="sprite-icon pixel" style="background-position: -144px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Monster Spawner = <span class="sprite-icon pixel" style="background-position: -160px -368px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Odd Torch = <span class="sprite-icon pixel" style="background-position: -288px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Portal Frame = <span class="sprite-icon pixel" style="background-position: 0 -384px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Filled Portal Frame = <span class="sprite-icon pixel" style="background-position: -16px -384px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Enderstone = <span class="sprite-icon pixel" style="background-position: -32px -384px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Healing Crystal = <span class="sprite-icon pixel" style="background-position: -64px -384px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Dragon Scale Block = <span class="sprite-icon pixel" style="background-position: -80px -384px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Ender Dragon Egg = <span class="sprite-icon pixel" style="background-position: -96px -384px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Wool = <span class="sprite-icon pixel" style="background-position: 0 -400px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!--
 
| Wools = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
TODO: Make the uncolored Glass and Wool sprites. (And a multi-colored Glass sprite).
 
Add all color variants too.
 
-->
 
| Glasses
 
| Glass = <span class="sprite-icon pixel" style="background-position: -256px -512px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Bamboo Block = <span class="sprite-icon pixel" style="background-position: -48px -400px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Bookshelf = <span class="sprite-icon pixel" style="background-position: -64px -400px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!-- TODO: Add all Stairs. -->
 
| Stairs = <span class="sprite-icon pixel" style="background-position: -272px -656px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!-- TODO: Add all Slabs. -->
 
| Slabs = <span class="sprite-icon pixel" style="background-position: -288px -656px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Slime Block = <span class="sprite-icon pixel" style="background-position: -80px -400px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Lemon Block = <span class="sprite-icon pixel" style="background-position: -96px -400px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Hay Bale = <span class="sprite-icon pixel" style="background-position: -112px -400px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Pumpkin = <span class="sprite-icon pixel" style="background-position: -112px -416px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Jack-o'-Lantern = <span class="sprite-icon pixel" style="background-position: -128px -416px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| J = <span class="sprite-icon pixel" style="background-position: 0 -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Barrier = <span class="sprite-icon pixel" style="background-position: -16px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Zombie Head = <span class="sprite-icon pixel" style="background-position: -32px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Skeleton Head = <span class="sprite-icon pixel" style="background-position: -48px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Creeper Head = <span class="sprite-icon pixel" style="background-position: -64px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Ender Dragon Head = <span class="sprite-icon pixel" style="background-position: 0 -672px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Mob Head = <span class="sprite-icon pixel" style="background-position: -144px -448px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Cake = <span class="sprite-icon pixel" style="background-position: 0 -464px;"></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>
 
| 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>
 
| Lava = <span class="sprite-icon pixel" style="background-position: -64px -544px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Acid = <span class="sprite-icon pixel" style="background-position: -128px -544px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Magma Block = <span class="sprite-icon pixel" style="background-position: 0 -608px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Fire = <span class="sprite-icon pixel" style="background-position: -64px -608px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!-- TODO: Add all Carpets, Balloons, and Dyes versions. -->
 
| Carpets = <span class="sprite-icon pixel" style="background-position: -304px -656px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Balloons = <span class="sprite-icon pixel" style="background-position: -256px -432px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
| Dyes = <span class="sprite-icon pixel" style="background-position: -272px -352px;"></span><span class="sprite-text">{{{2|{{{1}}}}}}</span>
 
<!--
 
| = <span class="sprite-icon pixel" style="background-position: ;"></span><span class="sprite-text">{{{2|{{{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