Template:Infobox: Difference between revisions

remove double evaluations
m>TheDJ
(headers -> infobox/row)
m>Edokter
(remove double evaluations)
Line 4: Line 4:
  Header
  Header
-->{{#if:{{{above|}}}|{{Infobox/row
-->{{#if:{{{above|}}}|{{Infobox/row
  |header={{{above|}}} |headerstyle=text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}
  |header={{{above}}} |headerstyle=text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}
  |class={{{aboveclass|}}} |rowclass={{{aboverowclass|}}}
  |class={{{aboveclass|}}} |rowclass={{{aboverowclass|}}}
}} }}<!--
}} }}<!--
  Subheader1
  Subheader1
-->{{#if:{{{subheader|}}}|{{Infobox/row
-->{{#if:{{{subheader|}}}|{{Infobox/row
  |data={{{subheader|}}}    |datastyle={{{subheaderstyle|}}}
  |data={{{subheader}}}    |datastyle={{{subheaderstyle|}}}
  |class={{{subheaderclass|}}}  |rowclass={{{subheaderrowclass1|}}}
  |class={{{subheaderclass|}}}  |rowclass={{{subheaderrowclass1|}}}
}} }}<!--
}} }}<!--
  Subheader2
  Subheader2
-->{{#if:{{{subheader2|}}}|{{Infobox/row
-->{{#if:{{{subheader2|}}}|{{Infobox/row
  |data={{{subheader2|}}}    |datastyle={{{subheaderstyle|}}}
  |data={{{subheader2}}}    |datastyle={{{subheaderstyle|}}}
  |class={{{subheaderclass|}}}  |rowclass={{{subheaderrowclass2|}}}
  |class={{{subheaderclass|}}}  |rowclass={{{subheaderrowclass2|}}}
}} }}<!--
}} }}<!--
Line 24: Line 24:
  Image2
  Image2
-->{{#if:{{{image2|}}}|{{Infobox/row
-->{{#if:{{{image2|}}}|{{Infobox/row
  |data={{{image2|}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2|}}}</span>}}    |datastyle={{{imagestyle|}}}
  |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}    |datastyle={{{imagestyle|}}}
  |class={{{imageclass|}}}  |rowclass={{{imagerowclass2|}}}
  |class={{{imageclass|}}}  |rowclass={{{imagerowclass2|}}}
}} }}<!--
}} }}<!--
Anonymous user