Template:Infobox: Difference between revisions

27,003 bytes removed ,  12 years ago
switch to Lua implementation
m>Plastikspork
(Update per edit request)
m>Mr. Stradivarius
(switch to Lua implementation)
Line 1: Line 1:
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="3" style="{{#ifeq:{{{subbox|}}}|yes
{{#invoke:Infobox|infobox}}<noinclude>
|padding:0; border:none; border-spacing:3px; margin:-3px; width:auto; min-width:100%; font-size:100%; clear:none; float:none; background-color:transparent;
 
|border-spacing: 3px; width:22em;
{{documentation}}
}} {{{bodystyle|}}}"><!--
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
Caption
</noinclude>
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!--
Header
-->{{#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|{{{title|}}}}}<!--
Subheader1
-->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row
|data={{{subheader|{{{subheader1|}}}}}}
|datastyle={{{subheaderstyle|{{{subheaderstyle1|}}}}}}
|class={{{subheaderclass|}}}
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}}
}} }}<!--
Subheader2
-->{{#if:{{{subheader2|}}}|{{Infobox/row
|data={{{subheader2}}}
|datastyle={{{subheaderstyle|{{{subheaderstyle2|}}}}}}
|class={{{subheaderclass|}}}
|rowclass={{{subheaderrowclass2|}}}
}} }}<!--
Image1
-->{{#if:{{{image|{{{image1|}}}}}}|{{Infobox/row
|data={{{image|{{{image1}}} }}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}
|datastyle={{{imagestyle|}}}
|class={{{imageclass|}}}
|rowclass={{{imagerowclass1|}}}
}} }}<!--
Image2
-->{{#if:{{{image2|}}}|{{Infobox/row
|data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}
|datastyle={{{imagestyle|}}}
|class={{{imageclass|}}}
|rowclass={{{imagerowclass2|}}}
}} }}<!--
Image3
-->{{#if:{{{image3|}}}|{{Infobox/row
|data={{{image3}}}{{#if:{{{caption3|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption3}}}</span>}}
|datastyle={{{imagestyle|}}}
|class={{{imageclass|}}}
|rowclass={{{imagerowclass3|}}}
}} }}<!--
-->{{Infobox/row
|header={{{header1|}}} |headerstyle={{{headerstyle|}}}
|label={{{label1|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data1|}}}    |datastyle={{{datastyle|}}}
|class={{{class1|}}}  |rowclass={{{rowclass1|}}}
}}{{Infobox/row
|header={{{header2|}}} |headerstyle={{{headerstyle|}}}
|label={{{label2|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data2|}}}    |datastyle={{{datastyle|}}}
|class={{{class2|}}}  |rowclass={{{rowclass2|}}}
}}{{Infobox/row
|header={{{header3|}}} |headerstyle={{{headerstyle|}}}
|label={{{label3|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data3|}}}    |datastyle={{{datastyle|}}}
|class={{{class3|}}}  |rowclass={{{rowclass3|}}}
}}{{Infobox/row
|header={{{header4|}}} |headerstyle={{{headerstyle|}}}
|label={{{label4|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data4|}}}    |datastyle={{{datastyle|}}}
|class={{{class4|}}}  |rowclass={{{rowclass4|}}}
}}{{Infobox/row
|header={{{header5|}}} |headerstyle={{{headerstyle|}}}
|label={{{label5|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data5|}}}    |datastyle={{{datastyle|}}}
|class={{{class5|}}}  |rowclass={{{rowclass5|}}}
}}{{Infobox/row
|header={{{header6|}}} |headerstyle={{{headerstyle|}}}
|label={{{label6|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data6|}}}    |datastyle={{{datastyle|}}}
|class={{{class6|}}}  |rowclass={{{rowclass6|}}}
}}{{Infobox/row
|header={{{header7|}}} |headerstyle={{{headerstyle|}}}
|label={{{label7|}}}  |labelstyle={{{labelstyle|}}}
|data={{{data7|}}}�