Difference between revisions of "Template:Infobox"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
<includeonly><table class="infobox alternateable" cellspacing="0"><!-- | <includeonly><table class="infobox alternateable" cellspacing="0"><!-- | ||
-->{{#if:{{{top|}}}| | -->{{#if:{{{top|}}}| | ||
<tr class="alternate-ignore"><td colspan="2" class="infoboxCentre">{{{top}}}</td></tr> | <tr class="alternate-ignore"><td colspan="2" style="font-weight: bold;" class="infoboxCentre">{{{top}}}</td></tr> | ||
|}} | |}} | ||
<tr class="alternate-ignore"><th colspan="2" class="infoboxTitle">{{{title}}}</th></tr><!-- | <tr class="alternate-ignore"><th colspan="2" class="infoboxTitle">{{{title}}}</th></tr><!-- |
Revision as of 02:11, 14 April 2009
Documentation for {{infobox}}
Use
For creating infoboxes in a quick and standardised way.
Usage
{{infobox |top = Before title |title = Title |noimage = yes/no (default: no) if yes, the infobox won't check for images. |image = Image |caption = Image text |image2 = Alternate Image (optional, for cover art) |caption2 = Alternate Image text (optional, for cover art, defaults to caption) |headerN = Nth header |labelN = Nth label |dataN = Nth data |dataclassN = Add a CSS class to Nth data. }}
Example
Hi! | |
An infobox! | |
---|---|
Pretty! | |
Label? | Yes |
A header! | |
Data alone! :O | |
Good day | Bite me |
Hello | Hi |
{{infobox |top = Hi! |title = An infobox! |image = [[Image:Infosphere.jpg|225px]] |caption = Pretty! |label1 = Label? |data1 = Yes |header2 = A header! |data3 = Data alone! :O |label4 = Good day |data4 = Bite me |label5 = Hello |data5 = Hi }}