We need you! Join our contributor community and become a WikEM editor through our open and transparent promotion process.
Template:Infobox/doc
From WikEM
Contents
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 }}
Test Infobox 2 | |
Above text | |
Subheader above image | |
Caption displayed below example.png | |
Header defined alone | |
---|---|
Data defined alone | |
All three defined (header, label, data, all with same number) | |
does not display (same number as a header) | does not display (same number as a header) |
Label and data defined (label) | Label and data defined (data) |
Below text | |
{{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 }}