Difference between revisions of "Template:WhereEvent"

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

Revision as of 17:33, 18 September 2023

TRUE


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


and Event.Country != 'Slovenia'