Template:Error/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Amalthea typos |
meta>Enenn |
||
| Line 22: | Line 22: | ||
[[ar:قالب:Error]] | [[ar:قالب:Error]] | ||
[[cs:Šablona:Chyba]] | [[cs:Šablona:Chyba]] | ||
[[es:Plantilla:Error]] | |||
[[id:Templat:Error]] | [[id:Templat:Error]] | ||
[[ja:Template:Error]] | [[ja:Template:Error]] | ||
[[pt:Predefinição:Error]] | [[pt:Predefinição:Error]] | ||
</includeonly> | </includeonly> | ||
Revision as of 17:51, 1 May 2010
| This is a documentation subpage for Template:Error. It may contain usage information, categories and other content that is not part of the original template page. |
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}} }}→
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