Template:Infobox block: Difference between revisions

Remove categories from non-mainspace and translation pages.
Use Template:InvSprite for actual tool icons
Line 13: Line 13:
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
}} }}
}} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
   #switch: {{ lc: {{{tool|}}} }}
   #switch: {{ lc: {{{tool|}}} }}
   | pick  | pickaxe  = [[File:Use-pickaxe.png|32px|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest]]
   | pick  | pickaxe  = [[File:Use-pickaxe.png|32px|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest]]
   | wooden pickaxe    = [[File:Grid Wooden Pickaxe.png|32px|link=Pickaxe|A wooden pickaxe or better is required to mine this block]]
   | wooden pickaxe    = {{InvSprite|Wooden Pickaxe|link=Pickaxe|title=A wooden pickaxe or better is required to mine this block}}
   | stone pickaxe    = [[File:Grid Stone Pickaxe.png|32px|link=Pickaxe|A stone pickaxe or better is required to mine this block]]
   | stone pickaxe    = {{InvSprite|Stone Pickaxe|link=Pickaxe|title=A stone pickaxe or better is required to mine this block}}
   | iron pickaxe      = [[File:Grid Iron Pickaxe.png|32px|link=Pickaxe|An iron pickaxe or better is required to mine this block]]
   | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Pickaxe|title=An iron pickaxe or better is required to mine this block}}
   | diamond pickaxe  = [[File:Grid Diamond Pickaxe.png|32px|link=Pickaxe|A diamond pickaxe or better is required to mine this block]]
   | diamond pickaxe  = {{InvSprite|Diamond Pickaxe|link=Pickaxe|title=A diamond pickaxe or better is required to mine this block}}
   | gold pickaxe      = [[File:Grid Gold Pickaxe.png|32px|link=Pickaxe|A gold pickaxe or better is required to mine this block]]
   | gold pickaxe      = {{InvSprite|Gold Pickaxe|link=Pickaxe|title=A gold pickaxe or better is required to mine this block}}
   | spade  | shovel  = [[File:Use-spade.png|32px|link=Shovel|This block can be broken with any tool, but a shovel is the quickest]]
   | spade  | shovel  = [[File:Use-spade.png|32px|link=Shovel|This block can be broken with any tool, but a shovel is the quickest]]
   | wooden shovel    = [[File:Grid Wooden Shovel.png|32px|link=Shovel|A wooden shovel or better is required to mine this block]]
   | wooden shovel    = {{InvSprite|Wooden Shovel|link=Shovel|title=A wooden shovel or better is required to mine this block}}
   | axe              = [[File:Use-axe.png|32px|link=Axe|This block can be broken with any tool, but an axe is the quickest]]
   | axe              = [[File:Use-axe.png|32px|link=Axe|This block can be broken with any tool, but an axe is the quickest]]
   | hoe              = [[File:Use-hoe.png|32px|link=Hoe|This block can be broken with any tool, but a hoe is the quickest]]
   | hoe              = [[File:Use-hoe.png|32px|link=Hoe|This block can be broken with any tool, but a hoe is the quickest]]
   | bucket | pail    = [[File:Use-bucket.png|32px|link=Bucket|This block can only be picked up using a bucket]]
   | bucket | pail    = [[File:Use-bucket.png|32px|link=Bucket|This block can only be picked up using a bucket]]
   | sword            = [[File:Use-sword.png|32px|link=Sword|This block can be broken with any tool, but a sword is the quickest; however it still takes double damage]]
   | sword            = [[File:Use-sword.png|32px|link=Sword|This block can be broken with any tool, but a sword is the quickest; however it still takes double damage]]
   | shears            = [[File:Grid Shears.png|32px|link=Shears|This block can be broken with any tool, but shears are the quickest]]
   | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the quickest}}
   | n/a    | none    = None
   | n/a    | none    = None
   | all    | alltools | any | anytool = Any tool
   | all    | alltools | any | anytool = Any tool
Line 35: Line 35:
     #switch: {{ lc: {{{tool2}}} }}
     #switch: {{ lc: {{{tool2}}} }}
     | pick  | pickaxe = [[File:Use-pickaxe.png|32px|link=Pickaxe]]
     | pick  | pickaxe = [[File:Use-pickaxe.png|32px|link=Pickaxe]]
     | wooden pickaxe  = [[File:Grid Wooden Pickaxe.png|32px|link=Pickaxe]]
     | wooden pickaxe  = {{InvSprite|Wooden Pickaxe|link=Pickaxe}}
     | stone pickaxe  = [[File:Grid Stone Pickaxe.png|32px|link=Pickaxe]]
     | stone pickaxe  = {{InvSprite|Stone Pickaxe|link=Pickaxe}}
     | iron pickaxe    = [[File:Grid Iron Pickaxe.png|32px|link=Pickaxe]]
     | iron pickaxe    = {{InvSprite|Iron Pickaxe|link=Pickaxe}}
     | diamond pickaxe = [[File:Grid Diamond Pickaxe.png|32px|link=Pickaxe]]
     | diamond pickaxe = {{InvSprite|Diamond Pickaxe|link=Pickaxe}}
     | gold pickaxe    = [[File:Grid Gold Pickaxe.png|32px|link=Pickaxe]]
     | gold pickaxe    = {{InvSprite|Gold Pickaxe|link=Pickaxe}}
     | spade | shovel  = [[File:Use-spade.png|32px|link=Shovel]]
     | spade | shovel  = [[File:Use-spade.png|32px|link=Shovel]]
     | axe            = [[File:Use-axe.png|32px|link=Axe]]
     | axe            = [[File:Use-axe.png|32px|link=Axe]]
     | hoe            = [[File:Use-hoe.png|32px|link=Hoe]]
     | hoe            = [[File:Use-hoe.png|32px|link=Hoe]]
     | shears          = [[File:Grid Shears.png|32px|link=Shears]]
     | shears          = {{InvSprite|Shears|link=Shears}}
   }}
   }}
}} }}
}} }}