Changes

Jump to navigation Jump to search

Template:Error

895 bytes added, 12:43, 25 October 2017
Creation of the {{error}} template. This is adapted from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Error&oldid=95140.
<includeonly>{{#if: {{{1|}}} | <span class="error">{{#if: {{{2|}}} | {{tl|{{{2}}}}}: {{{1}}} | {{{1}}} }}</span> | {{error|Missing parameter '''message'''|error}}}}</includeonly><!--
--><noinclude>{{Informative template|1=
== Goal ==
This template is used for styling error messages for other templates, such as when a parameter is not given.

== Usage ==
{{obr}}'''error'''{{!}}message{{!}}''template''{{cbr}}

; message: Error message to display. Mandatory. Please make parameter names bold by surrounding it with three apostrophes ('''<nowiki>'''</nowiki>''').

; template: Optional template to link to for debugging help.

== Example ==
<nowiki>{{error|Parameter '''path''' missing}}</nowiki>
{{error|Parameter '''path''' missing}}

<nowiki>{{error|Parameter '''reason''' missing|delete}}</nowiki>
{{error|Parameter '''reason''' missing|delete}}

}}

[[Category:Templates]]
</noinclude>
Trusted, Bureaucrats
4,228

edits

Navigation menu