Difference between revisions of "Template:ArchiveOfEvents"

From Culture.si
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}}}}
 
|page = {{#cgi:0|{{FULLROOTPAGENAME}}}}
 
|year = {{#cgi:1|all}}
 
|year = {{#cgi:1|all}}
Line 10: Line 7:
 
|country_url = {{#if:{{{nocountry|}}}||{{#cgi:3|international}}}}
 
|country_url = {{#if:{{{nocountry|}}}||{{#cgi:3|international}}}}
 
}}}
 
}}}
 
+
<div class="subnav">
{{#title:link|{{{page}}}/upcoming/{{{category}}}/{{{country_url}}}||upcoming <small>({{#data:selectfield
+
<div class="filter-years">{{#title:link|{{{page}}}/upcoming/{{{category}}}/{{{country_url}}}||upcoming <small>({{#data:selectfield
 
|c = count(Event.#)
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=upcoming|category={{{category}}}|country={{{country}}}}}
 
|#where = {{whereEvent|year=upcoming|category={{{category}}}|country={{{country}}}}}
}})</small>}}
+
}})</small>
{{#title:link|{{{page}}}/2020/{{{category}}}/{{{country_url}}}||2020 <small>({{#data:selectfield
+
}}{{#arr:dataloop|
|c = count(Event.#)
+
  {{#data:select
|#where = {{whereEvent|year=2020|category={{{category}}}|country={{{country}}}}}
+
  |year=Event.Years
}})</small>}}
+
  |count=count(Event.#)
{{#title:link|{{{page}}}/2019/{{{category}}}/{{{country_url}}}||2019 <small>({{#data:selectfield
+
  |#groupby=Event.Years
|c = count(Event.#)
+
  |#orderby=Event.Years desc
|#where = {{whereEvent|year=2019|category={{{category}}}|country={{{country}}}}}
+
  |#where = {{whereEvent|category={{{category}}}|country={{{country}}}}}
}})</small>}}
+
  }}
{{#title:link|{{{page}}}/2018/{{{category}}}/{{{country_url}}}||2018 <small>({{#data:selectfield
+
  |each = {{#title:link|{{{page}}}/{{#str:substr|{{{year}}}|5}}/{{{category}}}/{{{country_url}}}||{{#str:substr|{{{year}}}|5}} <small>({{{count}}})</small>}}
|c = count(Event.#)
+
}}{{
|#where = {{whereEvent|year=2018|category={{{category}}}|country={{{country}}}}}
+
#title:link|{{{page}}}/all/{{{category}}}/{{{country_url}}}||all years <small>({{#data:selectfield
}})</small>}}
 
{{#title:link|{{{page}}}/2017/{{{category}}}/{{{country_url}}}||2017 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2017|category={{{category}}}|country={{{country}}}}}
 
}})</small>}}
 
{{#title:link|{{{page}}}/2016/{{{category}}}/{{{country_url}}}||2016 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2016|category={{{category}}}|country={{{country}}}}}
 
}})</small>}}
 
{{#title:link|{{{page}}}/2015/{{{category}}}/{{{country_url}}}||2015 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2015|category={{{category}}}|country={{{country}}}}}
 
}})</small>}}
 
{{#title:link|{{{page}}}/2014/{{{category}}}/{{{country_url}}}||2014 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2014|category={{{category}}}|country={{{country}}}}}
 
}})</small>}}
 
{{#title:link|{{{page}}}/2013/{{{category}}}/{{{country_url}}}||2013 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2013|category={{{category}}}|country={{{country}}}}}
 
}})</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|{{{page}}}/2011/{{{category}}}/{{{country_url}}}||2011 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2011|category={{{category}}}|country={{{country}}}}}
 
}})</small>}}
 
{{#title:link|{{{page}}}/2010/{{{category}}}/{{{country_url}}}||2010 <small>({{#data:selectfield
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=2010|category={{{category}}}|country={{{country}}}}}
 
}})</small>}}
 
{{#title:link|{{{page}}}/all/{{{category}}}/{{{country_url}}}||all years <small>({{#data:selectfield
 
 
|c = count(Event.#)
 
|c = count(Event.#)
 
|#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}}
 
|#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}}
}})</small>}}
+
}})</small>}}</div>
</div>
 
 
<hr class="divider"/>
 
<hr class="divider"/>
<div class="subnav">
 
 
{{#if:{{{nocountry|}}}||
 
{{#if:{{{nocountry|}}}||
 
<div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}}
 
<div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}}

Revision as of 21:10, 9 December 2019

Documentation for Template:ArchiveOfEvents doc

Header for event archive.