Difference between revisions of "Template:CombineWithSeperator17"

From RadiWiki
Jump to: navigation, search
Line 1: Line 1:
<!-- Combines the first and the third (and any additional parameter (up to 17)) with the separator that is passed as the second argument --><!-- We do a check for each argument if it is passed using the '{{#ifeq:{{#len:{{{1|}}}}}|0||{{{1}}}{{{2}}}}}' construct. A 'separator (2nd argument)' is always added, also after the last element, so at the end we take a sub-string, excluding the length of the separator -->{{#sub:{{#ifeq:{{#len:{{{1|}}}}}|0||{{{1}}}{{{2}}}}}{{#ifeq:{{#len:{{{3|}}}}}|0||{{{3}}}{{{2}}}}}{{#ifeq:{{#len:{{{4|}}}}}|0||{{{4}}}{{{2}}}}}{{#ifeq:{{#len:{{{5|}}}}}|0||{{{5}}}{{{2}}}}}{{#ifeq:{{#len:{{{6|}}}}}|0||{{{6}}}{{{2}}}}}{{#ifeq:{{#len:{{{7|}}}}}|0||{{{7}}}{{{2}}}}}{{#ifeq:{{#len:{{{8|}}}}}|0||{{{8}}}{{{2}}}}}{{#ifeq:{{#len:{{{9|}}}}}|0||{{{9}}}{{{2}}}}}{{#ifeq:{{#len:{{{10|}}}}}|0||{{{10}}}{{{2}}}}}{{#ifeq:{{#len:{{{11|}}}}}|0||{{{11}}}{{{2}}}}}{{#ifeq:{{#len:{{{12|}}}}}|0||{{{12}}}{{{2}}}}}{{#ifeq:{{#len:{{{13|}}}}}|0||{{{13}}}{{{2}}}}}{{#ifeq:{{#len:{{{14|}}}}}|0||{{{14}}}{{{2}}}}}{{#ifeq:{{#len:{{{15|}}}}}|0||{{{15}}}{{{2}}}}}{{#ifeq:{{#len:{{{16|}}}}}|0||{{{16}}}{{{2}}}}}{{#ifeq:{{#len:{{{17|}}}}}|0||{{{17}}}{{{2}}}}}|0|-{{#len:{{{2|}}}}}}}
+
<!-- Combines the first and the third (and any additional parameter (up to 17)) with the separator that is passed as the second argument --><!-- We do a check for each argument if it is passed using the '{{#ifeq:{{#len:{{{1|}}}}}|0||{{{1}}}{{{2}}}}}' construct. A 'separator (2nd argument)' is always added, also after the last element, so at the end we take a sub-string, excluding the length of the separator -->{{#sub:{{#ifeq:{{#len:{{{1|}}}}}|0||{{{1}}}{{{2}}}}}{{#ifeq:{{#len:{{{3|}}}}}|0||{{{3}}}{{{2}}}}}{{#ifeq:{{#len:{{{4|}}}}}|0||{{{4}}}{{{2}}}}}{{#ifeq:{{#len:{{{5|}}}}}|0||{{{5}}}{{{2}}}}}{{#ifeq:{{#len:{{{6|}}}}}|0||{{{6}}}{{{2}}}}}{{#ifeq:{{#len:{{{7|}}}}}|0||{{{7}}}{{{2}}}}}{{#ifeq:{{#len:{{{8|}}}}}|0||{{{8}}}{{{2}}}}}{{#ifeq:{{#len:{{{9|}}}}}|0||{{{9}}}{{{2}}}}}{{#ifeq:{{#len:{{{10|}}}}}|0||{{{10}}}{{{2}}}}}{{#ifeq:{{#len:{{{11|}}}}}|0||{{{11}}}{{{2}}}}}{{#ifeq:{{#len:{{{12|}}}}}|0||{{{12}}}{{{2}}}}}{{#ifeq:{{#len:{{{13|}}}}}|0||{{{13}}}{{{2}}}}}{{#ifeq:{{#len:{{{14|}}}}}|0||{{{14}}}{{{2}}}}}{{#ifeq:{{#len:{{{15|}}}}}|0||{{{15}}}{{{2}}}}}{{#ifeq:{{#len:{{{16|}}}}}|0||{{{16}}}{{{2}}}}}{{#ifeq:{{#len:{{{17|}}}}}|0||{{{17}}}{{{2}}}}}{{#ifeq:{{#len:{{{18|}}}}}|0||{{{18}}}{{{2}}}}}{{#ifeq:{{#len:{{{19|}}}}}|0||{{{19}}}{{{2}}}}}{{#ifeq:{{#len:{{{20|}}}}}|0||{{{20}}}{{{2}}}}}{{#ifeq:{{#len:{{{21|}}}}}|0||{{{21}}}{{{2}}}}}{{#ifeq:{{#len:{{{22|}}}}}|0||{{{22}}}{{{2}}}}}{{#ifeq:{{#len:{{{23|}}}}}|0||{{{23}}}{{{2}}}}}|0|-{{#len:{{{2|}}}}}}}

Revision as of 19:27, 11 February 2020