User:Ferretwings/Sandbox/ForRange/loop

{{#ifeq:{{{code|{{{2|}}}}}}||{{ {{{template|{{{3|test}}}}}}|{{{parameters|{{{4|}}}}}}|index={{{index}}} }}| {{#vardefine:c|{{#replace:{{{code|{{{2}}}}}}|#index|{{{index}}}}}}}{{#if:{{#pos:{{#var:c}}|#{}}| {{#vardefine:c|{{#replace:{{#var:c}}|#{!}#|{{!}}}}}}{{ {{#sub:{{#var:c}}|2|-2}} }}| {{#var:c}} }} }}