Difference between revisions of "Template:Worldwide"

From Culture.si
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#data:grid|Event.start|Event.end|#limit=4|#where={{{where|{{whereEvent|year={{{year|all}}}|before={{{before|}}}|after={{{after|}}}|category={{{category|all}}}|country={{{country|all}}}}}}}}}}
+
{{{ =  
{{#array:dataloop
+
| where = {{{where|{{whereEvent|year={{{year|all}}}|before={{{before|}}}|after={{{after|}}}|category={{{category|all}}}|country={{{country|all}}}}}}}}
 +
| direction = {{#ifeq:{{{year}}}|upcoming|asc|desc}}
 +
| order_by = {{{order_by|Event.Start {{{direction}}}, Event.End {{{direction}}}}}}
 +
}}}{{#array:dataloop
 
| {{#data:select
 
| {{#data:select
 
   | Description=Event.Description
 
   | Description=Event.Description
Line 15: Line 18:
 
   | Country = {{groupLinks|Event.Country}}
 
   | Country = {{groupLinks|Event.Country}}
 
   | xPerformer = {{groupLinks|Event.Performer}}
 
   | xPerformer = {{groupLinks|Event.Performer}}
   | #where = {{{where|{{whereEvent|year={{{year|all}}}|before={{{before|}}}|after={{{after|}}}|category={{{category|all}}}|country={{{country|all}}}}}}}}
+
   | #where = {{{where}}}
 
   |#limit = {{{limit|50}}}
 
   |#limit = {{{limit|50}}}
 
   |#offset = {{#expr:{{{offset|0}}}*{{{limit|50}}}}}
 
   |#offset = {{#expr:{{{offset|0}}}*{{{limit|50}}}}}
   |#orderby = {{{order_by|Event.Start desc, Event.End desc}}}
+
   |#orderby = {{{order_by}}}  
 
   |#groupby = Event.Description, Event.Start, Event.End, Event.Editcall, Event.Url, Event.Organizer_url, Event.More_url, Event.Work_url, Event.Festival
 
   |#groupby = Event.Description, Event.Start, Event.End, Event.Editcall, Event.Url, Event.Organizer_url, Event.More_url, Event.Work_url, Event.Festival
 
   }}
 
   }}

Latest revision as of 17:10, 18 September 2023