Difference between revisions of "Template:Error"

From relax wiki
Jump to navigation Jump to search
(Creation of the {{error}} template. This is adapted from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Error&oldid=95140.)
 
m (Switch from the imported {{informative template}} to the relax {{template info}} template)
 
Line 1: Line 1:
 
<includeonly>{{#if: {{{1|}}} | <span class="error">{{#if: {{{2|}}} | {{tl|{{{2}}}}}: {{{1}}} | {{{1}}} }}</span> | {{error|Missing parameter '''message'''|error}}}}</includeonly><!--
 
<includeonly>{{#if: {{{1|}}} | <span class="error">{{#if: {{{2|}}} | {{tl|{{{2}}}}}: {{{1}}} | {{{1}}} }}</span> | {{error|Missing parameter '''message'''|error}}}}</includeonly><!--
--><noinclude>{{Informative template|1=
+
--><noinclude>{{template info|1=
 
== Goal ==
 
== Goal ==
 
This template is used for styling error messages for other templates, such as when a parameter is not given.
 
This template is used for styling error messages for other templates, such as when a parameter is not given.

Latest revision as of 13:55, 23 October 2020

Template documentation

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