Template:Parameter typo documentation and Template:Parameter typo documentation/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>Jonesey95
add transclusionless template to keep this page off of reports
 
imported>Andrybak
sync with live template
 
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.
---->{{transclusionless}}
---->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]].
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|{{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.
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.
Line 9: Line 8:
:''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>.
:''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 {{ql|Special:WhatLinksHere/Template:{{TEMPLATENAME}}|qs=&hidelinks=1&hideredirs=1|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}}|
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}}|