Help:Infobox

Introduction
To create an infobox, you must create a page with the follow structure:

Infobox content goes here

For the content of the infobox, you must use declarations, here is an example of an infobox with one declaration:

Hello World!

To use this infobox, you can use this statement:

To set a title you can use the infobox title declaration.

Infobox title Hello World!

All declarations must begin with.

Setting parameters
Often, you will want to make an infobox with adjust parameters to avoid the unnecessary creation of multiple infoboxes. To do this, you can use standard template syntax.

For example, to change the title based on the  parameter, you would do this:

To invoke this infobox, you use:

If you did not specify the  parameter when invoking the infobox, you would get the following:

To set a default value, you can use standard MediaWiki template syntax:

Optional elements
In some cases, you may want to have elements that only display if certain parameters are specified. In these situations, you can use the  parser function, but it still must be prefixed with. Please note that when accessing a parameter in the  parser function, you must use   instead of.

Title

If you want to have statements where you can use true/false, use YesNo:

Fallbacks
Parameter fallbacks may be accomplished using standard MediaWiki syntax.

Labels
To add a label, you can use the infobox label declaration. The first parameter is the label name and the second is the value.

Label

Images
Images can be added using the infobox image declaration. To add a caption below the image, you can use the  parameter. To add alt text when hovering on the image, you can use the  parameter.

Text
To add text or wikitext to an infobox, you can use the infobox navigation declaration.

A Link

Groups
You can group declarations together by using the group declaration.

Label 1 Label 2 Label 2

Additionally, groups may have specify attributes that modify the way they are rendered. This is done in the (optional) second parameter. Each attribute is specified in the following format:. Attributes are separated by spaces. Here is a list of attributes and their possible values:
 * : This can be set to  to render labels horizontally. Unfortunately, this does not currently work.
 * : I don't know what this does, but you can try it!
 * : This can be set to  to collapse the group. Unfortunately, this does not currently work.

Headers
To label a group, you can use the infobox header declaration.

Header Label 1 Label 2 Label 2

Mathematical expressions
Mathematical expressions can be made using the  parser function.

Rectangle Width Height Area

Panels
Sometimes, you may want to be able to switch between different types of information, to accomplish this, you can use the infobox panel declaration. Each panel must nest one or more infobox section declarations (these are the different panels you can switch between). The first parameter of infobox section is the section name and the second is it's content.

Additionally, the header declaration (see here) may be used to add a second label to a section.

Section 1 Section 2