Difference between revisions of "Template:ArchiveOfEvents"

From Culture.si
(2018 added)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>{{/doc}}[[Category:Event templates]]</noinclude>  
 
<noinclude>{{/doc}}[[Category:Event templates]]</noinclude>  
 +
 
{{{realpage={{#cgi:0|{{FULLPAGENAME}}}}
 
{{{realpage={{#cgi:0|{{FULLPAGENAME}}}}
}}}<div class="subnav">
+
|page = {{#cgi:0|{{FULLROOTPAGENAME}}}}
 
+
|year = {{#cgi:1|upcoming}}
{{{=
+
|category = {{#cgi:2|all}}
|page = {{#cgi:0|{{FULLROOTPAGENAME}}}}
+
|country = {{#if:{{{nocountry|}}}|Slovenia|{{#cgi:3|international}}}}
|year = {{#cgi:1|all}}
+
|country_url = {{#if:{{{nocountry|}}}||{{#cgi:3|international}}}}
|category = {{#cgi:2|all}}
 
|country = {{#if:{{{nocountry|}}}|Slovenia|{{#cgi:3|international}}}}
 
|country_url = {{#if:{{{nocountry|}}}||{{#cgi:3|international}}}}
 
 
}}}
 
}}}
  
{{#title:link|{{{page}}}/upcoming/{{{category}}}/{{{country_url}}}||upcoming <small>({{#data:selectfield
+
<section class="events-archive">
|c = count(Event.#)
+
<div class="subnav filter-form">
|#where = {{whereEvent|year=upcoming|category={{{category}}}|country={{{country}}}}}
+
<div class="filter-years">
}})</small>}}
+
{{#title:link|{{{page}}}/upcoming/{{{category}}}/{{{country_url}}}
{{#title:link|{{{page}}}/2018/{{{category}}}/{{{country_url}}}||2018 <small>({{#data:selectfield
+
|
|c = count(Event.#)
+
|upcoming <small>({{#data:selectfield
|#where = {{whereEvent|year=2018|category={{{category}}}|country={{{country}}}}}
+
|c = count(Event.#)
}})</small>}}
+
|#where = {{whereEvent|year=upcoming|category={{{category}}}|country={{{country}}}}}
{{#title:link|{{{page}}}/2017/{{{category}}}/{{{country_url}}}||2017 <small>({{#data:selectfield
+
}})</small>
|c = count(Event.#)
+
}}
|#where = {{whereEvent|year=2017|category={{{category}}}|country={{{country}}}}}
+
{{#title:link|{{{page}}}/current/{{{category}}}/{{{country_url}}}
}})</small>}}
+
|
{{#title:link|{{{page}}}/2016/{{{category}}}/{{{country_url}}}||2016 <small>({{#data:selectfield
+
|current <small>({{#data:selectfield
|c = count(Event.#)
+
|c = count(Event.#)
|#where = {{whereEvent|year=2016|category={{{category}}}|country={{{country}}}}}
+
|#where = {{whereEvent|year=current|category={{{category}}}|country={{{country}}}}}
}})</small>}}
+
}})</small>
{{#title:link|{{{page}}}/2015/{{{category}}}/{{{country_url}}}||2015 <small>({{#data:selectfield
+
}}
|c = count(Event.#)
+
{{#arr:dataloop
|#where = {{whereEvent|year=2015|category={{{category}}}|country={{{country}}}}}
+
|{{#data:select
}})</small>}}
+
|Year=Event.Years.Year
{{#title:link|{{{page}}}/2014/{{{category}}}/{{{country_url}}}||2014 <small>({{#data:selectfield
+
|Count=count(Event.#)
|c = count(Event.#)
+
|#groupby=Event.Years.Year
|#where = {{whereEvent|year=2014|category={{{category}}}|country={{{country}}}}}
+
|#orderby=Event.Years.Year desc
}})</small>}}
+
|#where = {{whereEvent|category={{{category}}}|country={{{country}}}}}
{{#title:link|{{{page}}}/2013/{{{category}}}/{{{country_url}}}||2013 <small>({{#data:selectfield
+
}}
|c = count(Event.#)
+
|each = {{#title:link|{{{page}}}/{{{Year}}}/{{{category}}}/{{{country_url}}}
|#where = {{whereEvent|year=2013|category={{{category}}}|country={{{country}}}}}
+
|
}})</small>}}
+
|{{{Year}}} <small>({{{Count}}})</small>
{{#title:link|{{{page}}}/2012/{{{category}}}/{{{country_url}}}||2012 <small>({{#data:selectfield
+
}}
|c = count(Event.#)
+
}}
|#where = {{whereEvent|year=2012|category={{{category}}}|country={{{country}}}}}
+
}})</small>}}
+
{{#title:link
{{#title:link|{{{page}}}/2011/{{{category}}}/{{{country_url}}}||2011 <small>({{#data:selectfield
+
|{{{page}}}/all/{{{category}}}/{{{country_url}}}
|c = count(Event.#)
+
|
|#where = {{whereEvent|year=2011|category={{{category}}}|country={{{country}}}}}
+
|all years <small>({{#data:selectfield
}})</small>}}
+
|c = count(Event.#)
{{#title:link|{{{page}}}/2010/{{{category}}}/{{{country_url}}}||2010 <small>({{#data:selectfield
+
|#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}}
|c = count(Event.#)
+
}})</small>
|#where = {{whereEvent|year=2010|category={{{category}}}|country={{{country}}}}}
+
}}
}})</small>}}
+
</div>
{{#title:link|{{{page}}}/all/{{{category}}}/{{{country_url}}}||all years <small>({{#data:selectfield
+
|c = count(Event.#)
+
<hr class="divider"/>
|#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}}
+
}})</small>}}
+
{{#if:{{{nocountry|}}}||
</div>
+
<div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}}
<hr class="divider"/>
+
{{#arr:dataloop
<div class="subnav">
+
|{{#data:select
{{#if:{{{nocountry|}}}||
+
|Country = Event.Country
<div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}}
+
|Count = count(Event.#)
{{#arr:dataloop
+
|#groupby = Event.Country
|{{#data:select
+
|#where = {{whereEvent|year={{{year}}}|category={{{category}}}|country=international}}
|Country = Event.Country
+
|#limit=100
|Count = count(Event.#)
+
|#orderby = Event.Country}}
|#groupby = Event.Country
+
|each={{#title:link
|#where = {{whereEvent|year={{{year}}}|category={{{category}}}|country=international}}
+
|{{{page}}}/{{{year}}}/{{{category}}}/{{{Country}}}
|#limit=100
+
||{{#title:pagename|{{{Country}}}}} ({{{Count}}})}}}}
|#orderby = Event.Country}}
+
</div>
|each={{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/{{{Country}}}||{{#title:pagename|{{{Country}}}}} ({{{Count}}})}}
+
}}</div>
+
<hr class="divider"/>}}
<hr class="divider"/>
+
}}
+
<div class="filter-categories">
<div class="filter-categories">{{#title:link|{{{realpage}}}/{{{year}}}/all/{{{country_url}}}||All categories}}
+
{{#title:link|{{{realpage}}}/{{{year}}}/all/{{{country_url}}}||All categories}}
{{#arr:dataloop
+
|{{#data:select
+
{{#arr:dataloop
|Category=Event.Tag
+
|{{#data:select
|Count = count(Event.#)
+
|Category=Event.Tag
|#groupby = Event.Tag
+
|Count = count(Event.#)
|#where = Event.Tag!='' and Event.Tag!='Top' and {{whereEvent|year={{{year}}}|country={{{country|Slovenia}}}}}
+
|#groupby = Event.Tag
|#limit=100
+
|#where = Event.Tag!='' and Event.Tag!='Top' and {{whereEvent|year={{{year}}}|country={{{country|Slovenia}}}}}
|#orderby = Event.Tag
+
|#limit=100
}}
+
|#orderby = Event.Tag}}
|each={{#title:link|{{{page}}}/{{{year}}}/{{{Category}}}/{{{country_url}}}||{{#title:pagename|{{{Category}}}}} ({{{Count}}})}}
+
|each={{#title:link
}}</div>
+
|{{{page}}}/{{{year}}}/{{{Category}}}/{{{country_url}}}
 
+
||{{#title:pagename|{{{Category}}}}} ({{{Count}}})}}}}
</div>
+
</div>
 +
</div>
 +
</section>

Latest revision as of 17:43, 27 September 2023