Difference between revisions of "Template:For Each/Raw"
| Line 9: | Line 9: | ||
</noinclude><includeonly>({{Select|{{{4}}}| | </noinclude><includeonly>({{Select|{{{4}}}| | ||
| param={{#if: {{{value}}} | 1}} | | param={{#if: {{{value}}} | 1}} | ||
| − | }} | + | }}o{{#if: {{{value}}} |
| {{{{{template}}}|{{{value}}}| index={{{index}}}}}{{For Each/Raw|{{{1}}}|{{{2}}}|{{{3}}}|{{{3}}}| | | {{{{{template}}}|{{{value}}}| index={{{index}}}}}{{For Each/Raw|{{{1}}}|{{{2}}}|{{{3}}}|{{{3}}}| | ||
| template={{{template}}} | | template={{{template}}} | ||
Revision as of 18:24, 22 June 2015
Helper for Template:For Each.
- First parameter: string to split
- Second parameter: delimiter to search for
- Third parameter: replacement delimiter
- Fourth parameter: current replacement delimiter
- template: template to apply to each substring (string provided as first parameter; index passed as index)
- index: current split index (1-based)
- value: current split value