Jump to content

Module:Params/doc/examples/check for unknown parameters: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Update
Use ‘discarding’ instead of ‘with_name_not_matching
Line 1: Line 1:
<includeonly>{{#ifexpr:{{#invoke:params|with_name_not_matching|hello|strict|with_name_not_matching|wind|strict|count}} > 0
<includeonly>{{#ifexpr:{{#invoke:params|discarding|hello|discarding|wind|count}} > 0
|{{#invoke:Error|error|Error: The only parameters accepted are {{para|hello}} and {{para|wind}}.}}
|{{#invoke:Error|error|Error: The only parameters accepted are {{para|hello}} and {{para|wind}}.}}
|Everything is good: do something
|Everything is good: do something

Revision as of 19:31, 26 September 2024