Template:Error/doc: Difference between revisions
Template page
More actions
mNo edit summary |
m +cs: |
||
| Line 21: | Line 21: | ||
[[Category:Wikipedia metatemplates|{{PAGENAME}}]] | [[Category:Wikipedia metatemplates|{{PAGENAME}}]] | ||
[[ar:قالب:Error]] | [[ar:قالب:Error]] | ||
[[cs:Šablona:Chyba]] | |||
[[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 08:50, 23 April 2010
Create a parser function error message.
Usage
- {{error|An examplary error}} → An examplary error
- Compare:
{{#expr:Foo}}→ 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 span
See also