Template:Infocell

This template is used in the construction of infoboxes, in conjuction with Infoboxframe. There are four options for the parameter "type": heading, image, section, and field

Heading
This version of the template is used for the name field of an infobox, and should only be used once.
 * - used to set the default image background. This should match the BG1 values in the rest of the infobox.
 * - passes the infobox's name parameter to the sub-template. Only change this if the intended infobox uses a differently-named parameter, and only change the occurrence in the parentheses.

Example:

Image
This version of the template is used for the image field of an infobox, and should only be used once.
 * - used to set the default image background. This should match the BG1 values in the rest of the infobox.
 * - used to set the maximum width of the infobox image; defaults to 250px. This really shouldn't be changed.
 * - passes the infobox's "image" parameter to the sub-template. This is required, and should not be changed.
 * - passes the infobox's "imageBG" parameter to the sub-template. This is required, and should not be changed.

Example:

Section
This version of the template is used to create section headers in an infobox.
 * - used to set the section's background. This should match the BG2 value in the rest of the infobox.
 * - calculates the hiding function; this field should include all of the fields in this section of the infobox.
 * - title of the infobox section.

Field
This version of the template is used to create fields for the infobox, and is the main version that will be used.
 * - used to set the field's description.
 * - passes the parameter to the subtemplate. Give it an appropriate name for the field.