Template:Infobox: Difference between revisions
(Looks like 25em is standard after all, according to Wikipedia:Manual of Style (infoboxes)) |
(doubling capacity to handle infoboxes of up to 40 rows.) |
||
Line 46: | Line 46: | ||
Row 20 | Row 20 | ||
-->{{#if:{{{header20|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header20}}}</th></tr>| {{#if:{{{label20|}}}|{{#if:{{{data20|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label20}}}</th><td style="{{{datastyle|}}}">{{{data20|}}}</td></tr>}}| {{#if:{{{data20|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data20|}}}</td></tr>}} }} }}<!-- | -->{{#if:{{{header20|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header20}}}</th></tr>| {{#if:{{{label20|}}}|{{#if:{{{data20|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label20}}}</th><td style="{{{datastyle|}}}">{{{data20|}}}</td></tr>}}| {{#if:{{{data20|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data20|}}}</td></tr>}} }} }}<!-- | ||
Row 21 | |||
-->{{#if:{{{header21|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header21}}}</th></tr>| {{#if:{{{label21|}}}|{{#if:{{{data21|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label21}}}</th><td style="{{{datastyle|}}}">{{{data21|}}}</td></tr>}}| {{#if:{{{data21|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data21|}}}</td></tr>}} }} }}<!-- | |||
Row 22 | |||
-->{{#if:{{{header22|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header22}}}</th></tr>| {{#if:{{{label22|}}}|{{#if:{{{data22|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label22}}}</th><td style="{{{datastyle|}}}">{{{data22|}}}</td></tr>}}| {{#if:{{{data22|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data22|}}}</td></tr>}} }} }}<!-- | |||
Row 23 | |||
-->{{#if:{{{header23|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header23}}}</th></tr>| {{#if:{{{label23|}}}|{{#if:{{{data23|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label23}}}</th><td style="{{{datastyle|}}}">{{{data23|}}}</td></tr>}}| {{#if:{{{data23|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data23|}}}</td></tr>}} }} }}<!-- | |||
Row 24 | |||
-->{{#if:{{{header24|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header24}}}</th></tr>| {{#if:{{{label24|}}}|{{#if:{{{data24|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label24}}}</th><td style="{{{datastyle|}}}">{{{data24|}}}</td></tr>}}| {{#if:{{{data24|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data24|}}}</td></tr>}} }} }}<!-- | |||
Row 25 | |||
-->{{#if:{{{header25|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header25}}}</th></tr>| {{#if:{{{label25|}}}|{{#if:{{{data25|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label25}}}</th><td style="{{{datastyle|}}}">{{{data25|}}}</td></tr>}}| {{#if:{{{data25|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data25|}}}</td></tr>}} }} }}<!-- | |||
Row 26 | |||
-->{{#if:{{{header26|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header26}}}</th></tr>| {{#if:{{{label26|}}}|{{#if:{{{data26|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label26}}}</th><td style="{{{datastyle|}}}">{{{data26|}}}</td></tr>}}| {{#if:{{{data26|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data26|}}}</td></tr>}} }} }}<!-- | |||
Row 27 | |||
-->{{#if:{{{header27|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header27}}}</th></tr>| {{#if:{{{label27|}}}|{{#if:{{{data27|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label27}}}</th><td style="{{{datastyle|}}}">{{{data27|}}}</td></tr>}}| {{#if:{{{data27|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data27|}}}</td></tr>}} }} }}<!-- | |||
Row 28 | |||
-->{{#if:{{{header28|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header28}}}</th></tr>| {{#if:{{{label28|}}}|{{#if:{{{data28|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label28}}}</th><td style="{{{datastyle|}}}">{{{data28|}}}</td></tr>}}| {{#if:{{{data28|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data28|}}}</td></tr>}} }} }}<!-- | |||
Row 29 | |||
-->{{#if:{{{header29|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header29}}}</th></tr>| {{#if:{{{label29|}}}|{{#if:{{{data29|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label29}}}</th><td style="{{{datastyle|}}}">{{{data29|}}}</td></tr>}}| {{#if:{{{data29|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data29|}}}</td></tr>}} }} }}<!-- | |||
Row 30 | |||
-->{{#if:{{{header30|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header30}}}</th></tr>| {{#if:{{{label30|}}}|{{#if:{{{data30|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label30}}}</th><td style="{{{datastyle|}}}">{{{data30|}}}</td></tr>}}| {{#if:{{{data30|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data30|}}}</td></tr>}} }} }}<!-- | |||
Row 31 | |||
-->{{#if:{{{header31|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header31}}}</th></tr>| {{#if:{{{label31|}}}|{{#if:{{{data31|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label31}}}</th><td style="{{{datastyle|}}}">{{{data31|}}}</td></tr>}}| {{#if:{{{data31|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data31|}}}</td></tr>}} }} }}<!-- | |||
Row 32 | |||
-->{{#if:{{{header32|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header32}}}</th></tr>| {{#if:{{{label32|}}}|{{#if:{{{data32|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label32}}}</th><td style="{{{datastyle|}}}">{{{data32|}}}</td></tr>}}| {{#if:{{{data32|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data32|}}}</td></tr>}} }} }}<!-- | |||
Row 33 | |||
-->{{#if:{{{header33|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header33}}}</th></tr>| {{#if:{{{label33|}}}|{{#if:{{{data33|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label33}}}</th><td style="{{{datastyle|}}}">{{{data33|}}}</td></tr>}}| {{#if:{{{data33|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data33|}}}</td></tr>}} }} }}<!-- | |||
Row 34 | |||
-->{{#if:{{{header34|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header34}}}</th></tr>| {{#if:{{{label34|}}}|{{#if:{{{data34|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label34}}}</th><td style="{{{datastyle|}}}">{{{data34|}}}</td></tr>}}| {{#if:{{{data34|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data34|}}}</td></tr>}} }} }}<!-- | |||
Row 35 | |||
-->{{#if:{{{header35|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header35}}}</th></tr>| {{#if:{{{label35|}}}|{{#if:{{{data35|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label35}}}</th><td style="{{{datastyle|}}}">{{{data35|}}}</td></tr>}}| {{#if:{{{data35|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data35|}}}</td></tr>}} }} }}<!-- | |||
Row 36 | |||
-->{{#if:{{{header36|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header36}}}</th></tr>| {{#if:{{{label36|}}}|{{#if:{{{data36|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label36}}}</th><td style="{{{datastyle|}}}">{{{data36|}}}</td></tr>}}| {{#if:{{{data36|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data36|}}}</td></tr>}} }} }}<!-- | |||
Row 37 | |||
-->{{#if:{{{header37|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header37}}}</th></tr>| {{#if:{{{label37|}}}|{{#if:{{{data37|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label37}}}</th><td style="{{{datastyle|}}}">{{{data37|}}}</td></tr>}}| {{#if:{{{data37|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data37|}}}</td></tr>}} }} }}<!-- | |||
Row 38 | |||
-->{{#if:{{{header38|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header38}}}</th></tr>| {{#if:{{{label38|}}}|{{#if:{{{data38|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label38}}}</th><td style="{{{datastyle|}}}">{{{data38|}}}</td></tr>}}| {{#if:{{{data38|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data38|}}}</td></tr>}} }} }}<!-- | |||
Row 39 | |||
-->{{#if:{{{header39|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header39}}}</th></tr>| {{#if:{{{label39|}}}|{{#if:{{{data39|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label39}}}</th><td style="{{{datastyle|}}}">{{{data39|}}}</td></tr>}}| {{#if:{{{data39|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data39|}}}</td></tr>}} }} }}<!-- | |||
Row 40 | |||
-->{{#if:{{{header40|}}}|<tr><th colspan="2" style="text-align:center; background:#ccf; {{{headerstyle|}}}">{{{header40}}}</th></tr>| {{#if:{{{label40|}}}|{{#if:{{{data40|}}}|<tr><th style="background:#ddf; {{{labelstyle|}}}">{{{label40}}}</th><td style="{{{datastyle|}}}">{{{data40|}}}</td></tr>}}| {{#if:{{{data40|}}}|<tr><td colspan="2" style="{{{datastyle|}}}">{{{data40|}}}</td></tr>}} }} }}<!-- | |||
Below | Below | ||
-->{{#if:{{{below|}}}|<tr><td colspan="2" style="background:#ddf; text-align:center; font-size:small; font-style:italic; {{{belowstyle|}}}">{{{below|}}}</td></tr>}} | -->{{#if:{{{below|}}}|<tr><td colspan="2" style="background:#ddf; text-align:center; font-size:small; font-style:italic; {{{belowstyle|}}}">{{{below|}}}</td></tr>}} |
Revision as of 06:39, 25 January 2008
Template:Tnavbar {{{title}}} |
This is a flexible generic infobox with customize-able fields. It is made using infobox parts. It is intended to be used in situations that require a one-time infobox that is not reused enough for a dedicated template. It is not intended to be a template called to make another infobox template. For information on how to make an infobox using these parts, observe this page's source code or see Template:Infobox example.
Usage
{{infobox | class = | name = | image = | description = | section1 = | info1 = | info1value = | section2 = | info2 = | info2value = | section3 = | info3 = | info3value = | section4 = | info4 = | info4value = | section5 = | info5 = | info5value = | section6 = | info6 = | info6value = | section7 = | info7 = | info7value = }}
Parameters
class
- Optional. Adds a second class to the infobox, allowing for customizing individual or groups of infoboxes. See Template:Infobox start/doc for more info.image
- Images should be formatted asimage.jpg
. The[[ ]]
andFile:
are not necessary.
Example
Template:Tnavbar {{{title}}} | |
Thor.png |
{{Infobox | name = Fire | image = Thor.png | section1 = Main Info | info1 = Race | info1value = Plushie | info2 = Location | info2value = | info3 = Source | info3value = Banana | info4 = Reward | info4value = | section5 = Other Info | info5 = Related | info5value = Fun | info6 = ID | info6value = }}