Template:Error/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Borgx
m +id
meta>Muhends
No edit summary
Line 20: Line 20:
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
[[ar:قالب:Error]]
[[id:Templat:Error]]
[[id:Templat:Error]]
[[ja:Template:Error]]
[[ja:Template:Error]]
</includeonly>
</includeonly>

Revision as of 22:17, 6 July 2009

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}} }} → 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 genereated e.g. by #expre.

  • {{error|An examplary error span|tag=span}}An examplary error div

See also