Difference between revisions of "Template:Error"
From RRU Knowledge Base
Jessietail (talk | contribs) (Undo revision 4458 by Jessietail (talk)) |
Jessietail (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><span style="font-size: larger; color:#c00">'''{{{1}}}'''{{#if:{{{2}}}| {{{2}}}}}''</span></includeonly><noinclude> | ||
==Usage instructions== | ==Usage instructions== | ||
This meta template is used by other templates to signal an error, such as an invalid or missing parameter. It displays a custom error message that lets editors know to fix the issue in question. | This meta template is used by other templates to signal an error, such as an invalid or missing parameter. It displays a custom error message that lets editors know to fix the issue in question. | ||
===Example usage=== | ===Example usage=== | ||
* {{tlx|error|An exemplary error}} → {{error|An exemplary error}} | * {{tlx|error|Error:|An exemplary error}} → {{error|Error:|An exemplary error}} | ||
* Compare, used in a Parser Function: <code><nowiki>{{#expr:Foo}}</nowiki></code> → {{#expr:Foo}}<!-- | * 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}} }}--> | * <code><nowiki>{{#iferror:{{error|Foo}} | {{y}} | {{n}} }}</nowiki></code> → {{#iferror:{{error|Foo}} | {{y}} | {{n}} }}--> |
Latest revision as of 02:39, 2 December 2017
Usage instructions
This meta template is used by other templates to signal an error, such as an invalid or missing parameter. It displays a custom error message that lets editors know to fix the issue in question.
Example usage
{{error|Error:|An exemplary error}}
→ 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.