Module:Check for unknown parameters/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Undid revision 806160709 by SMcCandlish (talk). Controversial; consensus for this has not been demonstrated.
(→‎Example: suggest using main other as a default; most templates track errors only in article space)
(Undid revision 806160709 by SMcCandlish (talk). Controversial; consensus for this has not been demonstrated.)
Line 30:
 
By default, the module ignores blank positional parameters. To include blank positional parameters in the tracking use {{para|showblankpositional|1}}.
 
===Include <samp>reason</samp>===
Unless there's a very good reason not to, the parameter <code><nowiki>|reason</nowiki></code> should always be supported. This is used as a de facto standard, across all templates, as a way to include an explanatory note (e.g., why the template was placed, in any case in which that isn't obvious) without affecting the displayed output in any way (usually). If you do not include <code><nowiki>|reason</nowiki></code> among permissible values, then this module with throw a bogus error when people include a {{para|reason}}. A few templates (e.g. {{tlx|Rm}}) directly implement a {{para|reason}} parameter that actually does something, but it most cases it is a pseudo-parameter that does not actually appear in the template code, and is used in lieu of messy HTML comments.
 
=== Lua patterns ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu