Difference between revisions of "Template:WhereEvent"

From Culture.si
Line 2: Line 2:
 
{{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'
 
{{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'
 
}}{{#if:{{{after|}}}| and Event.Start >= '{{#timel:c|{{{after}}}}}'
 
}}{{#if:{{{after|}}}| and Event.Start >= '{{#timel:c|{{{after}}}}}'
 +
}}
 +
{{#switch:{{{year|}}}|
 +
| upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}'
 +
| #default = and coalesce(Event.End,Event.Start) <= '{{#timel:c|today}}'
 
}}{{#switch:{{{year|}}}|
 
}}{{#switch:{{{year|}}}|
 
| all=
 
| all=
| upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}'
+
| upcoming =  
 
| #default = and (Event.Years='Year_{{#cast:integer|{{{year}}}}}')
 
| #default = and (Event.Years='Year_{{#cast:integer|{{{year}}}}}')
 
}}{{#switch:{{{category|}}}
 
}}{{#switch:{{{category|}}}

Revision as of 16:11, 18 September 2023

TRUE

and coalesce(Event.End,Event.Start) >= '2024-11-23T01:00:00+01:00'