Template:Error/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Enenn |
meta>Yarnalgo m →Usage |
||
Line 12: | Line 12: | ||
* {{tlx|error|An exemplary error span|3=tag=span}} → {{error|An exemplary error span|tag=span}} | * {{tlx|error|An exemplary error span|3=tag=span}} → {{error|An exemplary error span|tag=span}} | ||
* {{tlx|error|An exemplary error div|3=tag=div}} → {{error|An exemplary error div|tag=div}} | |||
* {{tlx|error|An exemplary error p|3=tag=p}} → {{error|An exemplary error p|tag=p}} | |||
* {{tlx|error|An exemplary error strong|3=tag=strong}} → {{error|An exemplary error strong|tag=strong}} | |||
=== See also === | === See also === |
Revision as of 21:47, 16 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{{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