Template:Infobox block: Difference between revisions

m Revert consecutive edits by Sonicwave32 (talk) causes defaults to not show as the parameters are always specified with no value
Porting editcopy changes: [Tool] required are SlotSprites instead of InvSprites
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  = {{InvSprite|Pickaxe Required|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest}}
   | pick  | pickaxe  = {{SlotSprite|Pickaxe Required|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest}}
   | wooden pickaxe    = {{InvSprite|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    = {{InvSprite|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}}
Line 15: Line 15:
   | diamond pickaxe  = {{InvSprite|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      = {{InvSprite|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  = {{InvSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the quickest}}
   | spade  | shovel  = {{SlotSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the quickest}}
   | wooden shovel    = {{InvSprite|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              = {{InvSprite|Axe Required|link=Axe|This block can be broken with any tool, but an axe is the quickest}}
   | axe              = {{SlotSprite|Axe Required|link=Axe|This block can be broken with any tool, but an axe is the quickest}}
   | hoe              = {{InvSprite|Hoe Required|link=Hoe|This block can be broken with any tool, but a hoe is the quickest}}
   | hoe              = {{SlotSprite|Hoe Required|link=Hoe|This block can be broken with any tool, but a hoe is the quickest}}
   | bucket | pail    = {{InvSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
   | bucket | pail    = {{SlotSprite|Bucket Required|link=Bucket|This block can only be picked up using a bucket}}
   | 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}}
   | sword            = {{SlotSprite|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            = {{InvSprite|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
Line 28: Line 28:
   #if: {{{tool2|}}} | {{
   #if: {{{tool2|}}} | {{
     #switch: {{ lc: {{{tool2}}} }}
     #switch: {{ lc: {{{tool2}}} }}
     | pick  | pickaxe = {{InvSprite|Pickaxe Required|link=Pickaxe}}
     | pick  | pickaxe = {{SlotSprite|Pickaxe Required|link=Pickaxe}}
     | wooden pickaxe  = {{InvSprite|Wooden Pickaxe|link=Pickaxe}}
     | wooden pickaxe  = {{InvSprite|Wooden Pickaxe|link=Pickaxe}}
     | stone pickaxe  = {{InvSprite|Stone Pickaxe|link=Pickaxe}}
     | stone pickaxe  = {{InvSprite|Stone Pickaxe|link=Pickaxe}}
Line 34: Line 34:
     | diamond pickaxe = {{InvSprite|Diamond Pickaxe|link=Pickaxe}}
     | diamond pickaxe = {{InvSprite|Diamond Pickaxe|link=Pickaxe}}
     | gold pickaxe    = {{InvSprite|Gold Pickaxe|link=Pickaxe}}
     | gold pickaxe    = {{InvSprite|Gold Pickaxe|link=Pickaxe}}
     | spade | shovel  = {{InvSprite|Shovel Required|link=Shovel}}
     | spade | shovel  = {{SlotSprite|Shovel Required|link=Shovel}}
     | axe            = {{InvSprite|Axe Required|link=Axe}}
     | axe            = {{SlotSprite|Axe Required|link=Axe}}
     | hoe            = {{InvSprite|Hoe Required|link=Hoe}}
     | hoe            = {{SlotSprite|Hoe Required|link=Hoe}}
     | shears          = {{InvSprite|Shears|link=Shears}}
     | shears          = {{InvSprite|Shears|link=Shears}}
   }}
   }}