Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
Moving widht back in, as it is template specific.
No edit summary |
(Moving widht back in, as it is template specific.) |
||
Line 1: | Line 1: | ||
<table | {{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; {{{bodystyle|}}}"><!-- | ||
Caption | Caption | ||
-->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style=" | -->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="{{{titlestyle|}}}">{{{title}}}</caption>}}<!-- | ||
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|}}} | ||
}} }}<!-- | }} }} }}{{#ifeq:{{{child|}}}|yes|{{#if:{{{title|}}}|'''{{{title}}}'''}}}}<!-- | ||
Subheader1 | Subheader1 | ||
-->{{#if:{{{subheader|}}}|{{Infobox/row | -->{{#if:{{{subheader|{{{subheader1|}}}}}}|{{Infobox/row | ||
|data={{{subheader}}} | |data={{{subheader|{{{subheader1|}}}}}} | ||
|class={{{subheaderclass|}}} | |datastyle={{{subheaderstyle|}}} | ||
|class={{{subheaderclass|}}} | |||
|rowclass={{{subheaderrowclass|{{{subheaderrowclass1|}}}}}} | |||
}} }}<!-- | }} }}<!-- | ||
Subheader2 | Subheader2 | ||
-->{{#if:{{{subheader2|}}}|{{Infobox/row | -->{{#if:{{{subheader2|}}}|{{Infobox/row | ||
|data={{{subheader2}}} | |data={{{subheader2}}} | ||
|class={{{subheaderclass|}}} | |datastyle={{{subheaderstyle|}}} | ||
|class={{{subheaderclass|}}} | |||
|rowclass={{{subheaderrowclass2|}}} | |||
}} }}<!-- | }} }}<!-- | ||
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|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}} | ||
|class={{{imageclass|}}} | |datastyle={{{imagestyle|}}} | ||
|class={{{imageclass|}}} | |||
|rowclass={{{imagerowclass1|}}} | |||
}} }}<!-- | }} }}<!-- | ||
Image2 | Image2 | ||
-->{{#if:{{{image2|}}}|{{Infobox/row | -->{{#if:{{{image2|}}}|{{Infobox/row | ||
|data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}} | |data={{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}} | ||
|class={{{imageclass|}}} | |datastyle={{{imagestyle|}}} | ||
|class={{{imageclass|}}} | |||
|rowclass={{{imagerowclass2|}}} | |||
}} }}<!-- | }} }}<!-- | ||
-->{{Infobox/row | -->{{Infobox/row | ||
Line 430: | Line 438: | ||
-->{{#if:{{{below|}}}|<tr><td colspan="2" class="{{{belowclass|}}}" style="text-align:center; {{{belowstyle|}}}">{{{below}}}</td></tr>}}<!-- | -->{{#if:{{{below|}}}|<tr><td colspan="2" class="{{{belowclass|}}}" style="text-align:center; {{{belowstyle|}}}">{{{below}}}</td></tr>}}<!-- | ||
Navbar | Navbar | ||
-->{{#if:{{{name|}}}|<tr><td colspan="2" style="text-align:right">{{navbar|{{{name}}}| | -->{{#if:{{{name|}}}|<tr><td colspan="2" style="text-align:right">{{navbar|{{{name}}}|mini=1}}</td></tr>}} | ||
</table>< | {{#ifeq:{{{child|}}}|yes||</table>}}{{#switch:{{lc:{{{italic title|¬}}}}} | ||
{{ | |¬|no = <!-- no italic title --> | ||
||force|yes = {{italic title|force={{#ifeq:{{lc:{{{italic title|}}}}}|force|true}}}} | |||
}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |