Difference between revisions of "Template:Parameter typo documentation"
blackwiki>Andrybak m (fix typo) |
m (45 revisions imported) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 10: | Line 10: | ||
Periodically, people check [[Special:WhatLinksHere/Template:{{{1|{{TEMPLATENAME}}}}}|what-links-here]] to see if anyone has accidentally invoked Template:{{{1|{{TEMPLATENAME}}}}}. | Periodically, people check [[Special:WhatLinksHere/Template:{{{1|{{TEMPLATENAME}}}}}|what-links-here]] to see if anyone has accidentally invoked Template:{{{1|{{TEMPLATENAME}}}}}. | ||
| − | {{ | + | {{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}| |
| + | ===See also=== | ||
| + | }} | ||
{{hlist |{{tl|1}} |{{tl|2}} |{{tl|3}} |{{tl|4}} |{{tl|5}} |{{tl|6}} |{{tl|7}} |{{tl|8}} |{{tl|9}} |{{tl|10}} |{{tl|11}} |{{tl|12}} |{{tl|13}} |{{tl|14}} |{{tl|15}} |{{tl|16}} |{{tl|17}} |{{tl|18}} |{{tl|19}} |{{tl|20}} |{{tl|21}} |{{tl|22}} |{{tl|23}} |{{tl|24}} |{{tl|25}} |{{tl|26}} |{{tl|27}} |{{tl|28}} |{{tl|29}} |{{tl|30}}}} | {{hlist |{{tl|1}} |{{tl|2}} |{{tl|3}} |{{tl|4}} |{{tl|5}} |{{tl|6}} |{{tl|7}} |{{tl|8}} |{{tl|9}} |{{tl|10}} |{{tl|11}} |{{tl|12}} |{{tl|13}} |{{tl|14}} |{{tl|15}} |{{tl|16}} |{{tl|17}} |{{tl|18}} |{{tl|19}} |{{tl|20}} |{{tl|21}} |{{tl|22}} |{{tl|23}} |{{tl|24}} |{{tl|25}} |{{tl|26}} |{{tl|27}} |{{tl|28}} |{{tl|29}} |{{tl|30}}}} | ||
<includeonly> | <includeonly> | ||
| − | {{ | + | {{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}| |
| − | {{ | ||
<!-- Categories for pages transcluding this page --> | <!-- Categories for pages transcluding this page --> | ||
[[Category:Error-message templates| ]] | [[Category:Error-message templates| ]] | ||
[[Category:Wikipedia transclusionless templates]] | [[Category:Wikipedia transclusionless templates]] | ||
| − | + | }}</includeonly> | |
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 09:36, 30 September 2020
Templates {{1}}, {{2}}, {{3}}, etc. warn readers/editors that a typo exists in the page they are reading/editing. If {{Parameter typo documentation}} is called, you probably meant the parameter Parameter typo documentation (as {{{Parameter typo documentation}}} with triple braces), but in fact only double braces were used, invoking {{Parameter typo documentation}}. In addition to a warning, it also adds pages to Category:Templates with incorrect parameter syntax. For more information on how template parameters work, see mw:Help:Templates#Parameters.
However, the most problems have been caused by omitting the first brace "{" of a parameter and getting {{Parameter typo documentation}}}, as invoking Template:Parameter typo documentation +"}" rather than parameter Parameter typo documentation. This can be an insidious problem, especially when the transclusion of Template:Parameter typo documentation is hidden, so that the effect is invisible to the person editing a page. For that reason, Template:Parameter typo documentation now issues a warning to the user.
With that warning, the prior invisible access to Template:Parameter typo documentation can now be understood to be a formerly unseen problem coded within a page.
- Note: this will also pick up several variations such as {{Parameter typo documentation|}} for {{{Parameter typo documentation|}}} and {{{Parameter typo documentation}}.
Periodically, people check what-links-here to see if anyone has accidentally invoked Template:Parameter typo documentation.
See also
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |