|
|
| (284 intermediate revisions by 50 users not shown) |
| Line 1: |
Line 1: |
| {{infobox common
| | {{#invoke:infobox|infobox |
| | imagearea =
| | | invimage = title |
| [[File:{{ #if: {{{image|}}} | {{{image}}} | No block image.png }}|150px|center]]{{
| |
| #if: {{{image2|}}} | <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div>
| |
| }}{{
| |
| #if: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div>
| |
| }}{{
| |
| #if: {{{invimage|}}} | <div style="padding-top: 1em">[[File:{{{invimage}}}|36px]]{{
| |
| #if: {{{invimage2|}}} | [[File:{{{invimage2}}}|36px]]
| |
| }}{{
| |
| #if: {{{invimage3|}}} | [[File:{{{invimage3}}}|36px]]
| |
| }}{{
| |
| #if: {{{invimage4|}}} | [[File:{{{invimage4}}}|36px]]
| |
| }}</div>
| |
| }}
| |
| | 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|}}} | ({{{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=[[Transparency]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }} | |
| {{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }} | |
| {{infobox row|label=[[Explosion#Block_Resistance|Block Resistance]]|field={{ #if: {{{tntres|}}} | {{{tntres}}} | ? blocks }} }}
| |
| {{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
| |
| #switch: {{ lc: {{{tool|}}} }}
| |
| | pick | pickaxe = [[File:Use-pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]]
| |
| | spade | shovel = [[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]]
| |
| | axe = [[File:Use-axe.png|32px|link=Tools#Axe|Axe]]
| |
| | hoe = [[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]]
| |
| | bucket | pail = [[File:Use-bucket.png|32px|link=Tools#Bucket|Bucket]]
| |
| | sword = [[File:Use-sword.png|32px|link=Tools#Sword|Sword]]
| |
| | 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=Tools#Pickaxe|Pickaxe]]
| | {{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}} |
| | spade | shovel = [[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]]
| | | {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }} |
| | axe = [[File:Use-axe.png|32px|link=Tools#Axe|Axe]]
| | | {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }} |
| | hoe = [[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]]
| | }} }} |
| }}
| | {{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}} |
| | | {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }} |
| | | {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }} |
| }} }} | | }} }} |
| {{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
| | {{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}} |
| {{
| | {{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | ({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }} |
| #switch: {{ lc: {{{type|fluid}}} }}
| | {{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }} |
| | fluid =
| | {{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }} |
| {{infobox row|label=Speed of fluid movement|field={{ #if: {{{fluidspeed|}}} | {{{fluidspeed}}} | ? }} }} | | {{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }} |
| {{infobox row|label=Speed of walking through|field={{ #if: {{{movespeed|}}} | {{{movespeed}}} | ? }} }}
| | {{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: {{{data1|}}} | {{infobox row|label=[[Data values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!-- | | {{#if: {{NAMESPACE}} || |
| ---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
| | {{translation category|project=0|{{ |
| ----><sub>dec:</sub> {{{data1|00}}} <sub>hex:</sub> {{dec-hex|{{{data1|00}}} }}<br /><!--
| | #switch: {{lc: {{{renewable|}}} }} |
| The optional second data value.
| | | yes = Renewable resources |
| ---->{{#if:{{{data2|}}}|<!--
| | | no = Non-renewable resources |
| ------>{{#if:{{{data2name|}}}|'''{{{data2name|}}}'''<br />| }}<!--
| | | Resources with invalid renewability |
| ------><sub>dec:</sub> {{{data2}}} <sub>hex:</sub> {{dec-hex|{{{data2}}} }}<!--
| | }}}} |
| ---->|}}<!--
| |
| -->}} }}} }} }}{{#if: {{{data|}}} | {{infobox row|label=[[Data Values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data Values|Data values]]|field={{{multipledata}}} }} }}
| |
| }}<noinclude> | | }}<noinclude> |
| ==Documentation==
| | {{documentation}} |
| This template provides a uniform design for block pages.
| | <!-- Put categories/interwiki on the documentation page --> |
| <pre>
| | </noinclude> |
| {{Block | |
| |image=
| |
| |image2=
| |
| |image3=
| |
| |invimage=
| |
| |invimage2=
| |
| |invimage3=
| |
| |type=
| |
| |gravity=
| |
| |dirt=
| |
| |transparent=
| |
| |light=
| |
| |tntres=
| |
| |tool=
| |
| |stackable=
| |
| |data=
| |
| |fluidspeed=
| |
| |movespeed=
| |
| }}</pre> | |
| | |
| Please note that if the item has multiple data values, use <code><nowiki>|multipledata=</nowiki></code> instead. See below:
| |
| | |
| {| class=grid
| |
| ! Parameter | |
| ! Function
| |
| ! Default value
| |
| |-
| |
| | <code>name</code> || Only needed to change the name from the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
| |
| |-
| |
| | <code>image</code> || Image of the block (should be approx. 150x150px) || [[:File:No block image.png|No block image.png]]
| |
| |-
| |
| | <code>image2</code> || Second image for two-state blocks (also approx. 150x150px) || ''None''
| |
| |-
| |
| | <code>image3</code> || Third image for three-state blocks (also approx. 150x150px) || ''None''
| |
| |-
| |
| | <code>invimage</code> || Image for object in inventory (should be approx. 36x36px) || ''None''
| |
| |-
| |
| | <code>invimage2</code> || Second image for two-state objects in inventory (should be approx. 36x36px) || ''None''
| |
| |-
| |
| | <code>invimage3</code> || Third image for three-state objects in inventory (should be approx. 36x36px) || ''None''
| |
| |-
| |
| | <code>type</code> || Type (solid block, solid, block, or fluid) || ?
| |
| |-
| |
| | <code>gravity</code> || Affected by gravity? || ?
| |
| |-
| |
| | <code>dirt</code> || Requires sunlight/dirt? || ?
| |
| |-
| |
| | <code>transparent</code> || Allows light to pass through? || ?
| |
| |-
| |
| | <code>light</code> || Emits Light? || ?
| |
| |-
| |
| | <code>tntres</code> || How many blocks in any direction will a TNT explosion pass through? || ?
| |
| |-
| |
| | <code>tool</code> || Tool to use || ?
| |
| |-
| |
| | <code>stackable</code> || Stackable || N/A
| |
| |-
| |
| | <code>data</code> || Single decimal data value || 00
| |
| |-
| |
| | <code>multipledata</code> || Multiple decimal data values || <pre>{{dv|00|Item1}}
| |
| {{dv|00|Item2}}</pre>
| |
| |}
| |
| | |
| == See also ==
| |
| {{Infobox see also}}
| |
| | |
| [[Category:Infobox templates]]</noinclude>
| |
| <includeonly>{{#if:{{NAMESPACE}}||[[Category:Blocks]]}}</includeonly>
| |