Template:Infobox block: Difference between revisions

simplify, default template arguments should be enough in this case
m more simplifications
Line 5: Line 5:
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
{{infobox row|label=[[Explosion#Blast resistance|Blast resistance]]|field={{ #if: {{{tntres|}}}
| {{{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 | {{{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 41: Line 41:
}} }}
}} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{{renewable|?}}} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{{renewable|?}}} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
{{infobox row|label=Stackable|field={{{stackable| N/A }}} }}
{{infobox row|label=Flammable|field={{ #if: {{{flammable|}}} | {{{flammable}}} | No }} }}
{{infobox row|label=Flammable|field={{{flammable| No }}} }}
{{#if: {{{availability|}}} | {{infobox row|label=Availability|field={{{availability}}}}} }}
{{#if: {{{availability|}}} | {{infobox row|label=Availability|field={{{availability}}}}} }}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
Line 56: Line 56:
   | {{#if: {{NAMESPACE}}
   | {{#if: {{NAMESPACE}}
     | ?
     | ?
     | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
     | {{lc: {{#replace: {{{title| {{BASEPAGENAME}} }}} || _ }} }}
     }}
     }}
   }}}}
   }}}}