Difference between revisions of "Template:For Each Param"
(Created page with "<noinclude>Apply a template to each parameter. * First parameter: delimiter between results; default is comma+space * All subsequent unnamed parameters (up to 30): strings to...") |
|||
| Line 1: | Line 1: | ||
<noinclude>Apply a template to each parameter. | <noinclude>Apply a template to each parameter. | ||
| − | * First parameter: delimiter between results | + | * First parameter: delimiter between results |
* All subsequent unnamed parameters (up to 30): strings to apply the ''template'' to; empty signals the end of the list | * All subsequent unnamed parameters (up to 30): strings to apply the ''template'' to; empty signals the end of the list | ||
* ''template'': template to apply to each string (string provided as first parameter; index provided as ''index''; ''param'' provided as ''param'') | * ''template'': template to apply to each string (string provided as first parameter; index provided as ''index''; ''param'' provided as ''param'') | ||
Revision as of 22:10, 4 July 2015
Apply a template to each parameter.
- First parameter: delimiter between results
- All subsequent unnamed parameters (up to 30): strings to apply the template to; empty signals the end of the list
- template: template to apply to each string (string provided as first parameter; index provided as index; param provided as param)
- param: extra parameter to pass to the template; default is empty