Difference between revisions of "Template:SplitLinks"

From Culture.si
Line 1: Line 1:
{{#arr:loop
+
{{{links={{#arr:split|{{{1|}}}|\s*,\s*}}}}}
 +
{{#if:{{#arr:get|{{{links}}}|0}}
 +
|{{#arr:loop
 
|k=v
 
|k=v
|{{#arr:split|{{{1|}}}|\s*,\s*}}
+
|{{{links}}}
|notlast={{#if:{{{v}}}|[[{{{v}}}]]}}, 
+
|each = [[{{{v}}}]]
|last={{#if:{{{v}}}|[[{{{v}}}]]}}
+
|notlast=, 
 +
}}
 
}}
 
}}

Revision as of 00:24, 22 December 2016