Module:Params/testcases: Difference between revisions

Content deleted Content added
mNo edit summary
See also: limit
 
(4 intermediate revisions by 2 users not shown)
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 ==
* [[Module:Params/ChangeLog|ChangeLog of Module:Params]]
* {{rel|Module:Params/doc/examples}}
* {{sl|all: contentmodel:wikitext hastemplate:module:params insource:/\#[Ii][Nn][Vv][Oo][Kk][Ee] *: *[Pp]arams *\{{!}}/|Extensive “in source” search|limit=500}}.
* <span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Special:Search&search=insource%3A%2Finvoke%3Aparams%2F&limit=500&offset=0&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns710=1&ns711=1&ns829=1&sort=last_edit_desc Extensive “in source” search]</span>.
 
[[Category:Module test cases]]