Difference between revisions of "Template:Infobox/doc"

From Ultronomicon
Jump to navigation Jump to search
Line 23: Line 23:
 
.infobox td {
 
.infobox td {
 
vertical-align: top;  
 
vertical-align: top;  
 +
}</pre>
 +
 +
And alter this:
 +
 +
<pre>.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%;
 
}</pre>
 
}</pre>

Revision as of 15:57, 28 August 2012

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