Building pieces of another world.
The {{FlagBox}} template is a convenience wrapper for the {{ambox}} template, and it is designed to make it easier to insert commonly-needed information boxes into pages. Instead of having to remember style names and image names, you just need to set the 'type' parameter for this template, and it does the rest for you.
Template Syntax
The {{FlagBox}} template only supports two parameters:
{{FlagBox
| type = notice
| text = Text to show in the box.
}}
The text
parameter may contain any wiki or html markup, and can be as long as you want. However, you are advised to try to keep the contents of Flagbox texts short whenever possible. The type
parameter supports a number of values:
- urgent - a warning box with a pink background for emphasis.
- speedy - a synonym for 'urgent'
- warning - a warning box, like the 'urgent' box but with a grey background.
- delete - a synonym for 'warning', intended to be used to mark sections that may need deletion.
- content - a box intended to mark sections that contain important content, or may need content revision.
- cleanup - a box intended to mark sections that need cleanup for style or layout.
- style - a synonym for 'cleanup'.
- move - a box intended to mark sections that may need to be moved elsewhere.
- protection - a box intended to mark protected content, or content that needs to be protected.
- maintenance - a box marking content that needs the attention of an administrator.
- factcheck - a box intended to mark content that needs checking for factual accuracy.
- abuse - a box used to mark content that may contain abuse of the system.
- notice - a general notice box.
If the value specified for type
is not recognised, the 'notice' type is used instead. Note that several of these types have their own convenience templates available - see the 'See also' section below for more details.
Example
The following boxes demonstrate the various types of {{FlagBox}} in action:
|
{{FlagBox|type=urgent|text=contents here}} |
|
{{FlagBox|type=warning|text=contents here}} |
|
{{FlagBox|type=content|text=contents here}} |
|
{{FlagBox|type=cleanup|text=contents here}} |
|
{{FlagBox|type=move|text=contents here}} |
|
{{FlagBox|type=protection|text=contents here}} |
|
{{FlagBox|type=maintenance|text=contents here}} |
|
{{FlagBox|type=factcheck|text=contents here}} |
|
{{FlagBox|type=abuse|text=contents here}} |
|
{{FlagBox|type=notice|text=contents here}} |
See also
- {{FlagAbuse}} - a convenience wrapper for {{FlagBox|type=abuse|...}}.
- {{FlagDelete}} - a convenience wrapper for {{FlagBox|type=delete|...}}.
- {{FlagFactCheck}} - a convenience wrapper for {{FlagBox|type=factcheck|...}}.
- {{FlagMaintenance}} - a convenience wrapper for {{FlagBox|type=maintenance|...}}.
- {{ambox}} - article message box.