Template:Error/doc
< Template:Error
Jump to navigation
Jump to search
Revision as of 13:07, 12 May 2009 by imported>Amalthea (info about allowed tags)
| 40px | This is a documentation subpage for Template:Error. It contains usage information, categories and other content that is not part of the original template page. |
Create a parser function error message.
Usage
{{error|An examplary error}}→ An examplary error- Compare: {{#expr:Invalid}} → Expression error: Unrecognized word "foo".
- {{#iferror:{{error|Foo}} | {{y}} | {{n}} }} → Template: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 div
See also