Difference between revisions of "Template:FestivalDates"

From Culture.si
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{{dates = {{#str:replace|{{{1|}}}|\s|}}}}}
 
{{{dates = {{#str:replace|{{{1|}}}|\s|}}}}}
Datumi: {{{dates}}}
 
 
{{#arr:loop
 
{{#arr:loop
 
| i=chunk
 
| i=chunk
 
| {{#arr:split|{{{dates}}}|,+}}
 
| {{#arr:split|{{{dates}}}|,+}}
| each = {{{chunk}}}::::::{{{
+
| each = {{{
 
   dates = {{#arr:split|{{{chunk}}}|[-‐‑‒–—―]}}
 
   dates = {{#arr:split|{{{chunk}}}|[-‐‑‒–—―]}}
 
| start_date = {{#arr:get|{{{dates}}}|0}}
 
| start_date = {{#arr:get|{{{dates}}}|0}}

Latest revision as of 23:06, 21 January 2020