Template:Infobox generic/doc

This template can create an infobox for most scenarios that might be needed. It should be used in cases where an infobox is needed for only a handful of pages and thus creating a unique template for the situation might not make sense.

This template can also be used to quickly create an infobox to be used on multiple pages. Just create a new 'Template:Whatever' page and then add this template to it with any elements you want to vary from page to page set to specific parameter names. For example, |lbl1=Continent:|row1=, would be called with something like and display a 'Continent: Africa' row.

Parameters
The following parameters are recognized;


 * style0
 * style to apply to the entire table, defaults to


 * color
 * background color of headers, default white


 * name
 * text to display at top of infobox, default blank


 * sub#
 * subscript text to display. sub0 is shown below 'name', others below corresponding row#. default blank


 * img#
 * image(s) to display. img1 is shown at top, img2 at bottom. default blank


 * width#
 * width of the corresponding img#, default 250px


 * cap#
 * caption to display below corresponding img#, default blank


 * hdr#
 * text to display at top of optional sub-section, default blank


 * row#
 * text to display in optional rows. row[1-9] are below hdr1, row[21-29] below hdr2, etcetera. default blank


 * lbl#
 * optional label for data stored in corresponding row#. default blank


 * style#
 * style to apply to corresponding row#. default blank

Example 1


Example 2
