Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
Grufo moved page Module:Params/doc/examples/check for unknown parameters to Module:Params/testcases/sandbox over redirect: Create an example page of how to use Module:Params to check for unknown parameters
Tag: New redirect
 
First draft
Tag: Removed redirect
Line 1: Line 1:
<includeonly>{{#ifexpr:{{#invoke:params|with_name_not_matching|hello|just|with_name_not_matching|wind|just|count}} > 0
#REDIRECT [[Module:Params/testcases/sandbox]]
|{{#invoke:Error|error|Error: The only parameters accepted are {{para|hello}} and {{para|wind}}.}}

|Everything is good: do something
{{Redirect category shell|
}}</includeonly><noinclude>{{Documentation|heading=[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]] Template documentation}}</noinclude>
{{R from move}}
}}

Revision as of 05:30, 17 May 2024