Template:Infobox block: Difference between revisions

Readd temporary animation
No edit summary
 
(43 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
  <title source="title">
| invimage = title
  <default>{{BASEPAGENAME}}</default>
| rows =
  </title>
{{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[minecraft:Rarity|Rarity color]]|field={{ucfirst:{{{rarity|}}}}} }} | }}
  <image source="image" />
{{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }}
  <image source="image2" />
{{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }}
  <navigation>{{#if: {{{image|}}}|{{Animate|{{{image}}}|300px}}}}</navigation>
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{
  <navigation>{{#if: {{{image2|}}}|{{Animate|{{{image2}}}|300px}}}}</navigation>
  #if: {{{tool2|}}} | {{{tool2|}}}
  <navigation>{{#if: {{{extratext|}}} | {{{extratext}}} | }}</navigation>
}}{{
  <group>
   #if: {{{tool3|}}} | {{{tool3|}}}
    <data source="rarity"><label>[[Rarity|Rarity color]]</label></data>
}} }}
    <data source="renewable"><label>[[Renewable resource|Renewable]]</label></data>
{{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
    <data source="stackable">
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
      <label>Stackable</label>
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
      <format>{{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }}</format>
}} }}
      <default>{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}}</default>
{{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}}
    </data>
| {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }}
    <data source="tool">
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
      <label>Tool{{#if: {{{tool2|}}}|s}}</label>
}} }}
      <format>{{#switch: {{lc: {{{tool|}}}}}
{{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}}
              | pickaxe          = {{SlotSprite|Pickaxe Required|link=Pickaxe|title=This block can be broken with any tool, but a pickaxe is the quickest}}
{{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | &nbsp;({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }}
              | wooden pickaxe    = {{InvSprite|Wooden Pickaxe|link=Pickaxe|title=A wooden pickaxe or better is required to mine this block}}
{{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }}
              | stone pickaxe    = {{InvSprite|Stone Pickaxe|link=Pickaxe|title=A stone pickaxe or better is required to mine this block}}
{{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }}
              | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Pickaxe|title=An iron pickaxe or better is required to mine this block}}
{{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }}
              | diamond pickaxe   = {{InvSprite|Diamond Pickaxe|link=Pickaxe|title=A diamond pickaxe or better is required to mine this block}}
{{infobox row|label=[[minecraft:Flammable|Flammable]]|field={{ #if: {{{flammable|}}} | {{{flammable}}} | ?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing flammability}}}} }} }}
              | shovel            = {{SlotSprite|Shovel Required|link=Shovel|This block can be broken with any tool, but a shovel is the quickest}}
{{infobox row|label=Catches fire from [https://minecraft.wiki/w/Lava Lava]|field={{ #if: {{{lavasusceptible|}}} | {{{lavasusceptible}}} | ?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing lava susceptibility}}}} }} }} }}
              | wooden shovel    = {{InvSprite|Wooden Shovel|link=Shovel|title=A wooden shovel or better is required to mine this block}}
{{#if: {{NAMESPACE}} ||
              | 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 still takes double damage}}
              | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the quickest}}
              | n/a    | none    = None
              | all    | alltools | any | anytool = Any tool
              }}{{#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=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}}
              | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Pickaxe|title=An iron 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}}
              | 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=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 still takes double damage}}
              | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the second quickest}}
              }}{{#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=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}}
              | iron pickaxe      = {{InvSprite|Iron Pickaxe|link=Pickaxe|title=An iron 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}}
              | 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=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 still takes double damage}}
              | shears            = {{InvSprite|Shears|link=Shears|title=This block can be broken with any tool, but shears are the third quickest}}
            }}</format>
      <default>?</default>
    </data>
    <data source="light">
      <label>[[Light|Luminous]]</label>
      <format>{{{light}}} {{#if: {{{lightLevel|}}} | &nbsp;({{{lightLevel}}})}}</format>
      <default>? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}}</default>
    </data>
    <data source="transparent">
      <label>[[Opacity|Transparent]]</label>
      <default>? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}}</default>
    </data>
    <data source="flammable">
      <label>[[Flammable]]</label>
      <default>?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing flammability}}}}</default>
    </data>
    <data source="lavasusceptible">
      <label>Catches fire from [[lava]]</label>
      <default>?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing lava susceptibility}}}}</default>
    </data>
    <data source="hardness">
      <label>[[Breaking#Blocks by hardness|Hardness]]</label>
      <default>{{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}</default>
      <format>{{{hardness|}}} {{translation category|project=0|Pages with overridden hardness}} }}</format>
    </data>
    <data source="tntres">
      <label>[[Explosion#Blast resistance|Blast resistance]]</label>
      <default>{{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}</default>
      <format>{{{tntres|}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}</format>
    </data>
    <data source="heals"><label>Heals</label></data>
  </group>
</infobox><!--
 
-->{{#if: {{NAMESPACE}} ||
{{translation category|project=0|{{
{{translation category|project=0|{{
   #switch: {{lc: {{{renewable|}}} }}
   #switch: {{lc: {{{renewable|}}} }}
Line 97: Line 31:
   | no = Non-renewable resources
   | no = Non-renewable resources
   | Resources with invalid renewability
   | Resources with invalid renewability
}}}}}}<!--
}}}}
 
}}<noinclude>
--></onlyinclude><noinclude>
{{documentation}}
{{Documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>