Difference between revisions of "Template:WhereEvent"

From Culture.si
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
TRUE
+
Event.Years.Year IS NOT NULL {{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'
{{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'
+
}} {{#if:{{{after|}}}| and Event.Start >= '{{#timel:c|{{{after}}}}}'
}}
+
}} {{#switch:{{{year|}}}
{{#if:{{{after|}}}| and Event.Start >= '{{#timel:c|{{{after}}}}}'
 
}}
 
{{#switch:{{{year|}}}
 
 
| current = and Event.Start <='{{#timel:c|yesterday}}' and Event.End>='{{#timel:c|today}}'
 
| current = and Event.Start <='{{#timel:c|yesterday}}' and Event.End>='{{#timel:c|today}}'
 
| upcoming = and Event.Start >= '{{#timel:c|yesterday}}'
 
| upcoming = and 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}}'
}}
+
}} {{#switch:{{{year|}}}
{{#switch:{{{year|}}}
 
 
| =
 
| =
 
| all=
 
| all=
Line 15: Line 11:
 
| current =  
 
| current =  
 
| #default = and (Event.Years='Year_{{#cast:integer|{{{year}}}}}')
 
| #default = and (Event.Years='Year_{{#cast:integer|{{{year}}}}}')
}}
+
}} {{#switch:{{{category|}}}
{{#switch:{{{category|}}}
 
 
|=
 
|=
 
|all=
 
|all=
 
|#default = and Event.Tag = '{{#str:addslashes|{{#title:pagenamek|{{{category}}}}}}}'
 
|#default = and Event.Tag = '{{#str:addslashes|{{#title:pagenamek|{{{category}}}}}}}'
}}
+
}} {{#switch:{{{country|}}}
{{#switch:{{{country|}}}
 
 
|all=
 
|all=
 
|= and Event.Country != 'Slovenia'
 
|= and Event.Country != 'Slovenia'

Latest revision as of 17:49, 27 September 2023

Event.Years.Year IS NOT NULL and coalesce(Event.End,Event.Start) <= '2024-11-22T01:00:00+01:00' and Event.Country != 'Slovenia'