Template:Tl2

{{#if:{{{1|}}}|$(${{#ifeq: {{#sub: {{{1|}}} | 0 | 1}} |#| {{#vardefine:tl:parserf_link|}}{{#vardefine:tl:parserf_link|{{tl1/parser function links|{{#dplreplace:{{{1|}}}|^#(\s*(\w+?)\s*)(:(.*)${{!}}$)|\2}} }} }} #{{#if:{{{nl|}}}{{#if:{{#var:tl:parserf_link}}||y}}|{{#dplreplace:{{{1|}}}|^#(\s*(\w+?)\s*)(:(.*)${{!}}$)|\1}} | [{{tl/parser function links|{{#dplreplace:{{{1|}}}|^#(\s*(\w+?)\s*)(:(.*)${{!}}$)|\2}}##{{#dplreplace:{{{1|}}}|^#(\s*(\w+?)\s*)(:(.*)${{!}}$)|\2}}} {{#dplreplace:{{{1|}}}|^#(\s*(\w+?)\s*)(:(.*)${{!}}$)|\1}}] }}:{{#dplreplace:{{{1|}}}|^#(\s*(\w+?)\s*)(:(.*)${{!}}$)|\4}} |{{#if:{{{nl|}}}{{ifexists|1=Template:{{{1}}}|3=n|ns=Template}}|{{{1}}} |{{{1}}}}}}}}}{{#if:{{#dplreplace:{{{__paramslist|}}}|/₪/|{{!}}}}|{{#dplreplace:{{{__paramslist|}}}|/₪/|{{!}}}}|{{#fornumargs:k|v|{{#ifexpr:{{#var:k}}!=1|{{!}}{{#var:v}}}}}}}}$)$}}