<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/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://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AParameter_validation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Parameter_validation/doc&amp;action=history"/>
	<updated>2026-10-31T16:01:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:Parameter_validation/doc&amp;diff=112091&amp;oldid=prev</id>
		<title>Wikipedia&gt;Mr. Starfleet Command: format</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Parameter_validation/doc&amp;diff=112091&amp;oldid=prev"/>
		<updated>2026-05-03T21:12:23Z</updated>

		<summary type="html">&lt;p&gt;format&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-use}}&lt;br /&gt;
{{Lua|Module:Parameter validation/default config}}&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 lang=&amp;quot;wikitext&amp;quot;&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 in the template documentation&amp;#039;s TemplateData section&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 and set a value for a parameter and one or more of its aliases&lt;br /&gt;
&lt;br /&gt;
==Use in protected templates==&lt;br /&gt;
Note that because templates&amp;#039; TemplateData code typically lives in unprotected /doc pages, protected templates that invoke this module can be made to incorrectly categorize pages by editors who do not have user rights sufficient to edit the template page itself.&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;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;
[[Category:Modules that add a tracking category]]&lt;br /&gt;
[[Category:Template metamodules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Mr. Starfleet Command</name></author>
	</entry>
</feed>