Template:CombineWithSeperator17: Difference between revisions

From RadiWiki
Jump to navigation Jump to search
No edit summary
No edit summary
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 split the task into a CombineWithSeperator that only accepts 5 arguments ->{{CombineWithSeperator3|{{CombineWithSeperator3|{{CombineWithSeperator5|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}}|{{{2}}}|{{CombineWithSeperator5|{{{6}}}|{{{2}}}|{{{7}}}|{{{8}}}|{{{9}}}}}}}|{{{2}}}|{{CombineWithSeperator3|{{CombineWithSeperator5|{{{10}}}|{{{2}}}|{{{11}}}|{{{12}}}|{{{13}}}}}|{{{2}}}|{{CombineWithSeperator5|{{{14}}}|{{{2}}}|{{{15}}}|{{{16}}}|{{{17}}}}}}}}}-->{{#replace:{{{1|}}}{{{2}}}{{{3|}}}{{{2}}}{{{4|}}}{{{2}}}{{{5|}}}{{{2}}}{{{6|}}}{{{2}}}{{{7|}}}{{{2}}}{{{8|}}}{{{2}}}{{{9|}}}{{{2}}}{{{10|}}}{{{2}}}{{{11|}}}{{{2}}}{{{12|}}}{{{2}}}{{{13|}}}{{{2}}}{{{14|}}}{{{2}}}{{{15|}}}{{{2}}}{{{16|}}}{{{2}}}{{{17|}}}|{{{2}}}{{{2}}}|}}
<!-- 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. At the end we also add an additional {{{2}}}, and then do a total replace on the complete concatenated string to replace two consecutive {{{2}}} elements -->{{#replace:{{#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}}}|}}{{{2}}}|{{{2}}}{{{2}}}|}}

Revision as of 10:40, 17 November 2016

{{{2}}}