Template:Infobox block: Difference between revisions

allow block names other than {{PAGENAME}} to be passed through to {{Blast Resistance Values}}
hmm... I didn't break it somehow, did I?
Line 29: Line 29:
{{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}}} | ? }} }}
{{infobox row|label=[[Explosion#Blast_Resistance|Blast Resistance]] <sup>[{{fullurl|Template:Blast Resistance Values|action{{=}}edit|text=edit}}]</sup>|field={{ #if: {{{tntres|}}} | {{ #iferror: {{ #expr: +{{{tntres}}} }} | {{Blast Resistance Values|{{{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|}}}
  | {{
    #iferror: {{ #expr: +{{{tntres}}} }}
    | {{Blast Resistance Values|{{{tntres}}}}}
    | {{{tntres}}}
  }}
  | {{Blast Resistance Values|{{PAGENAME}}}}
}} }}
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|field={{
   #switch: {{ lc: {{{tool|}}} }}
   #switch: {{ lc: {{{tool|}}} }}