Template:Error/doc

From HPC Wiki
Jump to:navigation Jump to:search
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to show an error message, when a template is used in a wrong way. Articles, which uses templates in a wrong way, will be added automatically by this template to the Misused templates category.

Parameters

1. unnamed
Add the template's name, which uses this template.
2. unnamed
Add the parameter's name, you're are checking for. The strings 11 and 21 show a message about too many unnamed parameters.

Usage

See the template's testcases:


Parameter: 1., 2. unnamed
Wiki code {{Error|template|parameter}}

Main version
{{template}}
Parameter parameter not defined. For correct usage see template's documention.
Sandbox version
{{template}}
Parameter parameter not defined. For correct usage see template's documentation.
Parameter: 1., 2. unnamed (2.=11)
Wiki code {{Error|template|11}}

Main version
{{template}}
Too many unnamed parameters. Maximum is 11. For correct usage see template's documention.
Sandbox version
{{template}}
Too many unnamed parameters. Maximum is 11. For correct usage see template's documentation.
Parameter: 1., 2. unnamed (2.=21)
Wiki code {{Error|template|21}}

Main version
{{template}}
Too many unnamed parameters. Maximum is 21. For correct usage see template's documention.
Sandbox version
{{template}}
Too many unnamed parameters. Maximum is 21. For correct usage see template's documentation.