Help:Infoboxes/Tags

Portable infoboxes include a wide variety of tags and options that you can use to make the infobox display how you want. Below we have listed all the standard tags, with sample wikitext and output HTML, to help you identify what you need to use, and how to give it a CSS makeover (see also Help:Infoboxes/CSS). Note that parser functions can also be used.

All infobox fields should be declared using XML convention, with attributes used for field configuration.

The  tag holds all others and delimits the scope of the infobox.

Attributes

 * The name of the theme to apply. Converted to the form, with spaces transformed into hyphens (-). Does not overwrite.
 * The name of the theme to apply. Converted to the form, with spaces transformed into hyphens (-). Does not overwrite.


 * The name of the parameter to use as a theme. Does not overwrite.
 * The name of the parameter to use as a theme. Does not overwrite.


 * Possible values:,.
 * Possible values:,.


 * The name of the parameter to use as an accent color.
 * The name of the parameter to use as an accent color.


 * The name of the parameter to use as a text accent color.
 * The name of the parameter to use as a text accent color.


 * The default accent color. Accepts a 3- or 6-digit hexadecimal color code, e.g.  or.
 * The default accent color. Accepts a 3- or 6-digit hexadecimal color code, e.g.  or.


 * The default text accent color. Accepts a 3- or 6-digit hexadecimal color code, e.g.  or.
 * The default text accent color. Accepts a 3- or 6-digit hexadecimal color code, e.g.  or.

HTML output
Input:

Output:

The  tag states infobox title. Images used in  tags do not appear on mobile.

Attributes

 * The name of the parameter to use.
 * The name of the parameter to use.

HTML output
Input:

Output:

The  tag is the standard key value tag.

Attributes

 * The name of the parameter to use.
 * The name of the parameter to use.


 * The number of columns to span. Only available in smart groups.
 * The number of columns to span. Only available in smart groups.


 * Possible values: . Only available in smart groups.
 * Possible values: . Only available in smart groups.

HTML output
Input:

Output:

The  tag can be used only inside other tags, check child tags column for more info. Accepts wikitext.

Attributes
None.

HTML output
Input:

Output:

The  tag text is used when "source" data is not specified, can be used only inside other tags, check child tags column for more info. Accepts wikitext.

Attributes
None.

HTML output
Input:

Output:

The  tag can be used only inside other tags, check child tags column for more info. Accepts wikitext.

Attributes
None.

HTML output
Input:

Output:

The  tag is used to insert images or video inside an infobox. It can only be styled using the community's CSS, and cannot be manually resized. Multiple images can be passed by using a gallery tag.

Here, the default tag is used to specify an image to be used when no image has been chosen on an article. For example,.

Attributes

 * The name of the parameter to use.
 * The name of the parameter to use.

HTML output
Input:

Output:

The  tag can be used only inside   tag.

Attributes

 * The name of the parameter to use.
 * The name of the parameter to use.

HTML output
Input:

Output:

The  tag can be used only inside   tag.

Attributes

 * The name of the parameter to use.
 * The name of the parameter to use.

HTML output
Input:

Output:

The  tag is used for grouping fields, can provide header for each group. A group won't be rendered (including any headers) if all fields are empty. However, if the  attribute is set to , it will render all of the group's fields if at least one field is not empty.

Attributes

 * Possible values:,.
 * Possible values:,.


 * Possible values:,.
 * Possible values:,.


 * Possible values:,.
 * Possible values:,.


 * Turns the group into a smart group spanning n columns. Smart groups arrange their cells ( tags) horizontally, and automatically wrap to a new row once the current one exceeds that limit. Cells are stretched to take up as much space as possible on the last row.
 * Turns the group into a smart group spanning n columns. Smart groups arrange their cells ( tags) horizontally, and automatically wrap to a new row once the current one exceeds that limit. Cells are stretched to take up as much space as possible on the last row.

Default group
Input:

Output:

Horizontal group
Input:

Output:

Smart group
Input:

Output:

The  tag denotes the beginning of a section or group of tags.

Attributes
None.

HTML output
Input:

Default group output:

Horizontal group output:

The  tag is used for providing any wikitext.

Attributes
None.

HTML output
Input:

Output: