Difference between revisions of "Template:Infobox"

From CTWUG Wiki
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
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 -->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}
<!--
+
<!-- Subheader -->{{#if:{{{subheader|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader}}}</td></tr>}}
Header
+
<!-- Image -->{{#if:{{{image|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br />
-->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}<!--
+
<span style="{{{captionstyle|}}}">{{{caption}}}</span> }}</td></tr>}}
Subheader
+
<!-- Row 1 -->{{#if:{{{header1|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header1|}}}</th></tr>| {{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<tr><th style="{{{labelstyle|}}}">{{{label1|}}}</th><td class="{{{class1|}}}" style="{{{datastyle|}}}">{{{data1|}}}</td></tr>}}|  {{#if:{{{data1|}}}|<tr><td colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}">{{{data1|}}}</td></tr>}} }} }}
-->{{#if:{{{subheader|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader}}}</td></tr>}}<!--
+
<!-- Row 2 -->{{#if:{{{header2|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header2|}}}</th></tr>| {{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<tr><th style="{{{labelstyle|}}}">{{{label2|}}}</th><td class="{{{class2|}}}" style="{{{datastyle|}}}">{{{data2|}}}</td></tr>}}|  {{#if:{{{data2|}}}|<tr><td colspan="2" class="{{{class2|}}}" style="text-align:center; {{{datastyle|}}}">{{{data2|}}}</td></tr>}} }} }}
Image
+
<!-- Row 3 -->{{#if:{{{header3|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header3|}}}</th></tr>| {{#if:{{{label3|}}}|{{#if:{{{data3|}}}|<tr><th style="{{{labelstyle|}}}">{{{label3|}}}</th><td class="{{{class3|}}}" style="{{{datastyle|}}}">{{{data3|}}}</td></tr>}}|  {{#if:{{{data3|}}}|<tr><td colspan="2" class="{{{class3|}}}" style="text-align:center; {{{datastyle|}}}">{{{data3|}}}</td></tr>}} }} }}
-->{{#if:{{{image|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image}}} {{#if:{{{caption|}}}|<br />
+
<!-- Row 4 -->{{#if:{{{header4|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header4|}}}</th></tr>| {{#if:{{{label4|}}}|{{#if:{{{data4|}}}|<tr><th style="{{{labelstyle|}}}">{{{label4|}}}</th><td class="{{{class4|}}}" style="{{{datastyle|}}}">{{{data4|}}}</td></tr>}}|  {{#if:{{{data4|}}}|<tr><td colspan="2" class="{{{class4|}}}" style="text-align:center; {{{datastyle|}}}">{{{data4|}}}</td></tr>}} }} }}
<span style="{{{captionstyle|}}}">{{{caption}}}</span> }}</td></tr>}}<!--
+
<!-- Row 5 -->{{#if:{{{header5|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header5|}}}</th></tr>| {{#if:{{{label5|}}}|{{#if:{{{data5|}}}|<tr><th style="{{{labelstyle|}}}">{{{label5|}}}</th><td class="{{{class5|}}}" style="{{{datastyle|}}}">{{{data5|}}}</td></tr>}}|  {{#if:{{{data5|}}}|<tr><td colspan="2" class="{{{class5|}}}" style="text-align:center; {{{datastyle|}}}">{{{data5|}}}</td></tr>}} }} }}<!--
Row 1
 
-->{{#if:{{{header1|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header1|}}}</th></tr>| {{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<tr><th style="{{{labelstyle|}}}">{{{label1|}}}</th><td class="{{{class1|}}}" style="{{{datastyle|}}}">{{{data1|}}}</td></tr>}}|  {{#if:{{{data1|}}}|<tr><td colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}">{{{data1|}}}</td></tr>}} }} }}<!--
 
Row 2
 
-->{{#if:{{{header2|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header2|}}}</th></tr>| {{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<tr><th style="{{{labelstyle|}}}">{{{label2|}}}</th><td class="{{{class2|}}}" style="{{{datastyle|}}}">{{{data2|}}}</td></tr>}}|  {{#if:{{{data2|}}}|<tr><td colspan="2" class="{{{class2|}}}" style="text-align:center; {{{datastyle|}}}">{{{data2|}}}</td></tr>}} }} }}<!--
 
Row 3
 
-->{{#if:{{{header3|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header3|}}}</th></tr>| {{#if:{{{label3|}}}|{{#if:{{{data3|}}}|<tr><th style="{{{labelstyle|}}}">{{{label3|}}}</th><td class="{{{class3|}}}" style="{{{datastyle|}}}">{{{data3|}}}</td></tr>}}|  {{#if:{{{data3|}}}|<tr><td colspan="2" class="{{{class3|}}}" style="text-align:center; {{{datastyle|}}}">{{{data3|}}}</td></tr>}} }} }}<!--
 
Row 4
 
-->{{#if:{{{header4|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header4|}}}</th></tr>| {{#if:{{{label4|}}}|{{#if:{{{data4|}}}|<tr><th style="{{{labelstyle|}}}">{{{label4|}}}</th><td class="{{{class4|}}}" style="{{{datastyle|}}}">{{{data4|}}}</td></tr>}}|  {{#if:{{{data4|}}}|<tr><td colspan="2" class="{{{class4|}}}" style="text-align:center; {{{datastyle|}}}">{{{data4|}}}</td></tr>}} }} }}<!--
 
Row 5
 
-->{{#if:{{{header5|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header5|}}}</th></tr>| {{#if:{{{label5|}}}|{{#if:{{{data5|}}}|<tr><th style="{{{labelstyle|}}}">{{{label5|}}}</th><td class="{{{class5|}}}" style="{{{datastyle|}}}">{{{data5|}}}</td></tr>}}|  {{#if:{{{data5|}}}|<tr><td colspan="2" class="{{{class5|}}}" style="text-align:center; {{{datastyle|}}}">{{{data5|}}}</td></tr>}} }} }}<!--
 
 
  Row 6
 
  Row 6
 
-->{{#if:{{{header6|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header6|}}}</th></tr>| {{#if:{{{label6|}}}|{{#if:{{{data6|}}}|<tr><th style="{{{labelstyle|}}}">{{{label6|}}}</th><td class="{{{class6|}}}" style="{{{datastyle|}}}">{{{data6|}}}</td></tr>}}|  {{#if:{{{data6|}}}|<tr><td colspan="2" class="{{{class6|}}}" style="text-align:center; {{{datastyle|}}}">{{{data6|}}}</td></tr>}} }} }}<!--
 
-->{{#if:{{{header6|}}}|<tr><th colspan="2" style="text-align:center; {{{headerstyle|}}}">{{{header6|}}}</th></tr>| {{#if:{{{label6|}}}|{{#if:{{{data6|}}}|<tr><th style="{{{labelstyle|}}}">{{{label6|}}}</th><td class="{{{class6|}}}" style="{{{datastyle|}}}">{{{data6|}}}</td></tr>}}|  {{#if:{{{data6|}}}|<tr><td colspan="2" class="{{{class6|}}}" style="text-align:center; {{{datastyle|}}}">{{{data6|}}}</td></tr>}} }} }}<!--
Line 175: Line 165:
 
-->{{#if:{{{name|}}}|<tr><td style="text-align:right;" colspan="2">{{Tnavbar|{{{name}}}}}</td></tr>}}
 
-->{{#if:{{{name|}}}|<tr><td style="text-align:right;" colspan="2">{{Tnavbar|{{{name}}}}}</td></tr>}}
 
</table>
 
</table>
 +
 +
<noinclude>
 +
==Example==
 +
{{Infobox
 +
|name    = Infobox/doc
 +
|title  = Test Infobox
 +
|image  = [[Image:example.png|200px]]
 +
|caption = Caption for example.png
 +
 +
|headerstyle  = background:#ccf;
 +
|bodyclass    = bordered
 +
|labelstyle  = background:#ddf;
 +
 +
|header1 = Header defined alone
 +
|label1  =
 +
|data1  =
 +
|header2 =
 +
|label2  = Label defined alone
 +
|data2  =
 +
|header3 =
 +
|label3  =
 +
|data3  = Data defined alone
 +
|header4 = All three defined (header)
 +
|label4  = All three defined (label)
 +
|data4  = All three defined (data)
 +
|header5 =
 +
|label5  = Label and data defined (label)
 +
|data5  = Label and data defined (data)
 +
 +
|belowstyle = background:#ddf;
 +
|below = Below text
 +
}}
 +
 +
<pre>
 +
{{Infobox
 +
|name    = Infobox/doc
 +
|title  = Test Infobox
 +
|image  = [[Image:example.png|200px]]
 +
|caption = Caption for example.png
 +
 +
|headerstyle  = background:#ccf;
 +
|bodyclass    = bordered
 +
|labelstyle  = background:#ddf;
 +
 +
|header1 = Header defined alone
 +
|label1  =
 +
|data1  =
 +
|header2 =
 +
|label2  = Label defined alone
 +
|data2  =
 +
|header3 =
 +
|label3  =
 +
|data3  = Data defined alone
 +
|header4 = All three defined (header)
 +
|label4  = All three defined (label)
 +
|data4  = All three defined (data)
 +
|header5 =
 +
|label5  = Label and data defined (label)
 +
|data5  = Label and data defined (data)
 +
 +
|belowstyle = background:#ddf;
 +
|below = Below text
 +
}}
 +
</pre>
 +
 +
'''Full blank syntax'''
 +
(Note: the template currently handles up to 80 rows; only 20 are included here since infoboxes larger than that will be relatively rare. Just extend the numbering as needed. The microformat "class" parameters are also omitted as they are not commonly used.)
 +
 +
<pre>
 +
{{Infobox
 +
|name        = {{subst:PAGENAME}}
 +
|bodystyle    =
 +
|title        =
 +
|titlestyle  =
 +
|above        =
 +
|abovestyle  =
 +
|image        =
 +
|imagestyle  =
 +
|caption      =
 +
|captionstyle =
 +
|headerstyle  =
 +
|labelstyle  =
 +
|datastyle    =
 +
 +
|header1  =
 +
|label1  =
 +
|data1    =
 +
|header2  =
 +
|label2  =
 +
|data2    =
 +
|header3  =
 +
|label3  =
 +
|data3    =
 +
|header4  =
 +
|label4  =
 +
|data4    =
 +
|header5  =
 +
|label5  =
 +
|data5    =
 +
|header6  =
 +
|label6  =
 +
|data6    =
 +
|header7  =
 +
|label7  =
 +
|data7    =
 +
|header8  =
 +
|label8  =
 +
|data8    =
 +
|header9  =
 +
|label9  =
 +
|data9    =
 +
|header10 =
 +
|label10  =
 +
|data10  =
 +
|header11 =
 +
|label11  =
 +
|data11  =
 +
|header12 =
 +
|label12  =
 +
|data12  =
 +
|header13 =
 +
|label13  =
 +
|data13  =
 +
|header14 =
 +
|label14  =
 +
|data14  =
 +
|header15 =
 +
|label15  =
 +
|data15  =
 +
|header16 =
 +
|label16  =
 +
|data16  =
 +
|header17 =
 +
|label17  =
 +
|data17  =
 +
|header18 =
 +
|label18  =
 +
|data18  =
 +
|header19 =
 +
|label19  =
 +
|data19  =
 +
|header20 =
 +
|label20  =
 +
|data20  =
 +
 +
|belowstyle =
 +
|below =
 +
}}
 +
</pre>
 +
</noinclude>

Latest revision as of 15:52, 13 November 2008

{{#if:|}} {{#if:|}} {{#if:|}} {{#if:|}} {{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }} {{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }} {{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }} {{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }} {{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|}}{{#if:|}}
{{{title}}}
{{{above}}}
{{{subheader}}}
{{{image}}} {{#if:|
{{{caption}}} }}
Template:Tnavbar


Example

{{#if:Test Infobox|}} {{#if:|}} {{#if:|}} {{#if:200px|}} {{#if:Header defined alone|| {{#if:|{{#if:|}}| {{#if:|}} }} }} {{#if:|| {{#if:Label defined alone|{{#if:|}}| {{#if:|}} }} }} {{#if:|| {{#if:|{{#if:Data defined alone|}}| {{#if:Data defined alone|}} }} }} {{#if:All three defined (header)|| {{#if:All three defined (label)|{{#if:All three defined (data)|}}| {{#if:All three defined (data)|}} }} }} {{#if:|| {{#if:Label and data defined (label)|{{#if:Label and data defined (data)|}}| {{#if:Label and data defined (data)|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:|| {{#if:|{{#if:|}}| {{#if:|}} }} }}{{#if:Below text|}}{{#if:Infobox/doc|}}
Test Infobox
{{{above}}}
{{{subheader}}}
200px {{#if:Caption for example.png|
Caption for example.png }}
Header defined alone
Label defined alone
Data defined alone
Data defined alone
All three defined (header)
All three defined (label)All three defined (data)
All three defined (data)
Label and data defined (label)Label and data defined (data)
Label and data defined (data)
Below text
Template:Tnavbar


{{Infobox
|name    = Infobox/doc
|title   = Test Infobox
|image   = [[Image:example.png|200px]]
|caption = Caption for example.png

|headerstyle  = background:#ccf;
|bodyclass    = bordered
|labelstyle   = background:#ddf;

|header1 = Header defined alone
|label1  = 
|data1   = 
|header2 = 
|label2  = Label defined alone
|data2   = 
|header3 = 
|label3  = 
|data3   = Data defined alone
|header4 = All three defined (header)
|label4  = All three defined (label)
|data4   = All three defined (data)
|header5 = 
|label5  = Label and data defined (label)
|data5   = Label and data defined (data)

|belowstyle = background:#ddf;
|below = Below text
}}

Full blank syntax (Note: the template currently handles up to 80 rows; only 20 are included here since infoboxes larger than that will be relatively rare. Just extend the numbering as needed. The microformat "class" parameters are also omitted as they are not commonly used.)

{{Infobox
|name         = {{subst:PAGENAME}}
|bodystyle    = 
|title        = 
|titlestyle   = 
|above        = 
|abovestyle   = 
|image        = 
|imagestyle   = 
|caption      = 
|captionstyle = 
|headerstyle  = 
|labelstyle   = 
|datastyle    = 

|header1  = 
|label1   = 
|data1    = 
|header2  = 
|label2   = 
|data2    = 
|header3  = 
|label3   = 
|data3    = 
|header4  = 
|label4   = 
|data4    = 
|header5  = 
|label5   = 
|data5    = 
|header6  = 
|label6   = 
|data6    = 
|header7  = 
|label7   = 
|data7    = 
|header8  = 
|label8   = 
|data8    = 
|header9  = 
|label9   = 
|data9    = 
|header10 = 
|label10  = 
|data10   = 
|header11 = 
|label11  = 
|data11   = 
|header12 = 
|label12  = 
|data12   = 
|header13 = 
|label13  = 
|data13   = 
|header14 = 
|label14  = 
|data14   = 
|header15 = 
|label15  = 
|data15   = 
|header16 = 
|label16  = 
|data16   = 
|header17 = 
|label17  = 
|data17   = 
|header18 = 
|label18  = 
|data18   = 
|header19 = 
|label19  = 
|data19   = 
|header20 = 
|label20  = 
|data20   = 

|belowstyle =
|below = 
}}