Template:Infobox block: Difference between revisions

Use Template:InvSprite for actual tool icons
Remove type, gravity, hardness, flow speed, player movement speed, multiplevers, firstver/dev fields per talk.
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
<includeonly>{{#invoke:infobox|infobox
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{infobox row|label=Physics|field={{ #if: {{{gravity|}}} | {{{gravity}}} | ? }} }}
{{infobox row|label=[[Opacity|Transparency]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }}
{{infobox row|label=[[Opacity|Transparency]]|field={{ #if: {{{transparent|}}} | {{{transparent}}} | ? }} }}
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }}
{{infobox row|label=[[Light|Luminance]]|field={{ #if: {{{light|}}} | {{{light}}} | ? }} }}
Line 8: Line 6:
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
| {{{tntres}}}{{#if: {{NAMESPACE}} || {{translation category|project=0|Pages with overridden tntres}} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
| {{Blast resistance values | {{#if: {{{title|}}} | {{{title}}} | {{#titleparts: {{BASEPAGENAME}} }} }} }}
}} }}
{{infobox row|label=[[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=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{
Line 50: Line 44:
{{infobox row|label=Flammable|field={{ #if: {{{flammable|}}} | {{{flammable}}} | No }} }}
{{infobox row|label=Flammable|field={{ #if: {{{flammable|}}} | {{{flammable}}} | No }} }}
{{#if: {{{availability|}}} | {{infobox row|label=Availability|field={{{availability}}}}} }}
{{#if: {{{availability|}}} | {{infobox row|label=Availability|field={{{availability}}}}} }}
{{#ifeq: {{ lc: {{{type|solid}}} }} | fluid |
  {{infobox row|label=Flow speed|field={{ #if: {{{fluidspeed|}}} | {{{fluidspeed}}} | ? }} }}
  {{infobox row|label=Player movement speed|field={{ #if: {{{movespeed|}}} | {{{movespeed}}} | ? }} }}
}}
{{#if: {{{multiplevers|}}}
| {{infobox row|label=First appearances|field={{{multiplevers}}}{{#if: {{#pos: {{{multiplevers}}} | #History }}{{NAMESPACE}} || {{translation category|project=0|Update infobox history}} }}}}
| {{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
    }}{{#if: {{NAMESPACE}} || {{translation category|project=0|Update infobox history}} }}}}
  }}
}}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{infobox row|class={{#if: {{{drops|}}} | list-style-none }}|label=[[Drops]]|field={{{drops|Itself}}}}}
{{infobox row|class={{#if: {{{drops|}}} | list-style-none }}|label=[[Drops]]|field={{{drops|Itself}}}}}