Template:Infobox/doc: Difference between revisions

From Ultronomicon
Jump to navigation Jump to search
Svip (talk | contribs)
Svip (talk | contribs)
m -CSS
 
Line 15: Line 15:
|headerN  = A section header
|headerN  = A section header
}}</pre>
}}</pre>
=== CSS ===
Minor CSS update:
<pre>.infobox th,
.infobox td {
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>

Latest revision as of 19:46, 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
}}