<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AParameter_validation%2Fdoc</id>
	<title>Module:Parameter validation/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AParameter_validation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Parameter_validation/doc&amp;action=history"/>
	<updated>2026-04-09T06:23:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Parameter_validation/doc&amp;diff=144271&amp;oldid=prev</id>
		<title>imported&gt;ProcrastinatingReader: tweak</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Parameter_validation/doc&amp;diff=144271&amp;oldid=prev"/>
		<updated>2022-11-07T15:21:14Z</updated>

		<summary type="html">&lt;p&gt;tweak&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Lua|Module:If preview}}&lt;br /&gt;
&lt;br /&gt;
This module helps you find problematic usages of a template&amp;#039;s parameters. Compared to [[Module:Check for unknown parameters]], you do not need to create long lists of parameters which should be categorised; it will automatically read them from the template&amp;#039;s TemplateData. This means you don&amp;#039;t need to define the parameter configuration in multiple places, which will inevitably lead to it being out of sync.&lt;br /&gt;
&lt;br /&gt;
As well as that, it supports a few other types of errors, such as defining the same parameter multiple times, or using deprecated parameters (useful to do so you can replace usages before removing support for a parameter entirely).&lt;br /&gt;
&lt;br /&gt;
== Basic usage ==&lt;br /&gt;
&lt;br /&gt;
Add this to the bottom of a template:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
{{#invoke:Parameter validation|validateparams|module_options = Module:Parameter validation/default config}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will use the default config defined in [[Module:Parameter validation/default config]]. The module will begin to populate the following categories:&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Pages using TEMPLATE_NAME with unknown parameters]]&lt;br /&gt;
* [[:Category:Pages using TEMPLATE_NAME with deprecated parameters]]&lt;br /&gt;
* [[:Category:Pages using TEMPLATE_NAME with duplicate parameters]]&lt;br /&gt;
&lt;br /&gt;
For example, for {{t|Infobox station}}, it will populate:&lt;br /&gt;
* [[:Category:Pages using infobox station with unknown parameters]]&lt;br /&gt;
* [[:Category:Pages using infobox station with deprecated parameters]]&lt;br /&gt;
* [[:Category:Pages using infobox station with duplicate parameters]]&lt;br /&gt;
&lt;br /&gt;
Note that:&lt;br /&gt;
* Unknown parameters means a page calling the template used a parameter that does not exist&lt;br /&gt;
* Deprecated parameters means a page calling the template used a parameter which, in the template&amp;#039;s TemplateData, has the &amp;#039;deprecated&amp;#039; option ticked&lt;br /&gt;
* Duplicate parameters means a page calling the template set a value for the same parameter multiple times&lt;br /&gt;
&lt;br /&gt;
== Full documentation ==&lt;br /&gt;
This module is based on idea and original code of [[User:IKhitron]].&lt;br /&gt;
&lt;br /&gt;
The source of this module, along with the original documentation, can be found at [[:he:Module:ParamValidator]].&lt;/div&gt;</summary>
		<author><name>imported&gt;ProcrastinatingReader</name></author>
	</entry>
</feed>