Difference between revisions of "Template:WhereEvent"
Line 1: | Line 1: | ||
TRUE | TRUE | ||
{{#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|}}} | {{#switch:{{{year|}}} | ||
| upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}' | | upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}' | ||
− | | #default = | + | | #default = and coalesce(Event.End,Event.Start) <= '{{#timel:c|today}}' |
− | }}{{#switch:{{{year|}}} | + | }} |
+ | {{#switch:{{{year|}}} | ||
| = | | = | ||
| all= | | all= | ||
| upcoming = | | upcoming = | ||
| #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' |
Revision as of 17:27, 18 September 2023
TRUE
and coalesce(Event.End,Event.Start) <= '2024-11-23T01:00:00+01:00'
and Event.Country != 'Slovenia'