User:Johan G/Messagebox/style

From FlightGear wiki
< User:Johan G‎ | Messagebox
Revision as of 20:39, 27 May 2014 by Johan G (talk | contribs) (Johan G moved page User:Johan G/Messagebox/box style to User:Johan G/Messagebox/style without leaving a redirect: Less is more)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


The following template description is not displayed when the template is inserted in an article.

Goal

This template is used by User:Johan G/Messagebox and its sub templates. It can show different strings depending on the input value.

Usage

{{messagebox/style
| style     = 
| speedy    = 
| warning   = 
| caution   = 
| notice    = 
| tip       = 
| protected = 
| neutral   = 
| empty     = 
| invalid   = 
}}

All parameters are optional. They all default to an empty string.

style
Box style. Valid values are speedy, warning, caution, notice, tip, protected and neutral.
speedy
String to use if box style is speedy.
warning
String to use if box style is warning.
caution
String to use if box style is caution.
notice
String to use if box style is notice.
tip
String to use if box style is tip.
protected
String to use if box style is protected.
neutral
String to use if box style is neutral.
empty
String to use if format is empty or undefined.
invalid
String to use if format is not empty and is neither of top, box or section.

Examples

{{messagebox/style
| style     = {{{style|}}}
| speedy    = 
| warning   = 
| caution   = 
| notice    = 
| tip       = 
| protected = 
| neutral   = 
| empty     = 
| invalid   = 
}}

Related templates