Template:Infobox block: Difference between revisions

No edit summary
No edit summary
 
(446 intermediate revisions by 86 users not shown)
Line 1: Line 1:
{| class="infobox" cellpadding="4" style="width: 22em; font-size: 90%; float:right;"
{{#invoke:infobox|infobox
 
| invimage = title
| align="center" colspan=2 bgcolor="#CCCCCC" style="font-size:120%; " | '''{{{name}}}'''
| rows =
|- valign="top"
{{#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}}} }} }}
| style="white-space: nowrap;" | '''Type'''
{{#if: {{{stackable|}}} | {{infobox row|label=Stackable|field={{{stackable}}} {{#if: {{{maxStack|}}} | &nbsp;({{{maxStack}}}) }} }} |<!-- {{{stackable}}} not provided => --->{{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }}
| style="width:14em" | {{{type}}}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{{tool|}}}{{
|-
  #if: {{{tool2|}}} | {{{tool2|}}}
| align="center" colspan="2" |[[image:Thumbnail_{{{name}}}]]
}}{{
|- valign="top"
  #if: {{{tool3|}}} | {{{tool3|}}}
| style="white-space: nowrap;" | '''Affected by gravity?'''
}} }}
| {{{gravity}}}
{{infobox row|label=[[minecraft:Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
|- valign="top"
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
| style="white-space: nowrap;" | '''Requires sunlight/dirt?'''
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
| {{{dirt}}}
}} }}
 
{{infobox row|label=[[minecraft:Breaking#Blocks by hardness|Hardness]]|field={{ #if: {{{hardness|}}}
|-
| {{{hardness}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden hardness}} }}
|colspan="2+ |
| {{Hardness values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
 
}} }}
|}
{{#if: {{{durability|}}} |{{infobox row|Durability|{{{durability|}}}}}}}
 
{{infobox row|label=[[minecraft:Light|Luminous]]|field={{ #if: {{{light|}}} | {{{light}}} {{#if: {{{lightLevel|}}} | &nbsp;({{{lightLevel}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing luminance}}}} }} }}
<noinclude><font color="#997070">
{{infobox row|label=[[minecraft:Opacity|Transparent]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing transparency}}}} }} }}
==Usage==
{{ #if: {{{waterloggable|}}} | {{infobox row|label=[[minecraft:Waterlogging|Waterloggable]]|field={{{waterloggable}}} }} }}
'''These usage notes will not be included in articles bearing this template.'''<p></p>
{{ #if: {{{heals|}}} | {{infobox row|label=[[minecraft:Food|Restores]]|field={{{heals}}} }} }}
This template provides a uniform design for block pages.</font><br/><br/></noinclude>
{{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: {{NAMESPACE}} ||
{{translation category|project=0|{{
  #switch: {{lc: {{{renewable|}}} }}
  | yes = Renewable resources
  | no = Non-renewable resources
  | Resources with invalid renewability
}}}}
}}<noinclude>
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
</noinclude>