Difference between revisions of "Template:FestivalDates"

From Culture.si
Line 6: Line 6:
 
   dates = {{#arr:split|{{{chunk}}}|[-−–]}}
 
   dates = {{#arr:split|{{{chunk}}}|[-−–]}}
 
| start_date = {{#arr:get|{{{dates}}}|0}}
 
| start_date = {{#arr:get|{{{dates}}}|0}}
| startd = {{#timel:Ymd|{{{start_date}}}}}
+
| start = {{#timel:Ymd|{{{start_date}}}}}
 
| end_date = {{#arr:get|{{{dates}}}|1|{{{start_date}}}}}
 
| end_date = {{#arr:get|{{{dates}}}|1|{{{start_date}}}}}
| endd = {{#timel:Ymd|{{{end_date}}}}}
+
| end = {{#timel:Ymd|{{{end_date}}}}}
 
| start_year = {{#timel:Y|{{{start_date}}}}}
 
| start_year = {{#timel:Y|{{{start_date}}}}}
 
| end_year = {{#timel:Y|{{{end_date}}}}}
 
| end_year = {{#timel:Y|{{{end_date}}}}}
Line 19: Line 19:
 
| each = {{#set:Festival weeks={{{week}}}}}
 
| each = {{#set:Festival weeks={{{week}}}}}
 
}}
 
}}
| last = {{#set:Festival start={{#timel:Y|{{{start_date}}}}}}}{{#set:Festival end={{{endd}}}}}
+
| last = {{#set:Festival start={{{start}}}}}{{#set:Festival end={{{end}}}}}
 
}}
 
}}

Revision as of 23:00, 11 April 2018