Difference between revisions of "Template:Error"
From RRU Knowledge Base
Jessietail (talk | contribs) |
Jessietail (talk | contribs) |
||
Line 1: | Line 1: | ||
'''<span style="font-size: 120%; color:# | '''<span style="font-size: 120%; color:#d33">{{{1}}}</span>'''<noinclude> | ||
==Usage instructions== | ==Usage instructions== | ||
This meta template is used by other templates to signal an error, such as an invalid or missing input. It displays a custom error message that lets editors know to fix the issue in question. | |||
[[Category: | |||
===Example usage=== | |||
* {{tlx|error|An exemplary error}} → {{error|An exemplary error}} | |||
* Compare, used in a Parser Function: <code><nowiki>{{#expr:Foo}}</nowiki></code> → {{#expr:Foo}}<!-- | |||
* <code><nowiki>{{#iferror:{{error|Foo}} | {{y}} | {{n}} }}</nowiki></code> → {{#iferror:{{error|Foo}} | {{y}} | {{n}} }}--> | |||
Currently missing all the tag options the [[Wikipedia:Template:Error|Wikipedia version]] has. | |||
[[Category:Error templates]]</noinclude> |
Revision as of 21:47, 1 November 2017
{{{1}}}
Usage instructions
This meta template is used by other templates to signal an error, such as an invalid or missing input. It displays a custom error message that lets editors know to fix the issue in question.
Example usage
{{error|An exemplary error}}
→ An exemplary error- Compare, used in a Parser Function:
{{#expr:Foo}}
→ Expression error: Unrecognized word "foo".
Currently missing all the tag options the Wikipedia version has.