Difference between revisions of "Template:SplitLinks"

From Culture.si
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{{links={{#arr:split|{{{2|}}}|\s*(,\s*)+}}}}}
+
{{{links={{#arr:split|{{{2|}}}|\s*(,\s*)+}}}}} {{#if:{{#arr:get|{{{links}}}|0}}
{{#if:{{#arr:get|{{{links}}}|0}}
 
 
|{{{1|}}} {{#arr:loop
 
|{{{1|}}} {{#arr:loop
 
|k=v
 
|k=v
Line 6: Line 5:
 
|each = [[{{{v}}}]]
 
|each = [[{{{v}}}]]
 
|notlast=, 
 
|notlast=, 
}}}}{{#if:{{{4|}}}
+
}}}}
| {{{links={{#arr:split|{{{4|}}}|\s*(,\s*)+}}}}}
 
{{#if:{{#arr:get|{{{links}}}|0}}
 
|{{{3|}}} {{#arr:loop
 
|k=v
 
|{{{links}}}
 
|each = [[{{{v}}}]]
 
|notlast=, 
 
}}}}}}
 

Latest revision as of 19:25, 18 January 2017