Template:Foreach2: Difference between revisions
Jump to navigation
Jump to search
(maybe #if isn't working again) |
(was closing template call before passthru arg) |
||
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}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>1|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|2 | -->{{#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 | -->{{#ifexpr:{{{up_to}}}>2|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|3}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>3|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|4 | -->{{#ifexpr:{{{up_to}}}>3|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|4}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>4|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|5 | -->{{#ifexpr:{{{up_to}}}>4|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|5}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>5|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|6 | -->{{#ifexpr:{{{up_to}}}>5|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|6}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>6|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|7 | -->{{#ifexpr:{{{up_to}}}>6|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|7}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>7|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|8 | -->{{#ifexpr:{{{up_to}}}>7|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|8}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>8|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|9 | -->{{#ifexpr:{{{up_to}}}>8|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|9}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>9|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|10 | -->{{#ifexpr:{{{up_to}}}>9|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|10}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>10|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|11 | -->{{#ifexpr:{{{up_to}}}>10|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|11}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>11|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|12 | -->{{#ifexpr:{{{up_to}}}>11|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|12}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}<!-- | ||
-->{{#ifexpr:{{{up_to}}}>12|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|13 | -->{{#ifexpr:{{{up_to}}}>12|{{{{{call}}}|{{#explode:{{{item_in}}}|{{{delim|,}}}|13}}|{{#ifeq:{{{pass_thru_name|}}}||{{{pass_thru_name}}}={{{pass_thru_arg}}}}}}}</includeonly><noinclude> | ||
Passes a list of items separated by a delimiter to a specified template. | Passes a list of items separated by a delimiter to a specified template. | ||
[[Category:Macro templates]] | [[Category:Macro templates]] | ||
</noinclude> | </noinclude> |
Revision as of 04:32, 11 December 2015
Passes a list of items separated by a delimiter to a specified template.