Difference between revisions of "Template:Infobox"

From Ultronomicon
Jump to navigation Jump to search
m (Some better code.)
m
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
Image
 
Image
 
-->{{#if:{{{image|}}}|
 
-->{{#if:{{{image|}}}|
<tr class="alternate-ignore"><td colspan="2" class="infoboxCentre"><div id="image1">{{{image}}}{{#if:{{{caption|}}}|<br /><span class="image-caption">{{{caption}}}</span>|}}</div></td></tr>
+
<tr class="alternate-ignore"><td colspan="2" class="infoboxCentre">{{{image}}}{{#if:{{{caption|}}}|<br /><span class="infoboxCaption">{{{caption}}}</span>|}}</td></tr>
 
|}}<!--
 
|}}<!--
 
Row 1
 
Row 1
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>}}}}}}<!--
 +
Row 27
 +
-->{{#if:{{{header27|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header27}}}</th></tr>|{{#if:{{{label27|}}}|{{#if:{{{data27|}}}|<tr><th>{{{label27}}}</th><td {{#if:{{{dataclass27|}}}| class="{{{dataclass27}}}"|}}>{{{data27}}}</td></tr>|}}|{{#if:{{{data27|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass27|}}}|{{{dataclass27}}}|}}">{{{data27}}}</td></tr>}}}}}}<!--
 +
Row 28
 +
-->{{#if:{{{header28|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header28}}}</th></tr>|{{#if:{{{label28|}}}|{{#if:{{{data28|}}}|<tr><th>{{{label28}}}</th><td {{#if:{{{dataclass28|}}}| class="{{{dataclass28}}}"|}}>{{{data28}}}</td></tr>|}}|{{#if:{{{data28|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass28|}}}|{{{dataclass28}}}|}}">{{{data28}}}</td></tr>}}}}}}<!--
 +
Row 29
 +
-->{{#if:{{{header29|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header29}}}</th></tr>|{{#if:{{{label29|}}}|{{#if:{{{data29|}}}|<tr><th>{{{label29}}}</th><td {{#if:{{{dataclass29|}}}| class="{{{dataclass29}}}"|}}>{{{data29}}}</td></tr>|}}|{{#if:{{{data29|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass29|}}}|{{{dataclass29}}}|}}">{{{data29}}}</td></tr>}}}}}}<!--
 +
Row 30
 +
-->{{#if:{{{header30|}}}|<tr class="alternate-reset"><th colspan="2" class="infoboxHeader">{{{header30}}}</th></tr>|{{#if:{{{label30|}}}|{{#if:{{{data30|}}}|<tr><th>{{{label30}}}</th><td {{#if:{{{dataclass30|}}}| class="{{{dataclass30}}}"|}}>{{{data30}}}</td></tr>|}}|{{#if:{{{data30|}}}|<tr><td colspan="2" class="infoboxCentre {{#if:{{{dataclass30|}}}|{{{dataclass30}}}|}}">{{{data30}}}</td></tr>}}}}}}
 
</table></div></includeonly><noinclude>{{documentation}}</noinclude>
 
</table></div></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 12:35, 28 August 2012

Documentation for {{infobox}}

Use[edit]

For creating standardised infoboxes, easy and whatever.

Usage[edit]

{{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
}}