Difference between revisions of "Template:Infobox"
From Timelines
m (moved noinclude up a line to prevent excess whitespace) |
(pass rowclass parameters to /row) |
||
Line 1: | Line 1: | ||
− | <table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"><!-- | + | <table class="infobox {{{bodyclass|}}}" cellspacing="5" style="width:22em; text-align:left; font-size:88%; line-height:1.5em; {{{bodystyle|}}}"><!-- |
Caption | Caption | ||
− | -->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size: 125%; font-weight: bold; {{{titlestyle|}}}">{{{title}}}</caption>}} | + | -->{{#if:{{{title|}}}|<caption class="{{{titleclass|}}}" style="font-size:125%; font-weight:bold; {{{titlestyle|}}}">{{{title}}}</caption>}}<!-- |
− | <!-- | ||
Header | Header | ||
− | -->{{#if:{{{above|}}}|<tr>< | + | -->{{#if:{{{above|}}}|<tr><th colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size:125%; font-weight:bold; {{{abovestyle|}}}">{{{above}}}</th></tr>}}<!-- |
− | + | Subheader1 | |
− | -->{{#if:{{{subheader|{{{subheader1|}}}}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader|{{{subheader1 | + | -->{{#if:{{{subheader|{{{subheader1|}}}}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader|{{{subheader1}}}}}}</td></tr>}}<!-- |
− | + | Subheader2 | |
-->{{#if:{{{subheader2|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader2}}}</td></tr>}}<!-- | -->{{#if:{{{subheader2|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader2}}}</td></tr>}}<!-- | ||
− | + | Image1 | |
− | -->{{#if:{{{image|{{{image1|}}}}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image|{{{image1 | + | -->{{#if:{{{image|{{{image1|}}}}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}">{{{image|{{{image1}}}}}}{{#if:{{{caption|{{{caption1|}}}}}}|<br /><span style="{{{captionstyle|}}}">{{{caption|{{{caption1}}}}}}</span>}}</td></tr>}}<!-- |
− | <span style="{{{captionstyle|}}}">{{{caption|{{{caption1 | + | Image2 |
− | + | -->{{#if:{{{image2|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}">{{{image2}}}{{#if:{{{caption2|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption2}}}</span>}}</td></tr>}}<!-- | |
− | -->{{#if:{{{image2|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image2}}} {{#if:{{{caption2|}}}|<br /> | ||
− | <span style="{{{captionstyle|}}}">{{{caption2}}}</span> }}</td></tr>}}<!-- | ||
− | |||
-->{{Infobox/row | -->{{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={{ | |
− | |||
Navbar | Navbar | ||
− | -->{{#if:{{{name|}}}|<tr><td style="text-align:right | + | -->{{#if:{{{name|}}}|<tr><td colspan="2" style="text-align:right">{{navbar|{{{name}}}|noedit={{{noedit|0}}}}}</td></tr>}} |
</table><noinclude> | </table><noinclude> | ||
{{pp-template|small=yes}} | {{pp-template|small=yes}} | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 07:57, 6 September 2009
Lua error in Module:Effective_protection_level at line 60: attempt to index field 'TitleBlacklist' (a nil value).
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |