Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Template:Error/doc

From Appropedia
Jump to: navigation, search

Create a parser function error message.

Usage[edit]

  • {{error|An exemplary error}}An exemplary error
  • Compare: {{#expr:Foo}}Expression error: Unrecognized word "foo".

The tag to contain the error message can be given through the tag parameter, but it will only accept span, div, p, and strong, since those are the only tags recognized by the #iferror parser function. It defaults to strong, the tag generated e.g. by #expre.

  • {{error|An exemplary error span|tag=span}}An exemplary error span
  • {{error|An exemplary error div|tag=div}}
    An exemplary error div
  • {{error|An exemplary error p|tag=p}}

    An exemplary error p

  • {{error|An exemplary error strong|tag=strong}}An exemplary error strong

See also[edit]

External links[edit]

Wikipedia
This page or section includes content from Wikipedia. The original article was at Template:Error. The list of authors can be seen in the history for that page. As with Appropedia, the text of Wikipedia is available under the CC-BY-SA.