Template:Infobox block: Difference between revisions
better & lighter |
|||
| Line 1: | Line 1: | ||
<includeonly>{{infobox common | <includeonly>{{infobox common | ||
| title = | | title = {{{title|{{BASEPAGENAME}}}}} | ||
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | No block image.png}} }}|150px|center]]{{ | | imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{{title|{{BASEPAGENAME}}}}}.png | {{{title|{{BASEPAGENAME}}}}}.png | No block image.png}} }}|150px|center|{{{title|{{BASEPAGENAME}}}}}]]{{ | ||
#if: {{{image2|}}} | <div style="padding-top: 1em">[[File:{{{image2}}}|150px|center]]</div> | #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: {{{image3|}}} | <div style="padding-top: 1em">[[File:{{{image3}}}|150px|center]]</div> | ||
}}{{ | }}{{ | ||
#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{BASEPAGENAME}}.png]]<span class="grid-input">[[File:Grid {{BASEPAGENAME}}.png]]</span></div></div> }} }} | #ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage}}} }}.png]]</span></div></div> | {{#ifexist: File:Grid {{{title|{{BASEPAGENAME}}}}}.png | <div style="padding-top: 1em; margin: 0 auto; display: table"><div style="display: table-row"><div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{{title|{{BASEPAGENAME}}}}}.png]]<span class="grid-input">[[File:Grid {{{title|{{BASEPAGENAME}}}}}.png]]</span></div></div> }} }} | ||
}}{{ | }}{{ | ||
#ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }} | #ifeq: {{lc: {{{invimage2}}} }} | none | | {{#if: {{{invimage2|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage2}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage2}}} }}.png]]</span></div></div> }} | ||
| Line 13: | Line 13: | ||
}}{{ | }}{{ | ||
#ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage4}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png]]</span></div></div> }} | #ifeq: {{lc: {{{invimage4}}} }} | none | | {{#if: {{{invimage4|}}} | <div style="display: table-cell"><div style="position: relative; width: 36px">[[File:Grid layout None (small).png|link=File:Grid {{ucfirst: {{{invimage4}}} }}.png]]<span class="grid-input">[[File:Grid {{ucfirst: {{{invimage4}}} }}.png]]</span></div></div> }} | ||
}}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div></div> | {{#ifexist: File:Grid {{BASEPAGENAME}}.png | </div></div> }} }} }} | }}{{#ifeq: {{lc: {{{invimage}}} }} | none | | {{#if: {{{invimage|}}} | </div></div> | {{#ifexist: File:Grid {{{title|{{BASEPAGENAME}}}}}.png | </div></div> }} }} }} | ||
| rows = | | rows = | ||
{{infobox row|label=Type|field= | {{infobox row|label=Type|field={{{type|?}}} }} | ||
{{ | {{ | ||
#switch: {{ lc: {{{type|solid}}} }} | #switch: {{ lc: {{{type|solid}}} }} | ||
| Line 23: | Line 23: | ||
| no = None | | no = None | ||
| sand = Sunlight and sand | | sand = Sunlight and sand | ||
| #default = | | #default = {{{dirt|?}}} | ||
}} }} | }} }} | ||
}} | }} | ||
{{infobox row|label=Physics|field= | {{infobox row|label=Physics|field={{{gravity|?}}} }} | ||
{{infobox row|label=[[Opacity|Transparency]]|field= | {{infobox row|label=[[Opacity|Transparency]]|field={{{transparent|?}}} }} | ||
{{infobox row|label=[[Light|Luminance]]|field= | {{infobox row|label=[[Light|Luminance]]|field={{{light|?}}} }} | ||
{{infobox row|label=[[Explosion#Blast_Resistance|Blast Resistance]] <sup>[{{fullurl|Template:Blast Resistance Values|action{{=}}edit|text=edit}}]</sup>|field={{ #if: {{{tntres|}}} | {{{tntres}}} | {{Blast Resistance Values | {{PAGENAME}} }} }} }} | {{infobox row|label=[[Explosion#Blast_Resistance|Blast Resistance]] <sup>[{{fullurl|Template:Blast Resistance Values|action{{=}}edit|text=edit}}]</sup>|field={{ #if: {{{tntres|}}} | {{{tntres}}} | {{Blast Resistance Values | {{PAGENAME}} }} }} }} | ||
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{ | {{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{ | ||
| Line 50: | Line 50: | ||
}} | }} | ||
}} }} | }} }} | ||
{{infobox row|label=Stackable|field= | {{infobox row|label=Stackable|field={{{stackable|N/A}}} }} | ||
{{ | {{ | ||
#switch: {{ lc: {{{type|fluid}}} }} | #switch: {{ lc: {{{type|fluid}}} }} | ||
| fluid = | | fluid = | ||
{{infobox row|label=Speed of fluid movement|field= | {{infobox row|label=Speed of fluid movement|field={{{fluidspeed|?}}} }} | ||
{{infobox row|label=Speed of walking through|field= | {{infobox row|label=Speed of walking through|field={{{movespeed|?}}} }} | ||
}} | }} | ||
{{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{dv|{{{data}}} }} }} }}{{#if: {{{multipledata|}}} | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }} }} | ||