Template:Infobox block: Difference between revisions

Remove useless and broken dirt parameter, add tracking category for that and for first version which isn't linking to the page's history section; update link.
No edit summary
 
(167 intermediate revisions by 40 users not shown)
Line 1: Line 1:
<includeonly>{{
{{#invoke:infobox|infobox
#if: {{{dirt|}}} | [[Category:Fixme]]
| invimage = title
}}{{#invoke:infobox|infobox
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[minecraft:Rarity|Rarity color]]|field={{ucfirst:{{{rarity|}}}}} }} | }}
{{infobox row|label=Physics|field={{ #if: {{{gravity|}}} | {{{gravity}}} | ? }} }}
{{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }}
{{infobox row|label=[[Opacity|Transparency]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }}
{{#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=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
  #if: {{{tool2|}}} | {{{tool2|}}}
| {{{tntres}}}[[Category:Pages with overridden tntres]]
}}{{
  #if: {{{tool3|}}} | {{{tool3|}}}
}} }}
{{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
}} }}
}} }}
{{infobox row|label=[[Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}}
{{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}}
| {{{hardness}}}[[Category:Pages with overridden hardness]]
| {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }}
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
}} }}
}} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
{{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}}
  #switch: {{ lc: {{{tool|}}} }}
{{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | &nbsp;({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }}
  | pick  | pickaxe  = [[File:Use-pickaxe.png|32px|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest]]
{{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }}
  | wooden pickaxe    = [[File:Grid Wooden Pickaxe.png|32px|link=Pickaxe|A wooden pickaxe or better is required to mine this block]]
{{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }}
  | stone pickaxe    = [[File:Grid Stone Pickaxe.png|32px|link=Pickaxe|A stone pickaxe or better is required to mine this block]]
{{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }}
  | iron pickaxe      = [[File:Grid Iron Pickaxe.png|32px|link=Pickaxe|An iron 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}}}} }} }}
  | diamond pickaxe  = [[File:Grid Diamond Pickaxe.png|32px|link=Pickaxe|A diamond pickaxe or better is required to mine this block]]
{{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}}}} }} }} }}
  | gold pickaxe      = [[File:Grid Gold Pickaxe.png|32px|link=Pickaxe|A gold pickaxe or better is required to mine this block]]
{{#if: {{NAMESPACE}} ||
  | spade  | shovel  = [[File:Use-spade.png|32px|link=Shovel|This block can be broken with any tool, but a shovel is the quickest]]
{{translation category|project=0|{{
  | wooden shovel    = [[File:Grid Wooden Shovel.png|32px|link=Shovel|A wooden shovel or better is required to mine this block]]
  #switch: {{lc: {{{renewable|}}} }}
  | axe              = [[File:Use-axe.png|32px|link=Axe|This block can be broken with any tool, but an axe is the quickest]]
  | yes = Renewable resources
  | hoe              = [[File:Use-hoe.png|32px|link=Hoe|This block can be broken with any tool, but a hoe is the quickest]]
   | no = Non-renewable resources
  | bucket | pail    = [[File:Use-bucket.png|32px|link=Bucket|This block can only be picked up using a bucket]]
  | Resources with invalid renewability
  | 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]]
}}<noinclude>
  | n/a    | none    = None
  | all    | alltools | any | anytool = Any tool
  | #default          = ?
}}{{
  #if: {{{tool2|}}} | {{
    #switch: {{ lc: {{{tool2}}} }}
    | pick  | pickaxe = [[File:Use-pickaxe.png|32px|link=Pickaxe]]
    | wooden pickaxe  = [[File:Grid Wooden Pickaxe.png|32px|link=Pickaxe]]
    | stone pickaxe  = [[File:Grid Stone Pickaxe.png|32px|link=Pickaxe]]
    | iron pickaxe    = [[File:Grid Iron Pickaxe.png|32px|link=Pickaxe]]
    | diamond pickaxe = [[File:Grid Diamond Pickaxe.png|32px|link=Pickaxe]]
    | gold pickaxe    = [[File:Grid Gold Pickaxe.png|32px|link=Pickaxe]]
    | spade | shovel  = [[File:Use-spade.png|32px|link=Shovel]]
    | axe            = [[File:Use-axe.png|32px|link=Axe]]
    | hoe            = [[File:Use-hoe.png|32px|link=Hoe]]
    | shears          = [[File:Grid Shears.png|32px|link=Shears]]
  }}
}} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
{{infobox row|label=Flammable|field={{ #if: {{{flammable|}}} | {{{flammable}}} | No }} }}
{{#if: {{{availability|}}} | {{infobox row|label=Availability|field={{{availability}}}}} }}
{{#ifeq: {{ lc: {{{type|solid}}} }} | fluid |
  {{infobox row|label=Flow speed|field={{ #if: {{{fluidspeed|}}} | {{{fluidspeed}}} | ? }} }}
  {{infobox row|label=Player movement speed|field={{ #if: {{{movespeed|}}} | {{{movespeed}}} | ? }} }}
}}
{{#if: {{{multiplevers|}}}
| {{infobox row|label=First appearances|field={{{multiplevers}}}{{#if: {{#pos: {{{multiplevers}}} | #History }} || [[Category:Update infobox history]] }}}}
| {{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
    }}[[Category:Update infobox history]]}}
  }}
}}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{infobox row|class={{#if: {{{drops|}}} | list-style-none }}|label=[[Drops]]|field={{{drops|Itself}}}}}
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data}}} }} }} }}
{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }}
{{#if: {{NAMESPACE}}
|
| {{#ifeq: {{lc: {{{nameid}}} }} | none
  |
  | {{infobox row|label=[[Data values|Name]]|field={{
    #if: {{{nameid|}}}
    | {{{nameid}}}
    | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
    }}}}
   }}
}}
| footer =
{{{notes|}}}
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>