Template:Error/doc

From Zoophilia Wiki
Revision as of 09:06, 23 April 2010 by meta>Amalthea (typos)
Jump to navigationJump to search

Create a parser function error message.

Usage

  • {{error|An exemplary error}}An exemplary error
  • Compare: {{#expr:Foo}}Expression error: Unrecognized word "foo".
  • {{#iferror:{{error|Foo}} | {{y}} | {{n}} }}Green tickY

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

See also