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

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.
 * - code used to generate a field value other than . For example, generating an Insider issue link when the fieldname & value is only the issue number.

Multi
This version of the template is used to create 'multi-column sections for the infobox, and should only be used in event infoboxes. Unlike other fields, multi-column sections use just this template, and not the section and field versions of this template. This version must be wrapped in a Infosub template or it will break the infobox.
 * - used to set the section's background. This should match the BG2 value in the rest of the infobox.
 * - used to set the field's description.
 * - passes the section's four fields to the subtemplate. Replace "side" with the name of the parameter type.
 * and - passes the infobox's extra-column parameters to the subtemplate. These are required and should not be modified, even if this isn't the combatants section.

Multispan
This version of the template is used to create a section and field that spans multiple columns. This is really only for civilian casualties. This version must be wrapped in a Infosub template or it will break the infobox.
 * - used to set the section's background. This should match the BG2 value in the rest of the infobox.
 * - used to set the field's description.
 * - passes the section's field to the subtemplate.
 * and - passes the infobox's extra-column parameters to the subtemplate. Required and should not be modified.

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.
 * - used to generate quotation marks around the field value.

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.
 * - makes this template a flexible-width component. This requires additional parameters, which are detailed in the second example.

Example:

example: