<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACheck_for_unknown_parameters%2Fdoc</id>
	<title>Module:Check for unknown parameters/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACheck_for_unknown_parameters%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Check_for_unknown_parameters/doc&amp;action=history"/>
	<updated>2026-04-06T02:27:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://mindpowe.red/wiki/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=348&amp;oldid=prev</id>
		<title>WikiSysop: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=348&amp;oldid=prev"/>
		<updated>2020-08-07T21:06:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 21:06, 7 August 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
	<entry>
		<id>https://mindpowe.red/wiki/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=347&amp;oldid=prev</id>
		<title>en&gt;John of Reading: Reverted 1 edit by 2600:1011:B145:EB21:3E86:2128:4BB3:D821 (talk): Rv spelling error - a test edit? (TW)</title>
		<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=347&amp;oldid=prev"/>
		<updated>2020-08-04T16:37:04Z</updated>

		<summary type="html">&lt;p&gt;Reverted 1 edit by &lt;a href=&quot;/wiki/index.php/Special:Contributions/2600:1011:B145:EB21:3E86:2128:4BB3:D821&quot; title=&quot;Special:Contributions/2600:1011:B145:EB21:3E86:2128:4BB3:D821&quot;&gt;2600:1011:B145:EB21:3E86:2128:4BB3:D821&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:2600:1011:B145:EB21:3E86:2128:4BB3:D821&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:2600:1011:B145:EB21:3E86:2128:4BB3:D821 (page does not exist)&quot;&gt;talk&lt;/a&gt;): Rv spelling error - a test edit? (&lt;a href=&quot;/wiki/index.php?title=WP:TW&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:TW (page does not exist)&quot;&gt;TW&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-risk|9500000|all-pages=yes}}&lt;br /&gt;
{{used in system|in [[MediaWiki:Abusefilter-warning-DS]]}}&lt;br /&gt;
{{module rating|p}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This module may be appended to a template to check for uses of unknown parameters.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:check for unknown parameters|check&lt;br /&gt;
|unknown=[[Category:Some tracking category]]&lt;br /&gt;
|arg1|arg2|arg3|argN}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or to sort the entries in the tracking category by parameter with a preview error message&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:check for unknown parameters|check&lt;br /&gt;
|unknown=[[Category:Some tracking category|_VALUE_]]&lt;br /&gt;
|preview=unknown parameter &amp;quot;_VALUE_&amp;quot;&lt;br /&gt;
|arg1|arg2|...|argN}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or for an explicit red error message&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:check for unknown parameters|check&lt;br /&gt;
|unknown=&amp;lt;span class=&amp;quot;error&amp;quot;&amp;gt;Sorry, I don't recognize _VALUE_&amp;lt;/span&amp;gt;&lt;br /&gt;
|arg1|arg2|...|argN}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Here, &amp;lt;code&amp;gt;arg1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;arg2&amp;lt;/code&amp;gt;, ..., &amp;lt;code&amp;gt;argN&amp;lt;/code&amp;gt;, are the known parameters. Unnamed (positional) parameters can be added too: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|1|2|argname1|argname2|...&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Any parameter which is used, but not on this list, will cause the module to return whatever is passed with the &amp;lt;code&amp;gt;unknown&amp;lt;/code&amp;gt; parameter.  The &amp;lt;code&amp;gt;_VALUE_&amp;lt;/code&amp;gt; keyword, if used, will be changed to the name of the parameter.  This is useful for either sorting the entries in a tracking category, or for provide more explicit information.&lt;br /&gt;
&lt;br /&gt;
By default, the module makes no distinction between a defined-but-blank parameter and a non-blank parameter. That is, both unlisted {{para|foo|x}} and {{para|foo}} are reported. To only track non-blank parameters use {{para|ignoreblank|1}}.&lt;br /&gt;
&lt;br /&gt;
By default, the module ignores blank positional parameters. That is, an unlisted {{para|2}} is ignored. To ''include'' blank positional parameters in the tracking use {{para|showblankpositional|1}}.&lt;br /&gt;
&lt;br /&gt;
=== Lua patterns ===&lt;br /&gt;
This module supports [[:mw:Extension:Scribunto/Lua reference manual#Patterns|Lua patterns]] (similar to [[regular expression]]s), which are useful when there are many known parameters which use a systematic pattern.  For example, [[template:infobox3cols]] uses&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
| regexp1 = header[%d][%d]*&lt;br /&gt;
| regexp2 = label[%d][%d]*&lt;br /&gt;
| regexp3 = data[%d][%d]*[abc]?&lt;br /&gt;
| regexp4 = class[%d][%d]*[abc]?&lt;br /&gt;
| regexp5 = rowclass[%d][%d]*&lt;br /&gt;
| regexp6 = rowstyle[%d][%d]*&lt;br /&gt;
| regexp7 = rowcellstyle[%d][%d]*&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to match all parameters of the form &amp;lt;code&amp;gt;headerNUM&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;labelNUM&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dataNUM&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dataNUMa&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dataNUMb&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;dataNUMc&amp;lt;/code&amp;gt;, ..., &amp;lt;code&amp;gt;rowcellstyleNUM&amp;lt;/code&amp;gt;, where NUM is a string of digits.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Infobox&lt;br /&gt;
| above = {{{name|}}}&lt;br /&gt;
&lt;br /&gt;
| label1 = Height&lt;br /&gt;
| data1 = {{{height|}}}&lt;br /&gt;
&lt;br /&gt;
| label2 = Weight&lt;br /&gt;
| data2 = {{{weight|}}}&lt;br /&gt;
&lt;br /&gt;
| label3 = Website&lt;br /&gt;
| data3 = {{{website|}}}&lt;br /&gt;
}}&amp;lt;!-- &lt;br /&gt;
  end infobox, start tracking&lt;br /&gt;
--&amp;gt;{{#invoke:Check for unknown parameters|check&lt;br /&gt;
| unknown = {{main other|[[Category:Some tracking category|_VALUE_]]}}&lt;br /&gt;
| preview = unknown parameter &amp;quot;_VALUE_&amp;quot;&lt;br /&gt;
| name&lt;br /&gt;
| height | weight&lt;br /&gt;
| website&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{clc|Unknown parameters}} (category page can have header {{tl|Unknown parameters category}})&lt;br /&gt;
* [[Module:Check for deprecated parameters]] – similar module that checks for deprecated parameters&lt;br /&gt;
* [[Module:TemplatePar]] – similar function (originally from dewiki)&lt;br /&gt;
* [[Template:Parameters]] and [[Module:Parameters]] – generates a list of parameter names for a given template&lt;br /&gt;
* [[Project:TemplateData]] based template parameter validation&lt;br /&gt;
** [[:he:Module:ParamValidator]] – parameter validation system on hewiki, relies on TemplateData. module doc in English. checks the following:&lt;br /&gt;
***use of undeclared parameters&lt;br /&gt;
*** use of parameters marked in templatedata &amp;quot;deprecated&amp;quot;&lt;br /&gt;
*** mistyped (mainly, parameters declared in templatedata as &amp;quot;number&amp;quot; receiving non-numerical value)&lt;br /&gt;
***missing parameters marked in TemplateData as &amp;quot;required&amp;quot;&lt;br /&gt;
***understands aliases, and warns when more than one alias of a parameter is used&lt;br /&gt;
** [[:cs:Module:CheckParameters]] – another parameter check system on cswiki that relies on TemplateData&lt;br /&gt;
* [[s:cs:Module:MonitorTemplateArguments]] – a template parameter monitoring system based on tracking categories&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;John of Reading</name></author>
		
	</entry>
</feed>