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 seperator that is passed as the second argument --><!-- We do a check for each argument if it is passed using the '{{#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}{{{2}}}|}}' construct. A ',' is always added, also after the last element, so at the end we take a sub-string, excluding the last character -->{{#sub:{{#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}{{{2}}}|}}{{#ifeq:{{{3|+}}}|{{{3|-}}}|{{{3}}}{{{2}}}|}}{{#ifeq:{{{4|+}}}|{{{4|-}}}|{{{4}}}{{{2}}}|}}{{#ifeq:{{{5|+}}}|{{{5|-}}}|{{{5}}}{{{2}}}|}}{{#ifeq:{{{6|+}}}|{{{6|-}}}|{{{6}}}{{{2}}}|}}{{#ifeq:{{{7|+}}}|{{{7|-}}}|{{{7}}}{{{2}}}|}}{{#ifeq:{{{8|+}}}|{{{8|-}}}|{{{8}}}{{{2}}}|}}{{#ifeq:{{{9|+}}}|{{{9|-}}}|{{{9}}}{{{2}}}|}}{{#ifeq:{{{10|+}}}|{{{10|-}}}|{{{10}}}{{{2}}}|}}{{#ifeq:{{{11|+}}}|{{{11|-}}}|{{{11}}}{{{2}}}|}}{{#ifeq:{{{12|+}}}|{{{12|-}}}|{{{12}}}{{{2}}}|}}{{#ifeq:{{{13|+}}}|{{{13|-}}}|{{{13}}}{{{2}}}|}}{{#ifeq:{{{14|+}}}|{{{14|-}}}|{{{14}}}{{{2}}}|}}{{#ifeq:{{{15|+}}}|{{{15|-}}}|{{{15}}}{{{2}}}|}}{{#ifeq:{{{16|+}}}|{{{16|-}}}|{{{16}}}{{{2}}}|}}{{#ifeq:{{{17|+}}}|{{{17|-}}}|{{{17}}}{{{2}}}|}}|0|-1}}
+
<!-- Combines the first and the third (and any additional parameter (up to 17)) with the seperator 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 ',' is always added, also after the last element, so at the end we take a sub-string, excluding the last character -->{{#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:{{{13|+}}}|{{{13|-}}}|{{{13}}}{{{2}}}|}}{{#ifeq:{{{14|+}}}|{{{14|-}}}|{{{14}}}{{{2}}}|}}{{#ifeq:{{{15|+}}}|{{{15|-}}}|{{{15}}}{{{2}}}|}}{{#ifeq:{{{16|+}}}|{{{16|-}}}|{{{16}}}{{{2}}}|}}{{#ifeq:{{{17|+}}}|{{{17|-}}}|{{{17}}}{{{2}}}|}}|0|-1}}

Revision as of 19:28, 17 November 2016