Template:Infobox: Difference between revisions

(Created page with '{{{!}} class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"<!-- Caption -->{{#if:{{{title…')
 
(Updating from wp:Template:Infobox)
Line 1: Line 1:
{{{!}} class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"<!--
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; {{{bodystyle|}}}"><!--
  Caption
  Caption
-->{{#if:{{{title|}}}|<nowiki/>
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!--
{{!}}+
{{!}}class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}"{{!}}{{{title}}} }}<!--
  Header
  Header
-->{{#if:{{{above|}}}|<nowiki/>
-->{{#if:{{{above|}}}|<tr><th colspan=2 class="{{{aboveclass|}}}" style="text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}">{{{above}}}</th></tr>}}
{{!}}-
}}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!--
{{!}}colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}"{{!}}{{{above}}} }}<!--
Subheader1
Subheader
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row
-->{{#if:{{{subheader|}}}|<nowiki/>
|data={{{subheader|{{{subheader1|}}}}}}
{{!}}-
|datastyle={{{subheaderstyle|{{{subheaderstyle1|}}}}}}
{{!}}colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}"{{!}}{{{subheader}}} }}<!--
|class={{{subheaderclass|}}}
Image
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}}
-->{{#if:{{{image|}}}|<nowiki/>
}} }}<!--
{{!}}-
Subheader2
{{!}}colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"{{!}} {{{image}}} {{#if:{{{caption|}}}|<br />
-->{{#if:{{{subheader2|}}}|{{Infobox/row
<span style="{{{captionstyle|}}}">{{{caption}}}</span> }} }}<!--
|data={{{subheader2}}}
Row 1
|datastyle={{{subheaderstyle|{{{subheaderstyle2|}}}}}}
-->{{#if:{{{header1|}}}|<nowiki/>
|class={{{subheaderclass|}}}
{{!}}-
|rowclass={{{subheaderrowclass2|}}}
! colspan="2" style="text-align:center; {{{headerstyle|}}}"{{!}}{{{header1|}}} }}<!--
}} }}<!--
-->{{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<nowiki/>
Image1
{{!}}-
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
! style="{{{labelstyle|}}}"{{!}}{{{label1|}}}
|data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="
{{!}} class="{{{class1|}}}" style="{{{datastyle|}}}"{{!}}{{{data1|}}} }}|  {{#if:{{{data1|}}}|<nowiki/>
{{!}}-
{{!}}colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}"{{!}}{{{data1|}}} }} }}<!--
Row 2
-->{{#if:{{{header2|}}}|<nowiki/>
{{!}}-
! colspan="2" style="text-align:center; {{{headerstyle|}}}"{{!}}{{{header2|}}} }}<!--
-->{{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<nowiki/>
{{!}}-
! style="{{{labelstyle|}}}"{{!}}{{{label2|}}}
{{!}} class="{{{class2|}}}" style="{{{datastyle|}}}"{{!}}{{{data2|}}} }}|  {{#if:{{{data2|}}}|<nowiki/