Module:Params/testcases: Difference between revisions

Content deleted Content added
Add internal links
mNo edit summary
Line 12:
For instance, writing
 
<syntaxhighlight lang="wikitext">{{Modulemodule:Paramsparams/testcases/multi|
setting|i/p|<br />|: |list|
-|hello|world|foo=bar}}</syntaxhighlight>
Line 18:
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:
 
{{Modulemodule:Paramsparams/testcases/multi|
setting|i/p|<br />|: |list|
-|hello|world|foo=bar}}
Line 36:
Example:
 
{{Automarkup|{{Make code|<<Modulemodule:Paramsparams/testcases/echo!hello!world!foo{{=}}bar>>}}}}
 
== Dummies ==
===* Dummy submodules ===
** {{ml|params/testcases/mdummy}}
===* Dummy subtemplates ===
** {{[[module:params/testcases/tdummy echo sb]]}}