Template:Infobox/doc

From Ultronomicon
Jump to navigation Jump to search

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

CSS

Minor CSS update:

.infobox th,
.infobox td {
	vertical-align: top; 
}

And alter this:

.infobox th {
	text-align: right;
	padding-right: 5px;
}
.infobox td {
	text-align: left; 
	padding-left: 5px;
}
.infoboxTitle,
.infoboxHeader {
	background: #bbb;
}
.infoboxTitle {
	font-size: 150%;
	padding: 4px;
}
.infoboxHeader {
	font-size: 120%;
}