Module:Params/testcases: Difference between revisions

Content deleted Content added
mNo edit summary
Deprecated tools: No need to document deprecated tools
Line 90:
 
== Deprecated tools ==
The following tools have beenwere developed with older versions of [[Module:Params]] in mind, and have beenwere later superseded by new functionalities in the module. They are kept here for historical reasons.
 
===* Helper{{[[Module:Params/testcases/tmulti|./tmulti]]}} subtemplateand {{[[Module:Params/testcases/tmulti sandbox|./tmulti sandbox]]}} ===
The {{[[Module:Params/testcases/tmulti|./tmulti]]}} subtemplate allows to simulate in one single call both the incoming parameters and the parameters manually concatenated to <code>{{ml|params|...|''function''|...}}</code>, using a single hyphen (<code>-</code>) as a delimiter between the two groups. This allows to make general experiments directly from the preview window without having to edit separate templates.
 
For instance, writing
 
<syntaxhighlight lang="wikitext">{{module:params/testcases/tmulti|
setting|i/p|<br />|: |list|
-|hello|world|foo=bar}}</syntaxhighlight>
 
will simulate a call with {{para|1|hello}}, {{para|2|world}}, and {{para|foo|bar}} to a template whose content is <syntaxhighlight lang="wikitext" inline>{{#invoke:params|setting|i/p|<br />|: |list}}</syntaxhighlight>, thus producing:
 
{{module:params/testcases/tmulti|
setting|i/p|<br />|: |list|
-|hello|world|foo=bar}}
 
{{A note}} An identical subtemplate that uses [[Module:Params/sandbox]] instead of [[Module:Params]] is available at {{[[Module:Params/testcases/tmulti sandbox|./tmulti sandbox]]}}.
 
== See also ==