Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
First draft
Tag: Removed redirect
Update
Line 1: Line 1:
<includeonly>{{#ifexpr:{{#invoke:params|with_name_not_matching|hello|just|with_name_not_matching|wind|just|count}} > 0
<includeonly>{{#ifexpr:{{#invoke:params|with_name_not_matching|hello|strict|with_name_not_matching|wind|strict|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 09:04, 17 May 2024