Template:Infobox block: Difference between revisions

I'm aware that this is going to mess everything up probably, but I'm prepared to roll this back instantly
Undo revision 1275579 by Madminecrafter12 (talk) No that did break stuff, pending further clarification on talk page
Line 9: Line 9:
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
   #switch: {{ lc: {{{tool|}}} }}
   #switch: {{ lc: {{{tool|}}} }}
   | pick  | pickaxe  = {{AnimateSprite|Pickaxe Required|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest}}
   | pick  | pickaxe  = {{InvSprite|Pickaxe Required|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest}}
   | wooden pickaxe    = {{AnimateSprite|Wooden Pickaxe|link=Pickaxe|title=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    = {{AnimateSprite|Stone Pickaxe|link=Pickaxe|title=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      = {{AnimateSprite|Iron Pickaxe|link=Pickaxe|title=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  = {{AnimateSprite|Diamond Pickaxe|link=Pickaxe|title=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      = {{AnimateSprite|Gold Pickaxe|link=Pickaxe|title=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  = {{AnimateSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the quickest}}
   | spade  | shovel  = {{InvSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the quickest}}
   | wooden shovel    = {{AnimateSprite|Wooden Shovel|link=Shovel|title=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              = {{AnimateSprite|Axe Required|link=Axe|This block can be broken with any tool, but an axe is the quickest}}
   | axe              = {{InvSprite|Axe Required|link=Axe|This block can be broken with any tool, but an axe is the quickest}}
   | hoe              = {{AnimateSprite|Hoe Required|link=Hoe|This block can be broken with any tool, but a hoe is the quickest}}
   | hoe              = {{InvSprite|Hoe Required|link=Hoe|This block can be broken with any tool, but a hoe is the quickest}}
   | bucket | pail    = {{AnimateSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
   | bucket | pail    = {{InvSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
   | sword            = {{AnimateSprite|Sword Required|link=Sword|This block can be broken with any tool, but a sword is the quickest; however it still takes double damage}}
   | sword            = {{InvSprite|Sword Required|link=Sword|This block can be broken with any tool, but a sword is the quickest; however it still takes double damage}}
   | shears            = {{AnimateSprite|Shears|link=Shears|title=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 28: Line 28:
   #if: {{{tool2|}}} | {{
   #if: {{{tool2|}}} | {{
     #switch: {{ lc: {{{tool2}}} }}
     #switch: {{ lc: {{{tool2}}} }}
     | pick  | pickaxe = {{AnimateSprite|Pickaxe Required|link=Pickaxe}}
     | pick  | pickaxe = {{InvSprite|Pickaxe Required|link=Pickaxe}}
     | wooden pickaxe  = {{AnimateSprite|Wooden Pickaxe|link=Pickaxe}}
     | wooden pickaxe  = {{InvSprite|Wooden Pickaxe|link=Pickaxe}}
     | stone pickaxe  = {{AnimateSprite|Stone Pickaxe|link=Pickaxe}}
     | stone pickaxe  = {{InvSprite|Stone Pickaxe|link=Pickaxe}}
     | iron pickaxe    = {{AnimateSprite|Iron Pickaxe|link=Pickaxe}}
     | iron pickaxe    = {{InvSprite|Iron Pickaxe|link=Pickaxe}}
     | diamond pickaxe = {{AnimateSprite|Diamond Pickaxe|link=Pickaxe}}
     | diamond pickaxe = {{InvSprite|Diamond Pickaxe|link=Pickaxe}}
     | gold pickaxe    = {{AnimateSprite|Gold Pickaxe|link=Pickaxe}}
     | gold pickaxe    = {{InvSprite|Gold Pickaxe|link=Pickaxe}}
     | spade | shovel  = {{AnimateSprite|Shovel Required|link=Shovel}}
     | spade | shovel  = {{InvSprite|Shovel Required|link=Shovel}}
     | axe            = {{AnimateSprite|Axe Required|link=Axe}}
     | axe            = {{InvSprite|Axe Required|link=Axe}}
     | hoe            = {{AnimateSprite|Hoe Required|link=Hoe}}
     | hoe            = {{InvSprite|Hoe Required|link=Hoe}}
     | shears          = {{AnimateSprite|Shears|link=Shears}}
     | shears          = {{InvSprite|Shears|link=Shears}}
   }}
   }}
}} }}
}} }}