Difference between revisions of "Template:WhereEvent"
m (1 revision: import dev changes) |
|||
Line 1: | Line 1: | ||
− | TRUE {{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'}} {{#if:{{{after|}}}| and Event.End >= '{{#timel:c|{{{after}}}}}'}} {{#switch:{{{year|}}}||all= | + | TRUE {{#if:{{{before|}}}| and Event.Start <= '{{#timel:c|{{{before}}}}}'}} {{#if:{{{after|}}}| and ifnull(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}}}}}}}' | |#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 16:02, 27 November 2012
TRUE