Module:Params/testcases/tmulti/doc: Difference between revisions
Appearance
Content deleted Content added
Documentation update |
|||
Line 13: | Line 13: | ||
setting|i/p|<br />|: |list| |
setting|i/p|<br />|: |list| |
||
-|hello|world|foo=bar}} |
-|hello|world|foo=bar}} |
||
== See also == |
|||
* {{[[Module:Params/testcases/tmulti sandbox]]}} |
|||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
Revision as of 16:17, 26 May 2024
This test template allows to simulate in one single call both the incoming parameters and the parameters possibly concatenated to {{#invoke:params|...|function|...}}
, using a single hyphen (-
) as a delimiter between the two groups. This allows to make general experiments directly from the preview window without having to edit separate templates.
Usage
For instance, writing
{{module:params/testcases/tmulti|
setting|i/p|<br />|: |list|
-|hello|world|foo=bar}}
will simulate a call with |1=hello
, |2=world
, and |foo=bar
to a template whose content is {{#invoke:params|setting|i/p|<br />|: |list}}
, thus producing:
1: hello
2: world
foo: bar
See also