<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/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://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ACheck_for_unknown_parameters%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Check_for_unknown_parameters/doc&amp;action=history"/>
	<updated>2026-04-04T17:45:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=27186&amp;oldid=prev</id>
		<title>Shawndouglas at 23:19, 18 August 2016</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=27186&amp;oldid=prev"/>
		<updated>2016-08-18T23:19:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:19, 18 August 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{module rating|p}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=27185&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Module:Check_for_unknown_parameters/doc&amp;diff=27185&amp;oldid=prev"/>
		<updated>2016-08-18T23:19:33Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&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|...|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.  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.  To only track non-blank parameters use {{para|ignoreblank|1}}.&lt;br /&gt;
&lt;br /&gt;
By default, the module ignores blank positional parameters.  To include blank positional parameters in the tracking use {{para|showblankpositional|1}}.&lt;br /&gt;
&lt;br /&gt;
=== Regular expressions ===&lt;br /&gt;
This module supports regular expressions, 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 = [[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;
==Templates invoking this module==&lt;br /&gt;
&lt;br /&gt;
The following is a list of templates which invoke this module, with the associated category for each.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable collapsible collapsed&amp;quot; style=&amp;quot;font-size:88%&amp;quot;&lt;br /&gt;
!  colspan=&amp;quot;2&amp;quot; class=&amp;quot;unsortable&amp;quot; style=&amp;quot;background-color:#ddd&amp;quot; | List of templates which invoke &amp;quot;Module:Check for unknown parameters&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Template !! Tracking/maintenance category&lt;br /&gt;
|-&lt;br /&gt;
| [[Template:Infobox settlement]] || [[:Category:Settlement articles requiring maintenance]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[:module:TemplatePar]] (originally from dewiki)&lt;br /&gt;
* [[Template:Parameters]] and [[Module:Parameters]] – generates a list of parameter names for a given template&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&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>Shawndouglas</name></author>
	</entry>
</feed>