Difference between revisions of "Template:Worldwide"

From Culture.si
(Reverted edits by Luka (talk) to last revision by Mitja)
 
(7 intermediate revisions by 3 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 6: Line 10:
 
   | Url = Event.Url
 
   | Url = Event.Url
 
   | Organizer_url = Event.Organizer_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
 
   | Festival = Event.Festival
Line 12: 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.Festival
+
   |#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|<section>}}{{#if:{{{title|}}}|<h2>{{{title}}}</h2>}}<ul class="events">
+
| first = {{#eval:html|<div>}}{{#if:{{{title|}}}|<h2>{{{title}}}</h2>}}<ul class="events">
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
 
| each = {{#eval:wrap|{{{template|ListEvent}}}}}
| last = {{#eval:html|</section>}}</ul>{{{more|}}}
+
| last = </ul>{{{more|}}}{{#eval:html|</div>}}
 
| empty = {{{empty|}}}
 
| empty = {{{empty|}}}
 
}}
 
}}

Latest revision as of 17:10, 18 September 2023