Difference between revisions of "Template:WhereEvent"
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 {{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'}} {{#if:{{{after|}}}| and coalesce(Event.End,Event.Start) >= '{{#timel:c|{{{after}}}}}'}} {{#switch:{{{year|}}}||all= | ||
− | |#default = and (date_part('year',Event.Start)='{{#cast:integer|{{{year}}}}}' or date_part('year',Event.End)='{{#cast:integer|{{{year}}}}}')}} {{#switch:{{{category|}}}|=|all=|#default = and Event.Tag = '{{#str:addslashes|{{#title:pagenamek|{{{category}}}}}}}' | + | |upcoming = and coalesce(Event.End,Event.Start) >= '{{#timel:c|yesterday}}'|#default = and (date_part('year',Event.Start)='{{#cast:integer|{{{year}}}}}' or date_part('year',Event.End)='{{#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}}}}}}}' | }} {{#switch:{{{country|}}}|=|all=|international= and Event.Country != 'Slovenia'|#default = and Event.Country = '{{#str:addslashes|{{#title:pagenamek|{{{country}}}}}}}' | ||
}} | }} |
Revision as of 15:18, 6 December 2012
TRUE