Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Error/doc: Difference between revisions

Template page
Create doc
 
m tweak
Line 6: Line 6:


* {{tlx|error|An examplary error}} → {{error|An examplary error}}
* {{tlx|error|An examplary error}} → {{error|An examplary error}}
* {{tlx|error|An examplary error div|3=tag=div}} → {{error|An examplary error div|tag=div}}
* {{tlx|error|An examplary error span|3=tag=span}} → {{error|An examplary error div|tag=span}}
* Compare: <nowiki>{{#expr:Invalid}}</nowiki> → {{#expr:Foo}}
* Compare: <nowiki>{{#expr:Invalid}}</nowiki> → {{#expr:Foo}}
* <nowiki>{{#iferror:{{error|Foo}} | {{y}} | {{n}} }}</nowiki> → {{#iferror:{{error|Foo}} | {{y}} | {{n}} }}
* <nowiki>{{#iferror:{{error|Foo}} | {{y}} | {{n}} }}</nowiki> → {{#iferror:{{error|Foo}} | {{y}} | {{n}} }}

Revision as of 12:51, 12 May 2009

Usage

Create a standard parser function error message.

  • {{error|An examplary error}} → An examplary error
  • {{error|An examplary error span|tag=span}} → An examplary error div
  • Compare: {{#expr:Invalid}} → Expression error: Unrecognized word "foo".
  • {{#iferror:{{error|Foo}} | {{y}} | {{n}} }} → Template:Y


Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.