Module:Check for unknown parameters/doc explained

Module:Check for unknown parameters is used to check for uses of unknown parameters in a template or module. It may be appended to a template at the end or called directly from a module.

Usage

From a template

To sort entries into a tracking category by parameter, use:

From a module

To call from a module, use:local checkForUnknownParameters = require("Module:Check for unknown parameters")local result = checkForUnknownParameters._check(validArgs, args)

Where the first set of args are the module args below and the second set of args are the parameters that are checked.

Parameters

Example

Label1:Height
Label2:Weight
Label3:Website

Call from within Lua code

See the end of for a simple example or or for more complicated examples.

See also