Difference between revisions of "Template:Infobox/doc"

From Ultronomicon
Jump to navigation Jump to search
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[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
}}