Difference between revisions of "Template:ArchiveOfEvents"

From Culture.si
(added 2019)
 
(8 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}}}/2019/{{{category}}}/{{{country_url}}}||2019 <small>({{#data:selectfield
+
|upcoming <small>({{#data:selectfield
|c = count(Event.#)
+
|c = count(Event.#)
|#where = {{whereEvent|year=2019|category={{{category}}}|country={{{country}}}}}
+
|#where = {{whereEvent|year=upcoming|category={{{category}}}|country={{{country}}}}}
}})</small>}}
+
}})</small>
 
+
}}
{{#title:link|{{{page}}}/2018/{{{category}}}/{{{country_url}}}||2018 <small>({{#data:selectfield
+
{{#title:link|{{{page}}}/current/{{{category}}}/{{{country_url}}}
|c = count(Event.#)
+
|
|#where = {{whereEvent|year=2018|category={{{category}}}|country={{{country}}}}}
+
|current <small>({{#data:selectfield
}})</small>}}
+
|c = count(Event.#)
{{#title:link|{{{page}}}/2017/{{{category}}}/{{{country_url}}}||2017 <small>({{#data:selectfield
+
|#where = {{whereEvent|year=current|category={{{category}}}|country={{{country}}}}}
|c = count(Event.#)
+
}})</small>
|#where = {{whereEvent|year=2017|category={{{category}}}|country={{{country}}}}}
+
}}
}})</small>}}
+
{{#arr:dataloop
{{#title:link|{{{page}}}/2016/{{{category}}}/{{{country_url}}}||2016 <small>({{#data:selectfield
+
|{{#data:select
|c = count(Event.#)
+
|Year=Event.Years.Year
|#where = {{whereEvent|year=2016|category={{{category}}}|country={{{country}}}}}
+
|Count=count(Event.#)
}})</small>}}
+
|#groupby=Event.Years.Year
{{#title:link|{{{page}}}/2015/{{{category}}}/{{{country_url}}}||2015 <small>({{#data:selectfield
+
|#orderby=Event.Years.Year desc
|c = count(Event.#)
+
|#where = {{whereEvent|category={{{category}}}|country={{{country}}}}}
|#where = {{whereEvent|year=2015|category={{{category}}}|country={{{country}}}}}
+
}}
}})</small>}}
+
|each = {{#title:link|{{{page}}}/{{{Year}}}/{{{category}}}/{{{country_url}}}
{{#title:link|{{{page}}}/2014/{{{category}}}/{{{country_url}}}||2014 <small>({{#data:selectfield
+
|
|c = count(Event.#)
+
|{{{Year}}} <small>({{{Count}}})</small>
|#where = {{whereEvent|year=2014|category={{{category}}}|country={{{country}}}}}
+
}}
}})</small>}}
+
}}
{{#title:link|{{{page}}}/2013/{{{category}}}/{{{country_url}}}||2013 <small>({{#data:selectfield
+
|c = count(Event.#)
+
{{#title:link
|#where = {{whereEvent|year=2013|category={{{category}}}|country={{{country}}}}}
+
|{{{page}}}/all/{{{category}}}/{{{country_url}}}
}})</small>}}
+
|
{{#title:link|{{{page}}}/2012/{{{category}}}/{{{country_url}}}||2012 <small>({{#data:selectfield
+
|all years <small>({{#data:selectfield
|c = count(Event.#)
+
|c = count(Event.#)
|#where = {{whereEvent|year=2012|category={{{category}}}|country={{{country}}}}}
+
|#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}}
}})</small>}}
+
}})</small>
{{#title:link|{{{page}}}/2011/{{{category}}}/{{{country_url}}}||2011 <small>({{#data:selectfield
+
}}
|c = count(Event.#)
+
</div>
|#where = {{whereEvent|year=2011|category={{{category}}}|country={{{country}}}}}
+
}})</small>}}
+
<hr class="divider"/>
{{#title:link|{{{page}}}/2010/{{{category}}}/{{{country_url}}}||2010 <small>({{#data:selectfield
+
|c = count(Event.#)
+
{{#if:{{{nocountry|}}}||
|#where = {{whereEvent|year=2010|category={{{category}}}|country={{{country}}}}}
+
<div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}}
}})</small>}}
+
{{#arr:dataloop
{{#title:link|{{{page}}}/all/{{{category}}}/{{{country_url}}}||all years <small>({{#data:selectfield
+
|{{#data:select
|c = count(Event.#)
+
|Country = Event.Country
|#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}}
+
|Count = count(Event.#)
}})</small>}}
+
|#groupby = Event.Country
</div>
+
|#where = {{whereEvent|year={{{year}}}|category={{{category}}}|country=international}}
<hr class="divider"/>
+
|#limit=100
<div class="subnav">
+
|#orderby = Event.Country}}
{{#if:{{{nocountry|}}}||
+
|each={{#title:link
<div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}}
+
|{{{page}}}/{{{year}}}/{{{category}}}/{{{Country}}}
{{#arr:dataloop
+
||{{#title:pagename|{{{Country}}}}} ({{{Count}}})}}}}
|{{#data:select
+
</div>
|Country = Event.Country
+
|Count = count(Event.#)
+
<hr class="divider"/>}}
|#groupby = Event.Country
+
|#where = {{whereEvent|year={{{year}}}|category={{{category}}}|country=international}}
+
<div class="filter-categories">
|#limit=100
+
{{#title:link|{{{realpage}}}/{{{year}}}/all/{{{country_url}}}||All categories}}
|#orderby = Event.Country}}
+
|each={{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/{{{Country}}}||{{#title:pagename|{{{Country}}}}} ({{{Count}}})}}
+
{{#arr:dataloop
}}</div>
+
|{{#data:select
<hr class="divider"/>
+
|Category=Event.Tag
}}
+
|Count = count(Event.#)
<div class="filter-categories">{{#title:link|{{{realpage}}}/{{{year}}}/all/{{{country_url}}}||All categories}}
+
|#groupby = Event.Tag
{{#arr:dataloop
+
|#where = Event.Tag!='' and Event.Tag!='Top' and {{whereEvent|year={{{year}}}|country={{{country|Slovenia}}}}}
|{{#data:select
+
|#limit=100
|Category=Event.Tag
+
|#orderby = Event.Tag}}
|Count = count(Event.#)
+
|each={{#title:link
|#groupby = Event.Tag
+
|{{{page}}}/{{{year}}}/{{{Category}}}/{{{country_url}}}
|#where = Event.Tag!='' and Event.Tag!='Top' and {{whereEvent|year={{{year}}}|country={{{country|Slovenia}}}}}
+
||{{#title:pagename|{{{Category}}}}} ({{{Count}}})}}}}
|#limit=100
+
</div>
|#orderby = Event.Tag
+
</div>
}}
+
</section>
|each={{#title:link|{{{page}}}/{{{year}}}/{{{Category}}}/{{{country_url}}}||{{#title:pagename|{{{Category}}}}} ({{{Count}}})}}
 
}}</div>
 
 
 
</div>
 

Latest revision as of 17:43, 27 September 2023