[edit] [purge] Template-info.svg Template documentation

Create a parser function error message.


  • {{error|An examplary error}}An examplary error
  • Compare: {{#expr:Foo}}Expression error: Unrecognized word "foo".
  • {{#iferror:{{error|Foo}} | {{y}} | {{n}} }} Yes check.png Y

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 genereated e.g. by #expre.

  • {{error|An examplary error span|tag=span}}An examplary error span

See also

Community content is available under CC-BY-SA unless otherwise noted.