Difference between revisions of "Template:Worldwide"

From Culture.si
 
 
(41 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#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 5: Line 9:
 
   | End = Event.End
 
   | End = Event.End
 
   | Url = Event.Url
 
   | Url = Event.Url
 +
  | Organizer_url = Event.Organizer_url
 +
  | More_url = Event.More_url
 +
  | Work_url = Event.Work_url
 
   | Editcall = Event.Editcall
 
   | Editcall = Event.Editcall
 +
  | Festival = Event.Festival
 
   | Venue = {{groupLinks|Event.Venue}}
 
   | Venue = {{groupLinks|Event.Venue}}
 
   | City = {{groupLinks|Event.City}}
 
   | City = {{groupLinks|Event.City}}
 
   | Country = {{groupLinks|Event.Country}}
 
   | Country = {{groupLinks|Event.Country}}
 
   | xPerformer = {{groupLinks|Event.Performer}}
 
   | xPerformer = {{groupLinks|Event.Performer}}
   | #where = {{whereEvent|year={{{year|all}}}|before={{{before|}}}|after={{{after|}}}|category={{{category|all}}}|country={{{country|all}}}}}
+
   | #where = {{{where}}}
 
   |#limit = {{{limit|50}}}
 
   |#limit = {{{limit|50}}}
   |#orderby = Event.Start, Event.End
+
  |#offset = {{#expr:{{{offset|0}}}*{{{limit|50}}}}}
   |#groupby = Event.Description, Event.Start, Event.End, Event.Editcall, Event.Url
+
   |#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
 
   }}
 
   }}
 +
| first = {{#eval:html|<div>}}{{#if:{{{title|}}}|<h2>{{{title}}}</h2>}}<ul class="events">
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
 +
| last = </ul>{{{more|}}}{{#eval:html|</div>}}
 +
| empty = {{{empty|}}}
 
}}
 
}}

Latest revision as of 18:10, 18 September 2023