Template:Infobox block: Difference between revisions

No edit summary
No edit summary
 
(173 intermediate revisions by 40 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| invimage = title
| 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|}}}}} }} | }}
{{
{{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }}
  #switch: {{ lc: {{{type|solid}}} }}
{{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }}
  | solid block | solid | block = {{infobox row|label=Requirements|field={{
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{
    #switch: {{ lc: {{{dirt}}} }}
   #if: {{{tool2|}}} | {{{tool2|}}}
    | yes = Sunlight and dirt
    | no = None
    | sand = Sunlight and sand
    | #default = {{ #if: {{{dirt|}}} | {{{dirt}}} | ? }}
  }} }}
}}
{{infobox row|label=Physics|field={{ #if: {{{gravity|}}} | {{{gravity}}} | ? }} }}
{{infobox row|label=[[Opacity|Transparency]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }}
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }}
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}} | {{{tntres}}}[[Category:Pages with overridden tntres]] | {{Blast resistance values | {{ #titleparts: {{PAGENAME}} | 1 | 1 }} }} }} }}
{{infobox row|label=[[Digging#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}} | {{{hardness}}}[[Category:Pages with overridden hardness]] | {{Hardness values | {{ #titleparts: {{PAGENAME}} | 1 | 1 }} }} }} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
   #switch: {{ lc: {{{tool|}}} }}
  | pick  | pickaxe  = [[File:Use-pickaxe.png|32px|link=Pickaxe|This block can be broken with any tool, but a pickaxe is the quickest]]
  | wooden pickaxe    = [[File:Grid Wooden Pickaxe.png|32px|link=Pickaxe|A wooden pickaxe or better is required to mine this block]]
  | stone pickaxe    = [[File:Grid Stone Pickaxe.png|32px|link=Pickaxe|A stone pickaxe or better is required to mine this block]]
  | iron pickaxe      = [[File:Grid Iron Pickaxe.png|32px|link=Pickaxe|An iron pickaxe or better is required to mine this block]]
  | diamond pickaxe  = [[File:Grid Diamond Pickaxe.png|32px|link=Pickaxe|A diamond pickaxe or better is required to mine this block]]
  | gold pickaxe      = [[File:Grid Gold Pickaxe.png|32px|link=Pickaxe|A gold pickaxe or better is required to mine this block]]
  | spade  | shovel  = [[File:Use-spade.png|32px|link=Shovel|This block can be broken with any tool, but a shovel is the quickest]]
  | wooden shovel    = [[File:Grid Wooden Shovel.png|32px|link=Shovel|A wooden shovel or better is required to mine this block]]
  | axe              = [[File:Use-axe.png|32px|link=Axe|This block can be broken with any tool, but a axe is the quickest]]
  | hoe              = [[File:Use-hoe.png|32px|link=Hoe|This block can be broken with any tool, but a hoe is the quickest]]
  | bucket | pail    = [[File:Use-bucket.png|32px|link=Bucket|This block can only be picked up using a bucket]]
  | 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]]
  | n/a    | none    = None
  | all    | alltools | any | anytool = Any tool
  | #default          = ?
}}{{
}}{{
   #if: {{{tool2|}}} | {{
   #if: {{{tool3|}}} | {{{tool3|}}}
    #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=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
{{infobox row|label=Flammable|field={{ #if: {{{flammable|}}} | {{{flammable}}} | No }} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
{{#if: {{{availability|}}} | {{infobox row|label=Availability|field={{{availability}}}}} }}
}} }}
{{#ifeq: {{ lc: {{{type|solid}}} }} | fluid |
{{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}}
  {{infobox row|label=Flow speed|field={{ #if: {{{fluidspeed|}}} | {{{fluidspeed}}} | ? }} }}
| {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }}
  {{infobox row|label=Player movement speed|field={{ #if: {{{movespeed|}}} | {{{movespeed}}} | ? }} }}
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
}}
}} }}
{{#if: {{{multiplevers|}}}
{{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}}
| {{infobox row|label=First appearances|field={{{multiplevers}}} }}
{{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | &nbsp;({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }}
| {{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
{{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }}
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
{{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }}
    }}}}
{{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }}
  }}
{{infobox row|label=[[minecraft:Flammable|Flammable]]|field={{ #if: {{{flammable|}}} | {{{flammable}}} | ?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing flammability}}}} }} }}
}}
{{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}}}} }} }} }}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{#if: {{NAMESPACE}} ||
{{infobox row | label= [[Drops]] | field= {{{drops|Itself}}} }}
{{translation category|project=0|{{
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data}}} }} }} }}
   #switch: {{lc: {{{renewable|}}} }}
{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }}
  | yes = Renewable resources
{{#if: {{NAMESPACE}}
  | no = Non-renewable resources
|
  | Resources with invalid renewability
| {{#ifeq: {{lc: {{{nameid}}} }} | none
}}}}
  |
}}<noinclude>
  | {{infobox row|label=[[Data values|Name]]|field={{
{{documentation}}
    #if: {{{nameid|}}}
<!-- Put categories/interwiki on the documentation page -->
    | {{{nameid}}}
    | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
    }}}}
   }}
}}
| footer =
{{{notes|}}}
}}</includeonly><noinclude>
{{/doc}}
[[Category:Infobox templates|B]]
[[de:Vorlage:Block]]
[[fr:Modèle:Bloc]]
[[it:Template:Blocco]]
[[nl:Sjabloon:Blok]]
</noinclude>
</noinclude>