Template:Infobox block: Difference between revisions

m lava link should be fixed
No edit summary
 
Line 5: Line 5:
{{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }}
{{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }}
{{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }}
{{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{#vardefineecho: correct-tool | {{
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{
  #switch: {{ lc: {{{tool|}}} }}
   #if: {{{tool2|}}} | {{{tool2|}}}
  | pickaxe          = {{SlotSprite|Pickaxe Required|link=Pickaxe|title=This block can be broken with any tool, but a pickaxe is the quickest}}
   | wooden pickaxe    = {{InvSprite|Wooden Pickaxe|link=Wooden Pickaxe|title=A wooden pickaxe or better is required to mine this block}}
  | stone pickaxe    = {{InvSprite|Stone Pickaxe|link=Stone Pickaxe|title=A stone pickaxe or better is required to mine this block}}
  | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Iron Pickaxe|title=An iron pickaxe or better is required to mine this block}}
  | diamond pickaxe  = {{InvSprite|Diamond Pickaxe|link=Diamond Pickaxe|title=A diamond pickaxe or better is required to mine this block}}
  | 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=Wooden Shovel|title=A wooden shovel or better is required to mine this block}}
  | axe              = {{SlotSprite|Axe Required|link=Axe|title=This block can be broken with any tool, but an axe is the quickest}}
  | hoe              = {{SlotSprite|Hoe Required|link=Hoe|title=This block can be broken with any tool, but a hoe is the quickest}}
  | bucket            = {{SlotSprite|Bucket Required|link=Bucket|title=This block can only be picked up using a bucket}}
  | sword            = {{SlotSprite|Sword Required|link=Sword|title=This block can be broken with any tool, but a sword is the quickest; however, it loses two durability points}}
  | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the quickest}}
  | brush            = {{InvSprite|Brush|link=Brush|title=This block can be excavated with a brush}}
  | n/a    | none    = None
  | all    | alltools | any | anytool = Any tool
  | #default          = {{{tool|}}}
}}
}}{{
}}{{
  #if: {{{tool2|}}} | {{
   #if: {{{tool3|}}} | {{{tool3|}}}
    #switch: {{ lc: {{{tool2}}} }}
    | pickaxe          = {{SlotSprite|Pickaxe Required|link=Pickaxe|title=This block can be broken with any tool, but a pickaxe is the second quickest}}
    | wooden pickaxe    = {{InvSprite|Wooden Pickaxe|link=Wooden Pickaxe|title=A wooden pickaxe or better is required to mine this block}}
    | stone pickaxe    = {{InvSprite|Stone Pickaxe|link=Stone Pickaxe|title=A stone pickaxe or better is required to mine this block}}
    | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Iron Pickaxe|title=An iron pickaxe or better is required to mine this block}}
    | diamond pickaxe  = {{InvSprite|Diamond Pickaxe|link=Diamond Pickaxe|title=A diamond pickaxe or better is required to mine this block}}
    | shovel            = {{SlotSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the second quickest}}
    | wooden shovel    = {{InvSprite|Wooden Shovel|link=Wooden Shovel|title=A wooden shovel or better is required to mine this block}}
    | axe              = {{SlotSprite|Axe Required|link=Axe|title=This block can be broken with any tool, but an axe is the second quickest}}
    | hoe              = {{SlotSprite|Hoe Required|link=Hoe|title=This block can be broken with any tool, but a hoe is the second quickest}}
    | sword            = {{SlotSprite|Sword Required|link=Sword|title=This block can be broken with any tool, but a sword is the second quickest; however, it loses two durability points}}
    | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the second quickest}}
  }}
}}{{
   #if: {{{tool3|}}} | {{
    #switch: {{ lc: {{{tool3}}} }}
    | pickaxe          = {{SlotSprite|Pickaxe Required|link=Pickaxe|title=This block can be broken with any tool, but a pickaxe is the third quickest}}
    | wooden pickaxe    = {{InvSprite|Wooden Pickaxe|link=Wooden Pickaxe|title=A wooden pickaxe or better is required to mine this block}}
    | stone pickaxe    = {{InvSprite|Stone Pickaxe|link=Stone Pickaxe|title=A stone pickaxe or better is required to mine this block}}
    | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Iron Pickaxe|title=An iron pickaxe or better is required to mine this block}}
    | diamond pickaxe  = {{InvSprite|Diamond Pickaxe|link=Diamond Pickaxe|title=A diamond pickaxe or better is required to mine this block}}
    | shovel            = {{SlotSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the third quickest}}
    | wooden shovel    = {{InvSprite|Wooden Shovel|link=Wooden Shovel|title=A wooden shovel or better is required to mine this block}}
    | axe              = {{SlotSprite|Axe Required|link=Axe|title=This block can be broken with any tool, but an axe is the third quickest}}
    | hoe              = {{SlotSprite|Hoe Required|link=Hoe|title=This block can be broken with any tool, but a hoe is the third quickest}}
    | sword            = {{SlotSprite|Sword Required|link=Sword|title=This block can be broken with any tool, but a sword is the third quickest; however, it loses two durability points}}
    | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the third quickest}}
  }}
}} }}
}} }}
{{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
{{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}