Template:Error/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:Error and its sandbox version. You may have to purge this page to update the examples.

Correct

Two anonymous parameters
Wiki code
{{Error|template|parameter}}
Main version
{{template template error}}
Parameter parameter not defined. For correct usage see template template's documentation on the parameter parameter.
Sandbox version
{{template template error}}
Parameter parameter not defined. For correct usage see template template's documentation on the parameter parameter.


Two anonymous parameters, with the second set to 11
Wiki code
{{Error|template|11}}
Main version
{{template template error}}
Too many anonymous parameters. Maximum is 11. For correct usage see template template's documentation on the 11 parameter.
Sandbox version
{{template template error}}
Too many anonymous parameters. Maximum is 11. For correct usage see template template's documentation on the 11 parameter.


Two anonymous parameters, with the second set to 21
Wiki code
{{Error|template|21}}
Main version
{{template template error}}
Too many anonymous parameters. Maximum is 21. For correct usage see template template's documentation on the 21 parameter.
Sandbox version
{{template template error}}
Too many anonymous parameters. Maximum is 21. For correct usage see template template's documentation on the 21 parameter.


Incorrect

No parameter (error message for this template, instead of the template it is used in)
Wiki code
{{Error}}
Main version
{{Error}}
Anonymous parameter 1 not defined. For correct usage see the Error template's documentation.
Sandbox version
{{Error}}
Anonymous parameter 1 not defined. For correct usage see the Error template's documentation.


One anonymous parameter (error message for this template, instead of the template it is used in)
Wiki code
{{Error|template}}
Main version
{{Error}}
Anonymous parameter 2 not defined. For correct usage see the Error template's documentation on the {{{2}}} parameter.
Sandbox version
{{Error}}
Anonymous parameter 2 not defined. For correct usage see the Error template's documentation on the {{{2}}} parameter.