Template:Foreach2: Difference between revisions
Jump to navigation
Jump to search
(testing input) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#ifexpr:{{{up_to}}}>0|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|1}} | -->{{#ifexpr:{{{up_to}}}>0|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|1}}|match_this=ai2_idle}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>1|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|2}} | -->{{#ifexpr:{{{up_to}}}>1|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|2}}|match_this=ai2_idle}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>2|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|3}} | -->{{#ifexpr:{{{up_to}}}>2|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|3}}|match_this=ai2_idle}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>3|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|4}} | -->{{#ifexpr:{{{up_to}}}>3|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|4}}|match_this=ai2_idle}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>4|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|5}}|{{#ifeq:{{{pass_thru_name|}}}||match_this|{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | -->{{#ifexpr:{{{up_to}}}>4|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|5}}|{{#ifeq:{{{pass_thru_name|}}}||match_this|{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>5|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|6}}|{{#ifeq:{{{pass_thru_name|}}}||match_this|{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- | -->{{#ifexpr:{{{up_to}}}>5|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|6}}|{{#ifeq:{{{pass_thru_name|}}}||match_this|{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}}}<!-- |
Revision as of 04:41, 11 December 2015
Passes a list of items separated by a delimiter to a specified template.