Template:Foreach2: Difference between revisions
Jump to navigation
Jump to search
(needed those closing braces elsewhere) |
(testing input) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#ifexpr:{{{up_to}}}>0|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|1}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | -->{{#ifexpr:{{{up_to}}}>0|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|1}}|{{#ifeq:{{{pass_thru_name|}}}|did not receive pass_thru_name|{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>1|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|2}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | -->{{#ifexpr:{{{up_to}}}>1|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|2}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>2|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|3}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | -->{{#ifexpr:{{{up_to}}}>2|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|3}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- |
Revision as of 04:36, 11 December 2015
Passes a list of items separated by a delimiter to a specified template.