Template:Infobox block: Difference between revisions

Undo revision 132340 by Hzy980512 (talk)
allow block names other than {{PAGENAME}} to be passed through to {{Blast Resistance Values}}
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|}}} | {{{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|}}} }}