Template:InfoBox

From Nonkiki Wiki
Jump to navigation Jump to search
You are viewing the documentation for Template:InfoBox, which has been automatically transcluded from its documentation page. You may:
  • edit the template; or:
  • edit the documentation

This template creates a "full box", which contains important material related to the main text, and which appears in the flow of the text but in its own division.

This template is derived from, and uses, the parent template Template:FullBox, which in turn derives from the generic Template:Box. It forms part of a family of related templates:

What it does

This template creates a "full box", which contains important material related to the main text, and which appears in the flow of the text but in its own division. The size, position and colour of the box are all decided for you, so all you have to supply is the text.

Usage

{{InfoBox|text=<text>}}

The argument text specifies the content of the box, which may itself be plain text, wiki markup, HTML markup or other templates.

If the text argument is missing, then the entire box is suppressed. This is useful for derived templates that rely on conditional code.

Example

The code:

{{InfoBox|text=This is an example of Template:InfoBox.}}

Produces this:

This is an example of Template:InfoBox.

Related templates

This template uses the parent template Template:FullBox, which in turn uses the generic Template:Box. Other related templates that you might find relevant are Template:SideBox and Template:TextBox. For more details, see the documentation for those templates.

To see a complete lystte of pages using this template, directly or indirectly, see "What links here" from the Tools menu.