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}}
| start = {{#timel:Ymd|{{{start_date}}}}}
+
| startd = {{#timel:Ymd|{{{start_date}}}}}
 
| end_date = {{#arr:get|{{{dates}}}|1|{{{start_date}}}}}
 
| end_date = {{#arr:get|{{{dates}}}|1|{{{start_date}}}}}
| end = {{#timel:Ymd|{{{end_date}}}}}
+
| endd = {{#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={{{start}}}}}{{#set:Festival end={{{end}}}}}
+
| last = {{#set:Festival start={{{startd}}}}}{{#set:Festival end={{{endd}}}}}
 
}}
 
}}

Revision as of 22:51, 11 April 2018

"Error: Invalid time." is not a number."Error: Invalid time." is not a number.