Template:Error: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
(https://wiki.gentoo.org/wiki/Template:Error)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
  }}
  }}
|{{MessageBox|<nowiki>{{</nowiki>Error<nowiki>}}</nowiki>| Parameter ''1. unnamed'' not defined. For correct usage see [[Template:Error/doc|template's documention]].|color=#A40000}}
|{{MessageBox|<nowiki>{{</nowiki>Error<nowiki>}}</nowiki>| Parameter ''1. unnamed'' not defined. For correct usage see [[Template:Error/doc|template's documention]].|color=#A40000}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 01:48, 28 December 2016

[edit

Documentation

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.
Note
The above documentation is transcluded from Template:Error/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.