Wookieepedia
Advertisement

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.

  • BG2 - used to set the section's background. This should match the BG2 value in the rest of the infobox.
  • hidecells - calculates the hiding function; this field should include all of the fields in this section of the infobox.
  • section - title of the infobox section.
{{Infocell
|type=section
|BG2=DDDDDD
|hidecells={{{homeworld|}}}{{{birth|}}}{{{death|}}}
|section=Biographical information
}}

Field

This version of the template is used to create fields for the infobox, and is the main version that will be used.

  • description - used to set the field's description.
  • fieldname - passes the parameter to the subtemplate. Give it an appropriate name for the field.
  • special - code used to generate a field value other than fieldname. For example, generating an Insider issue link when the fieldname & value is only the issue number.
{{Infocell
|type=field
|description=
|fieldname=
}}

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.

  • BG2 - used to set the section's background. This should match the BG2 value in the rest of the infobox.
  • description - used to set the field's description.
  • field# - passes the section's four fields to the subtemplate. Replace "side" with the name of the parameter type.
  • field3 and field4- 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.
{{Infocell
|type=multi
|BG2=B4C5E3
|description=Combatants
|field1={{{side1|}}}
|field2={{{side2|}}}
|field3={{{side3|}}}
|field4={{{side4|}}}
|side3={{{side3|}}}
|side4={{{side4|}}}
}}

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.

  • BG2 - used to set the section's background. This should match the BG2 value in the rest of the infobox.
  • description - used to set the field's description.
  • field - passes the section's field to the subtemplate.
  • field3 and field4- passes the infobox's extra-column parameters to the subtemplate. Required and should not be modified.
{{Infocell
|type=multispan
|BG2=B4C5E3
|description=Civilian casualties
|field={{{civilian|}}}
|field3={{{side3|}}}
|field4={{{side4|}}}
}}

Heading

This version of the template is used for the name field of an infobox, and should only be used once.

  • BG1 - used to set the default image background. This should match the BG1 values in the rest of the infobox.
  • name - 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.
  • quotes - used to generate quotation marks around the field value.

Example:

{{Infocell
|type=heading
|BG1=333333
|name={{{name|}}}
}}

Image

This version of the template is used for the image field of an infobox, and should only be used once.

  • BG1 - used to set the default image background. This should match the BG1 values in the rest of the infobox.
  • maxwidth - used to set the maximum width of the infobox image; defaults to 250px. This really shouldn't be changed.
  • image - passes the infobox's "image" parameter to the sub-template. This is required, and should not be changed.
  • imageBG - passes the infobox's "imageBG" parameter to the sub-template. This is required, and should not be changed.
  • event - makes this template a flexible-width component. This requires additional parameters, which are detailed in the second example.

Example:

{{Infocell
|type=image
|BG1=333333
|image={{{image|}}}
|imageBG={{{imageBG|}}}
|maxwidth=250px
}}

event example:

{{Infocell
|type=image
|BG1=333333
|image={{{image|}}}
|imageBG={{{imageBG|}}}
|event=yes
|width={{{width|}}}
|field3={{{side3|}}}
|field4={{{side4|}}}
}}
Advertisement