Template:Infobox/doc

Illustration images

 * image(n) : images to display at the top of the template. Use full image syntax, for example example.png . Image is centered by default. See WP:ALT for more on alt text.
 * caption(n) : Text to put underneath the images.

Main data

 * header(n) : Text to use as a header in row n.
 * label(n) : Text to use as a label in row n.
 * data(n) : Text to display as data in row n.

Note: for any given value for (n), not all combinations of parameters are permitted. The presence of a header(n) will cause the corresponding data(n) (and rowclass(n) label(n), see below) to be ignored; the absence of a data(n) will cause the corresponding label(n) to be ignored. Valid combinations for any single row are:

See the rendering of header4, label4, and data4 in the Examples section below.

the three parameters are defined the header won't be shown and no empty row appears before the next visible content. This parameter is inserted into the  attribute for the infobox as a whole.
 * titleclass : This parameter is inserted into the attribute for the infobox's title caption.


 * belowclass : This parameter is inserted into the  attribute for the infobox's below cell.

This template supports the addition of microformat information. This is done by adding "class" attributes to various data cells, indicating what kind of information is contained within. Multiple class names may be specified, separated by spaces, some of them being used as selectors for custom styling according to a project policy or to the skin selected in user preferences, others being used for microformats.

|imagestyle  = |captionstyle = |image       = |caption     = Caption displayed below File:Example-serious.jpg

|headerstyle = background:#ccf; |labelstyle  = background:#ddf; |datastyle   =

|titlestyle = |title      = Test Infobox

|headerstyle = |labelstyle = width:33% |datastyle  =

|header1 = | label1 = Label 1 | data1 = Data 1 |header2 = | label2 = Label 2 | data2 = Data 2 |header3 = | label3 = Label 3 | data3 = Data 3 |header4 = Header 4 | label4 = | data4 = |header5 = | label5 = Label 5 | data5 = Data 5: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

|belowstyle = |below = Below text }}



Note, in the examples above, the child infobox is placed in a  field, not a   field. Notice that the section subheadings are not in bold font if bolding is not explicitly specified. To obtain bold section headings, place the child infobox in a header field (but not in a label field because it would not be displayed!), either using



or,



Note that omitting the title parameter, and not including any text preceding the embedded infobox, may result in spurious blank table rows, creating gaps in the visual presentation.

WikiProject Infoboxes/embed includes some links to Wikipedia articles which include infoboxes embedded within other infoboxes.

Subboxes
An alternative method for embedding is to use yes, which removes the outer border from the infobox, but preserves the interior structure. One feature of this approach is that the parent and child boxes need not have the same structure, and the label and data fields are not aligned between the parent and child boxes because they are not in the same parent table.

Similar embedding techniques may be used within content parameters of some other templates generating tables (such as Sidebar) :

Note that the default padding of the parent data cell containing each subbox is still visible, so the subboxes are slightly narrower than the parent box and there's a higher vertical spacing between standard cells of the parent box than between cells of distinct subboxes.

Controlling line-breaking in embedded bulletless lists
Template may be used with  and  to control line-breaking in bulletless lists embedded in infoboxes (e.g. cast list in ), to prevent wrapped long entries from being confused with multiple entries. See Template:Wbr/doc for details.

Full blank syntax
(Note: there is no limit to the number of possible rows; only 20 are given below since infoboxes larger than that will be relatively rare. Just extend the numbering as needed. The microformat "class" parameters are also omitted as they are not commonly used.)



Porting to other MediaWikis
The infobox template requires the Scribunto extension and HTMLTidy to be installed. It may not work with other MediaWikis. WikiProject Transwiki has a version of this template that has been modified to work on other MediaWikis.