Content deleted Content added
→Single-purpose helper subtemplates: New section |
Update template names |
||
Line 7:
=== Multi-purpose helper subtemplates ===
==== Helper subtemplate {{[[Module:Params/testcases/
The {{[[Module:Params/testcases/
For instance, writing
<syntaxhighlight lang="wikitext">{{module:params/testcases/
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:
{{module:params/testcases/
setting|i/p|<br />|: |list|
-|hello|world|foo=bar}}
Line 35:
=== Miscellaneous helper subtemplates ===
==== Helper subtemplate {{[[Module:Params/testcases/
The {{[[Module:Params/testcases/
== Testing single functions ==
Line 42:
=== Testing the <code>[[Module:Params#list|list]]</code> function ===
==== Helper subtemplate {{[[Module:Params/testcases/
The {{[[Module:Params/testcases/
Example:
{{Automarkup|{{Make code|<<module:params/testcases/
== Dummies ==
|