Template:Infobox/Docu: Difference between revisions
Created page with "== Example == <pre>{{Infobox |bodystyle = float:right; valign:top; |title = |titlestyle = |image = 175px |imagestyle =..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
An '''Infobox''' is built by some of the following elements: | |||
* Caption | |||
* Header | |||
* Subheader1 | |||
* Subheader2 | |||
* Image1 | |||
* Image2 | |||
These are followed by up to '''80''' rows which can contain one of the following four row types per row only: | |||
* header | |||
* label | |||
* data | |||
* class | |||
The representation styles for these four row types are defined in | |||
* headerstyle | |||
* labelstyle | |||
* datastyle | |||
* classstyle | |||
<pre>{{Infobox/row | |||
|header={{{header1|}}} |headerstyle={{{headerstyle|}}} | |||
|label={{{label1|}}} |labelstyle={{{labelstyle|}}} | |||
|data={{{data1|}}} |datastyle={{{datastyle|}}} | |||
|class={{{class1|}}} |rowclass={{{rowclass1|}}}</pre> | |||
The infobox rows are followed by the following (optional) elements: | |||
* Below | |||
* Navbar | |||
== Example == | == Example == | ||
{| class="wikitable" | |||
<pre>{{Infobox | |- | ||
! Source !! Result | |||
|- | |||
| <pre>{{Infobox | |||
|bodystyle = float:right; valign:top; | |bodystyle = float:right; valign:top; | ||
|title = | |title = | ||
| Line 22: | Line 53: | ||
|belowstyle = background:#d2d2d2; | |belowstyle = background:#d2d2d2; | ||
|below = | |below = | ||
}}</pre> | }}</pre> || {{Infobox | ||
{{Infobox | |||
|bodystyle = float:right; valign:top; | |bodystyle = float:right; valign:top; | ||
|title = | |title = | ||
| Line 45: | Line 75: | ||
|below = | |below = | ||
}} | }} | ||
|} | |||