Template:Parameter typo documentation: Difference between revisions
move "See also" inside Template:category handler |
use Template:TEMPLATENAME as default for first positional parameter |
||
Line 1: | Line 1: | ||
<!----Shared categories where indicated at the bottom of this page, please.----> |
<!----Shared categories where indicated at the bottom of this page, please.----> |
||
Templates {{tl|1}}, {{tl|2}}, {{tl|3}}, etc. warn readers/editors that a [[Typographical error|typo]] exists in the page they are reading/editing. If {{tnull|{{{1}}}}} is called, you probably meant the parameter {{{1}}} (as <nowiki>{{{</nowiki>{{{1}}}<nowiki>}}}</nowiki> with triple braces), but in fact only double braces were used, invoking <nowiki>{{</nowiki>{{{1}}}<nowiki>}}</nowiki>. 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]]. |
Templates {{tl|1}}, {{tl|2}}, {{tl|3}}, etc. warn readers/editors that a [[Typographical error|typo]] exists in the page they are reading/editing. If {{tnull|{{{1|{{TEMPLATENAME}}}}}}} is called, you probably meant the parameter {{{1|{{TEMPLATENAME}}}}} (as <nowiki>{{{</nowiki>{{{1|{{TEMPLATENAME}}}}}<nowiki>}}}</nowiki> with triple braces), but in fact only double braces were used, invoking <nowiki>{{</nowiki>{{{1|{{TEMPLATENAME}}}}}<nowiki>}}</nowiki>. 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 <nowiki>{{</nowiki>{{{1}}}<nowiki>}}}</nowiki>, as invoking Template:{{{1}}} +"}" rather than parameter {{{1}}}. This can be an insidious problem, especially when the transclusion of Template:{{{1}}} is hidden, so that the effect is invisible to the person editing a page. For that reason, Template:{{{1}}} now issues a warning to the user. |
However, the most problems have been caused by omitting the first brace "{" of a parameter and getting <nowiki>{{</nowiki>{{{1|{{TEMPLATENAME}}}}}<nowiki>}}}</nowiki>, as invoking Template:{{{1|{{TEMPLATENAME}}}}} +"}" rather than parameter {{{1|{{TEMPLATENAME}}}}}. This can be an insidious problem, especially when the transclusion of Template:{{{1|{{TEMPLATENAME}}}}} is hidden, so that the effect is invisible to the person editing a page. For that reason, Template:{{{1|{{TEMPLATENAME}}}}} now issues a warning to the user. |
||
With that warning, the prior invisible access to Template:{{{1}}} can now be understood to be a formerly unseen problem coded within a page. |
With that warning, the prior invisible access to Template:{{{1|{{TEMPLATENAME}}}}} can now be understood to be a formerly unseen problem coded within a page. |
||
:''Note'': this will also pick up several variations such as <nowiki>{{</nowiki>{{{1}}}<nowiki>|}}</nowiki> for <nowiki>{{{</nowiki>{{{1}}}|<nowiki>}}}</nowiki> and <nowiki>{{{</nowiki>{{{1}}}<nowiki>}}</nowiki>. |
:''Note'': this will also pick up several variations such as <nowiki>{{</nowiki>{{{1|{{TEMPLATENAME}}}}}<nowiki>|}}</nowiki> for <nowiki>{{{</nowiki>{{{1|{{TEMPLATENAME}}}}}|<nowiki>}}}</nowiki> and <nowiki>{{{</nowiki>{{{1|{{TEMPLATENAME}}}}}<nowiki>}}</nowiki>. |
||
Periodically, people check [[Special:WhatLinksHere/Template:{{{1}}}|what-links-here]] to see if anyone has accidentally invoked Template:{{{1}}}. |
Periodically, people check [[Special:WhatLinksHere/Template:{{{1|{{TEMPLATENAME}}}}}|what-links-here]] to see if anyone has accidentally invoked Template:{{{1|{{TEMPLATENAME}}}}}. |
||
<includeonly> |
<includeonly> |
Revision as of 00:55, 27 February 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.