Template:Error

From FlightGear wiki
Revision as of 06:49, 8 March 2016 by Johan G (talk | contribs) (Inserting colon after template name for less ambiguity; Using itself if the mandatory parameter is missing ;-)
(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 for styling error messages for other templates, such as when a parameter is not given.

Usage

{{error|message|template}}
message
Error message to display. Mandatory. Please make parameter names bold by surrounding it with three apostrophes (''').
template
Optional template to link to for debugging help.

Example

{{error|Parameter '''path''' missing}}

Parameter path missing

{{error|Parameter '''reason''' missing|delete}}

{{delete}}: Parameter reason missing