Difference between revisions of "Template:DurationWeeks"

From Culture.si
(Created page with "{{#arr:dataloop | {{#arr:match|{{{weeks}}}|([\d\s,]+)\s*\(\s*(\d+)\s*\)}} | each = {{#arr:loop | k=v | {{#arr:split|{{{1}}}|[\s,]+}} | each = <li>{{#expr:{{{2}}}*100 + {...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#arr:dataloop
 
{{#arr:dataloop
| {{#arr:match|{{{weeks}}}|([\d\s,]+)\s*\(\s*(\d+)\s*\)}}
+
| {{#arr:match|{{{weeks|}}}|([\d\s,]+)\s*\(\s*(\d+)\s*\)}}
 
| each = {{#arr:loop
 
| each = {{#arr:loop
 
   | k=v
 
   | k=v
   | {{#arr:split|{{{1}}}|[\s,]+}}
+
   | {{#arr:split|{{{1|}}}|[\s,]+}}
   | each = <li>{{#expr:{{{2}}}*100 + {{{v}}}}}{{#set:Festival weeks={{#expr:{{{2}}}*100 + {{{v}}}}}}}
+
   | each = {{#set:Festival weeks={{#expr:{{{2|0}}}*100 + {{{v|0}}}}}}}
 
   }}
 
   }}
 
}}
 
}}

Latest revision as of 22:37, 9 January 2013

{{#arr:dataloop | {{#arr:match||([\d\s,]+)\s*\(\s*(\d+)\s*\)}} | each = }}