Template:Infobox: Difference between revisions

63 bytes added ,  11:32, 31 July 2023
m
Make image caption line breaks optional with nobr
(Create template)
 
m (Make image caption line breaks optional with nobr)
Line 24: Line 24:
  Image1
  Image1
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
  |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}
  |data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|{{#if:{{{nobr|}}}||<br />}}<span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}
  |datastyle={{{imagestyle|}}}
  |datastyle={{{imagestyle|}}}
  |class={{{imageclass|}}}
  |class={{{imageclass|}}}
Line 31: Line 31:
  Image2
  Image2
-->{{#if:{{{image2|}}}|{{Infobox/row
-->{{#if:{{{image2|}}}|{{Infobox/row
  |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}
  |data={{{image2}}}{{#if:{{{caption2|}}}|{{#if:{{{nobr|}}}||<br />}}<span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}
  |datastyle={{{imagestyle|}}}
  |datastyle={{{imagestyle|}}}
  |class={{{imageclass|}}}
  |class={{{imageclass|}}}
Line 38: Line 38:
  Image3
  Image3
-->{{#if:{{{image3|}}}|{{Infobox/row
-->{{#if:{{{image3|}}}|{{Infobox/row
  |data={{{image3}}}{{#if:{{{caption3|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption3}}}</span>}}
  |data={{{image3}}}{{#if:{{{caption3|}}}|{{#if:{{{nobr|}}}||<br />}}<span style="{{{captionstyle|}}}">{{{caption3}}}</span>}}
  |datastyle={{{imagestyle|}}}
  |datastyle={{{imagestyle|}}}
  |class={{{imageclass|}}}
  |class={{{imageclass|}}}