Template:Infobox/doc: Difference between revisions
Ostermayer (talk | contribs) |
Ostermayer (talk | contribs) No edit summary |
||
| Line 48: | Line 48: | ||
}} | }} | ||
<pre | <pre style="overflow:auto"> | ||
{{Infobox|title=TITLE Infobox 1 | {{Infobox|title=TITLE Infobox 1 | ||
|above=ABOVE | |above=ABOVE | ||
| Line 59: | Line 58: | ||
|data1=DATA_1 | |data1=DATA_1 | ||
}} | }} | ||
< | <pre>{{clear}} | ||
{{Infobox | {{Infobox | ||
Revision as of 18:04, 13 April 2014
Usage
Parameters
There are some general 'styling' parameters, some 'title' and subtitle parameters, some 'image' parameters', and then parameters for each of the 80 possible 'rows'
Style
- bodyclass
- bodystyle
Title
- title
- titleclass
- titlestyle
- above
- aboveclass
- abovestyle
- subheader
- subheaderclass
- subheaderstyle
Image
- image
- imageclass
- imagestyle
- caption
- captionstyle
Rows
For all rows
- headerstyle
- labelstyle
- datastyle
For specific rows
For each of the 80 possible rows, replace the 'N' below with the number (e.g. 'header3', 'header80')
- headerN
- labelN
- dataN
- classN
Examples
| TITLE Infobox 1 | |
| ABOVE | |
| SUBHEADER | |
| File:Some image.jpg IMAGE_CAPTION | |
| HEADER_1 | |
|---|---|
| LABEL_1 | DATA_1 |
{{Infobox|title=TITLE Infobox 1
|above=ABOVE
|subheader=SUBHEADER
|image=[[Image:Some_image.jpg]]
|caption=IMAGE_CAPTION
|header1=HEADER_1
|label1=LABEL_1
|data1=DATA_1
}}
<pre>{{clear}}
{{Infobox
|name = Infobox/doc
|bodystyle =
|titlestyle =
|abovestyle = background:#cfc;
|subheaderstyle =
|title = Test Infobox 2
|above = Above text
|subheader = Subheader above image
|subheader2 = Second subheader
|imagestyle =
|captionstyle =
| image = [[File:MDMA.png|thumbnail|MDMA]]
|caption = Caption displayed below example.png
|headerstyle = background:#ccf;
|labelstyle = background:#ddf;
|datastyle =
|header1 = Header defined alone
| label1 =
| data1 =
|header2 =
| label2 = Label defined alone does not display (needs data, or is suppressed)
| data2 =
|header3 =
| label3 =
| data3 = Data defined alone
|header4 = All three defined (header, label, data, all with same number)
| label4 = does not display (same number as a header)
| data4 = does not display (same number as a header)
|header5 =
| label5 = Label and data defined (label)
| data5 = Label and data defined (data)
|belowstyle = background:#ddf;
|below = Below text
}}
<pre style="overflow:auto">
{{Infobox
|name = Infobox/doc
|bodystyle =
|titlestyle =
|abovestyle = background:#cfc;
|subheaderstyle =
|title = Test Infobox 2
|above = Above text
|subheader = Subheader above image
|subheader2 = Second subheader
|imagestyle =
|captionstyle =
| image = [[File:MDMA.png|thumbnail|MDMA]]
|caption = Caption displayed below example.png
|headerstyle = background:#ccf;
|labelstyle = background:#ddf;
|datastyle =
|header1 = Header defined alone
| label1 =
| data1 =
|header2 =
| label2 = Label defined alone does not display (needs data, or is suppressed)
| data2 =
|header3 =
| label3 =
| data3 = Data defined alone
|header4 = All three defined (header, label, data, all with same number)
| label4 = does not display (same number as a header)
| data4 = does not display (same number as a header)
|header5 =
| label5 = Label and data defined (label)
| data5 = Label and data defined (data)
|belowstyle = background:#ddf;
|below = Below text
}}
