Toggle menu
14
236
69
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Params/doc/examples/check for unknown parameters/doc

From Kenshi Wiki
Revision as of 06:47, 9 March 2025 by Prd (talk | contribs) (Created page with "This example template shows to use {{mfl|params|discarding|...}} to check for unknown parameters. == Usage == For instance, writing <syntaxhighlight lang="wikitext">{{module:params/doc/examples/check for unknown parameters | hello = world | wind = surfing }}</syntaxhighlight> will generate : {{module:params/doc/examples/check for unknown parameters | hello = world | wind = surfing }} while writing <syntaxhighlight lang="wikitext">{{module:params/doc/examples/ch...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Params/doc/examples/check for unknown parameters

This example template shows to use {{#invoke:params|discarding|...}} to check for unknown parameters.

Usage

For instance, writing

{{module:params/doc/examples/check for unknown parameters
	| hello = world
	| wind = surfing
}}

will generate

Everything is good: do something

while writing

{{module:params/doc/examples/check for unknown parameters
	| hello = world
	| wind = surfing
	| wrong = ups!
}}

will generate

Error: The only parameters accepted are |hello= and |wind=.

For simple cases like this specialized modules are available; you might want to have a look at:

Contents