Difference between revisions of "Template:FestivalDates"

From Culture.si
Line 1: Line 1:
 
FIXMEEEEE
 
FIXMEEEEE
 +
{{{dates = {{#str:replace|{{{1|23.3.2015, 24.3.2014 - 27.3. 2014}}}|\s|}}}}}
 +
 +
{{#arr:loop
 +
| i=year
 +
| {{#arr:split|{{{dates}}}|,+}}
 +
| each =
 +
YEAR: {{{year}}}
 +
{{{
 +
  dates = {{#arr:split|{{{year}}}|[-–]}}
 +
| start_date = {{#arr:get|{{{dates}}}|0}}
 +
| end_date = {{#arr:get|{{{dates}}}|1|{{{start_date}}}}}
 +
| start_week = {{#timel:W|{{{start_date}}}}}
 +
| end_week = {{#timel:W|{{{end_date}}}}}
 +
}}}
 +
 +
{{#arr:list|{{{dates}}}}}
 +
 +
{{{start_week}}} {{{end_week}}}
 +
  
{{#arr:dataloop
 
| {{#arr:split|{{{1|}}}|[\s,]+}}
 
| each = {{#arr:loop
 
  | k=v
 
  | {{#arr:split|{{{1|}}}|[-–]+}}
 
  | each = {{#set:Festival weeks={{#expr:{{{2|0}}}*100 + {{{v|0}}}}}}}
 
  }}
 
 
}}
 
}}

Revision as of 18:57, 3 June 2015

FIXMEEEEE


YEAR: 23.3.2015


  • = f8193d112c7c210a4dd2f56a0f9afcc3

13 13 YEAR: 24.3.2014-27.3.2014


  • = 4576f8abe9ed5c0a62a89ebea1e982c9

13 13