Difference between revisions of "Template:Infobox"

From Ultronomicon
Jump to navigation Jump to search
m (Some better code.)
m (6 more rows for now should work.)
Line 48: Line 48:
 
-->{{#if:{{{header19|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header19}}}</th></tr>|{{#if:{{{label19|}}}|{{#if:{{{data19|}}}|<tr><th>{{{label19}}}</th><td {{#if:{{{dataclass19|}}}| class="{{{dataclass19}}}"|}}>{{{data19}}}</td></tr>|}}|{{#if:{{{data19|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass19|}}}|{{{dataclass19}}}|}}">{{{data19}}}</td></tr>}}}}}}<!--
 
-->{{#if:{{{header19|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header19}}}</th></tr>|{{#if:{{{label19|}}}|{{#if:{{{data19|}}}|<tr><th>{{{label19}}}</th><td {{#if:{{{dataclass19|}}}| class="{{{dataclass19}}}"|}}>{{{data19}}}</td></tr>|}}|{{#if:{{{data19|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass19|}}}|{{{dataclass19}}}|}}">{{{data19}}}</td></tr>}}}}}}<!--
 
Row 20
 
Row 20
-->{{#if:{{{header20|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header20}}}</th></tr>|{{#if:{{{label20|}}}|{{#if:{{{data20|}}}|<tr><th>{{{label20}}}</th><td {{#if:{{{dataclass20|}}}| class="{{{dataclass20}}}"|}}>{{{data20}}}</td></tr>|}}|{{#if:{{{data20|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass20|}}}|{{{dataclass20}}}|}}">{{{data20}}}</td></tr>}}}}}}
+
-->{{#if:{{{header20|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header20}}}</th></tr>|{{#if:{{{label20|}}}|{{#if:{{{data20|}}}|<tr><th>{{{label20}}}</th><td {{#if:{{{dataclass20|}}}| class="{{{dataclass20}}}"|}}>{{{data20}}}</td></tr>|}}|{{#if:{{{data20|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass20|}}}|{{{dataclass20}}}|}}">{{{data20}}}</td></tr>}}}}}}<!--
 +
Row 21
 +
-->{{#if:{{{header21|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header21}}}</th></tr>|{{#if:{{{label21|}}}|{{#if:{{{data21|}}}|<tr><th>{{{label21}}}</th><td {{#if:{{{dataclass21|}}}| class="{{{dataclass21}}}"|}}>{{{data21}}}</td></tr>|}}|{{#if:{{{data21|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass21|}}}|{{{dataclass21}}}|}}">{{{data21}}}</td></tr>}}}}}}<!--
 +
Row 22
 +
-->{{#if:{{{header22|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header22}}}</th></tr>|{{#if:{{{label22|}}}|{{#if:{{{data22|}}}|<tr><th>{{{label22}}}</th><td {{#if:{{{dataclass22|}}}| class="{{{dataclass22}}}"|}}>{{{data22}}}</td></tr>|}}|{{#if:{{{data22|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass22|}}}|{{{dataclass22}}}|}}">{{{data22}}}</td></tr>}}}}}}<!--
 +
Row 23
 +
-->{{#if:{{{header23|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header23}}}</th></tr>|{{#if:{{{label23|}}}|{{#if:{{{data23|}}}|<tr><th>{{{label23}}}</th><td {{#if:{{{dataclass23|}}}| class="{{{dataclass23}}}"|}}>{{{data23}}}</td></tr>|}}|{{#if:{{{data23|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass23|}}}|{{{dataclass23}}}|}}">{{{data23}}}</td></tr>}}}}}}<!--
 +
Row 24
 +
-->{{#if:{{{header24|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header24}}}</th></tr>|{{#if:{{{label24|}}}|{{#if:{{{data24|}}}|<tr><th>{{{label24}}}</th><td {{#if:{{{dataclass24|}}}| class="{{{dataclass24}}}"|}}>{{{data24}}}</td></tr>|}}|{{#if:{{{data24|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass24|}}}|{{{dataclass24}}}|}}">{{{data24}}}</td></tr>}}}}}}<!--
 +
Row 25
 +
-->{{#if:{{{header25|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header25}}}</th></tr>|{{#if:{{{label25|}}}|{{#if:{{{data25|}}}|<tr><th>{{{label25}}}</th><td {{#if:{{{dataclass25|}}}| class="{{{dataclass25}}}"|}}>{{{data25}}}</td></tr>|}}|{{#if:{{{data25|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass25|}}}|{{{dataclass25}}}|}}">{{{data25}}}</td></tr>}}}}}}<!--
 +
Row 26
 +
-->{{#if:{{{header26|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header26}}}</th></tr>|{{#if:{{{label26|}}}|{{#if:{{{data26|}}}|<tr><th>{{{label26}}}</th><td {{#if:{{{dataclass26|}}}| class="{{{dataclass26}}}"|}}>{{{data26}}}</td></tr>|}}|{{#if:{{{data26|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass26|}}}|{{{dataclass26}}}|}}">{{{data26}}}</td></tr>}}}}}}
 
</table></div></includeonly><noinclude>{{documentation}}</noinclude>
 
</table></div></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 22:49, 27 August 2012

Documentation for {{infobox}}

Use

For creating standardised infoboxes, easy and whatever.

Usage

{{infobox
|above     = Outside table (optional)
|top       = Top of infobox (but within) (optional)
|title     = Name or title of infobox
|image     = The image (optional)
|caption   = Caption (optional)
|labelN    = Label for dataN (optional)
|dataN     = Data (can be used with or without a label)
|headerN   = A section header
}}