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

m
no edit summary
m (1 revision imported)
mNo edit summary
 
Line 1: Line 1:
{{High-risk|9500000|all-pages=yes}}
{{used in system|in [[MediaWiki:Abusefilter-warning-DS]]}}
{{module rating|p}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
This module may be appended to a template to check for uses of unknown parameters.
This module may be appended to a template to check for uses of unknown parameters.


Line 11: Line 7:
{{#invoke:check for unknown parameters|check
{{#invoke:check for unknown parameters|check
|unknown=[[Category:Some tracking category]]
|unknown=[[Category:Some tracking category]]
|arg1|arg2|arg3|argN}}
|arg1|arg2|...|argN}}
</pre>
</pre>
or to sort the entries in the tracking category by parameter with a preview error message
or to sort the entries in the tracking category by parameter with a preview error message
Line 70: Line 66:


==See also==
==See also==
* {{clc|Unknown parameters}} (category page can have header {{tl|Unknown parameters category}})
* {{clc|Unknown parameters}} (category page can have {{tl|Unknown parameters category}})
* [[Module:Check for deprecated parameters]] similar module that checks for deprecated parameters
* [[Module:Check for deprecated parameters]] - similar module that checks for deprecated parameters
* [[Module:TemplatePar]] similar function (originally from dewiki)
* [[:module:TemplatePar]] - similar function (originally from dewiki)
* [[Template:Parameters]] and [[Module:Parameters]] – generates a list of parameter names for a given template
* [[Template:Parameters]] and [[Module:Parameters]] – generates a list of parameter names for a given template
* [[Project:TemplateData]] based template parameter validation
* [[:he:Module:ParamValidator]] - parameter validation system on hewiki, relies on TemplateData. module doc in English. checks the following:  
** [[:he:Module:ParamValidator]] parameter validation system on hewiki, relies on TemplateData. module doc in English. checks the following:
**use of undeclared parameters
***use of undeclared parameters
** use of parameters marked in templatedata "deprecated"
*** use of parameters marked in templatedata "deprecated"
** mistyped (mainly, parameters declared in templatedata as "number" receiving non-numerical value)
*** mistyped (mainly, parameters declared in templatedata as "number" receiving non-numerical value)
**missing parameters marked in TemplateData as "required"
***missing parameters marked in TemplateData as "required"
**understands aliases, and warns when more than one alias of a parameter is used
***understands aliases, and warns when more than one alias of a parameter is used
** [[:cs:Module:CheckParameters]] – another parameter check system on cswiki that relies on TemplateData
* [[s:cs:Module:MonitorTemplateArguments]] – a template parameter monitoring system based on tracking categories


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||