Template:WarnBox
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:
- Template:AlertBox - red box for urgent alerts
- Template:CritBox - orange box for serious problems
- Template:WarnBox - yellow box for less urgent warnings
- Template:InfoBox - blue box for informational messages
- Template:WelcomeBox - green box for confirmations etc
- Template:NeutralBox - grey box for everything else
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
{{WarnBox|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:
{{WarnBox|text=This is an example of Template:WarnBox.}}
Produces this:
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.