|
|
| (343 intermediate revisions by 65 users not shown) |
| Line 1: |
Line 1: |
| <table class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right; border: 1px solid #AAAAAA; margin-left:0.5em">
| | {{#invoke:infobox|infobox |
| <tr>
| | | invimage = title |
| <td align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; font-weight: bold;">{{{name|{{BASEPAGENAME}}}}}</td>
| | | rows = |
| </tr>
| | {{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[minecraft:Rarity|Rarity color]]|field={{ucfirst:{{{rarity|}}}}} }} | }} |
| <tr valign="top">
| | {{#if: {{{renewable|}}} | {{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{{renewable}}} }} }} |
| <td align="center" colspan="2">[[File:{{{image|No block image.png}}}|150px|center]]</td>
| | {{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | ({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }} |
| </tr>
| | {{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{ |
| {{#if:{{{image2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{image2}}}|150px|center]]</td></tr>}} | | #if: {{{tool2|}}} | {{{tool2|}}} |
| {{#if:{{{invimage|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage}}}|36px|center]]</td></tr>}} | | }}{{ |
| {{#if:{{{invimage2|}}}|<tr valign="top"><td align="center" colspan="2">[[File:{{{invimage2}}}|36px|center]]</td></tr>}} | | #if: {{{tool3|}}} | {{{tool3|}}} |
| {{Block/row2|label=Type|field={{{type|?}}}}} | | }} }} |
| {{Block/row|label=Requirements|field={{#switch:{{lc:{{{dirt}}}}}|yes=Sunlight and dirt|no=None|sand=Sunlight and sand|#default={{{dirt|?}}}}}}} | | {{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}} |
| {{Block/row2|label=Physics|field={{{gravity|?}}}}} | | | {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }} |
| {{Block/row|label=Transparency|field={{{transparent|?}}}}} | | | {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }} |
| {{Block/row2|label=Luminance|field={{{light|?}}}}} | | }} }} |
| {{Block/row2|label=TNT Strength|field={{{tntstr|?}}}}} | | {{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}} |
| {{Block/row|label=Tool{{#if:{{{tool2|}}}|s}}|field={{#switch:{{lc:{{{tool|{{{Tool}}}}}}}}<!-- | | | {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }} |
| -->|pick|pickaxe=[[File:Use-pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]]<!--
| | | {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }} |
| -->|spade|shovel=[[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]]<!--
| | }} }} |
| -->|axe=[[File:Use-axe.png|32px|link=Tools#Axe|Axe]]<!--
| | {{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}} |
| -->|hoe=[[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]]<!--
| | {{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | ({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }} |
| -->|bucket|pail=[[File:Use-bucket.png|32px|link=Tools#Bucket|Bucket]]<!--
| | {{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }} |
| -->|sword=[[File:Use-sword.png|32px|Link=Tools#Sword|Sword]]<!--
| | {{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }} |
| -->|n/a|none=None<!--
| | {{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }} |
| -->|all|alltools|any|anytool=Any tool<!--
| | {{infobox row|label=[[minecraft:Flammable|Flammable]]|field={{ #if: {{{flammable|}}} | {{{flammable}}} | ?{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing flammability}}}} }} }} |
| -->|#default=?}}<!--
| | {{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:{{{tool2|}}}|{{#switch:{{lc:{{{tool2}}}}}<!--
| | {{#if: {{NAMESPACE}} || |
| -->|pick|pickaxe=[[File:Use-pickaxe.png|32px|link=Tools#Pickaxe|Pickaxe]]<!--
| | {{translation category|project=0|{{ |
| -->|spade|shovel=[[File:Use-spade.png|32px|link=Tools#Shovel|Shovel]]<!--
| | #switch: {{lc: {{{renewable|}}} }} |
| -->|axe=[[File:Use-axe.png|32px|link=Tools#Axe|Axe]]<!--
| | | yes = Renewable resources |
| -->|hoe=[[File:Use-hoe.png|32px|link=Tools#Hoe|Hoe]]}}}}}}
| | | no = Non-renewable resources |
| {{Block/row2|label=Stackable|field={{{stackable|?}}}}} | | | Resources with invalid renewability |
| {{#switch:{{lc:{{{type}}}}}|fluid = | | }}}} |
| {{Block/row|label=Speed of fluid movement|field={{{fluidspeed|?}}}}} | | }}<noinclude> |
| {{Block/row2|label=Speed of walking through|field={{{movespeed|?}}}}}}} | | {{documentation}} |
| {{Block/row|label=[[Data_Values|Data value]]{{#if:{{{data2|}}}|s|}}|field={{{data|{{#if:{{{datadec|}}}|<!-- | | <!-- Put categories/interwiki on the documentation page --> |
| | | </noinclude> |
| ---->|{{#if:{{{data1name|}}}|'''{{{data1name|}}}'''<br />| }}<!--
| |
| ----><sub>dec:</sub> {{{data1|00}}} <sub>hex:</sub> {{dec-hex|{{{data1|00}}} }}<br /><!--
| |
| | |
| The optional second data value.
| |
| | |
| ---->{{#if:{{{data2|}}}|<!--
| |
| ------>{{#if:{{{data2name|}}}|'''{{{data2name|}}}'''<br />| }}<!--
| |
| ------><sub>dec:</sub> {{{data2}}} <sub>hex:</sub> {{dec-hex|{{{data2}}} }}<!--
| |
| ---->|}}<!--
| |
| -->}} }}} }}
| |
| </table><noinclude><!---
| |
| --->
| |
| ==Documentation==
| |
| '''These usage notes will not be included in articles bearing this template.'''
| |
| | |
| This template provides a uniform design for block pages.
| |
| <pre>
| |
| {{Block | |
| |image | |
| |image2= | |
| |invimage= | |
| |invimage2= | |
| |type= | |
| |gravity= | |
| |dirt= | |
| |transparent= | |
| |light=
| |
| |tntstr=
| |
| |tool=
| |
| |stackable=
| |
| |data1name=
| |
| |data1=
| |
| |data2name=
| |
| |data2=
| |
| |fluidspeed=
| |
| |movespeed=
| |
| }}</pre> | |
| | |
| {| 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>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>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>tntstr</code> || How many blocks in any direction will a TNT explosion pass through? || ?
| |
| |-
| |
| | <code>tool</code> || Tool to use || ?
| |
| |-
| |
| | <code>stackable</code> || Stackable || ?
| |
| |-
| |
| | <code>data1name</code> || If using multiple data values, specify a name || ''None''
| |
| |-
| |
| | <code>data1</code> || Decimal Data Value 1 || 00
| |
| |-
| |
| | <code>data2name</code> || Data 2's name || ''None''
| |
| |-
| |
| | <code>data2</code> || Decimal Data Value 2 || ''None''
| |
| |}
| |
| [[Category:Templates]]</noinclude>
| |
| <includeonly>{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Blocks]]}}</includeonly>
| |