Difference between revisions of "Template:WhereEvent"

From Culture.si
Line 1: Line 1:
TRUE {{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'}} {{#if:{{{after|}}}| and coalesce(Event.End,Event.Start) >= '{{#timel:c|{{{after}}}}}'}} {{#switch:{{{year|}}}||all=
+
TRUE
|upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}'|#default = and (Event.Years='Year_{{#cast:integer|{{{year}}}}}')}} {{#switch:{{{category|}}}|=|all=|#default = and Event.Tag = '{{#str:addslashes|{{#title:pagenamek|{{{category}}}}}}}'
+
{{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'
}} {{#switch:{{{country|}}}|=|all=|international= and Event.Country != 'Slovenia'|#default = and Event.Country = '{{#str:addslashes|{{#title:pagenamek|{{{country}}}}}}}'
+
}}{{#if:{{{after|}}}| and coalesce(Event.End,Event.Start) >= '{{#timel:c|{{{after}}}}}'
 +
}}{{#switch:{{{year|}}}|
 +
| all=
 +
| upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}'
 +
| #default = and (Event.Years='Year_{{#cast:integer|{{{year}}}}}')
 +
}}{{#switch:{{{category|}}}
 +
|=
 +
|all=
 +
|#default = and Event.Tag = '{{#str:addslashes|{{#title:pagenamek|{{{category}}}}}}}'
 +
}}{{#switch:{{{country|}}}
 +
|=
 +
|all=
 +
|international= and Event.Country != 'Slovenia'
 +
|#default = and Event.Country = '{{#str:addslashes|{{#title:pagenamek|{{{country}}}}}}}'
 
}}
 
}}

Revision as of 23:19, 21 February 2021

TRUE