Difference between revisions of "Template:ArchiveOfEvents"
(5 intermediate revisions by 2 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}}}} | ||
− | |page = {{#cgi:0|{{FULLROOTPAGENAME}}}} | + | |page = {{#cgi:0|{{FULLROOTPAGENAME}}}} |
− | |year = {{#cgi:1| | + | |year = {{#cgi:1|upcoming}} |
− | |category = {{#cgi:2|all}} | + | |category = {{#cgi:2|all}} |
− | |country = {{#if:{{{nocountry|}}}|Slovenia|{{#cgi:3|international}}}} | + | |country = {{#if:{{{nocountry|}}}|Slovenia|{{#cgi:3|international}}}} |
− | |country_url = {{#if:{{{nocountry|}}}||{{#cgi:3|international}}}} | + | |country_url = {{#if:{{{nocountry|}}}||{{#cgi:3|international}}}} |
}}} | }}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </div> | + | <section class="events-archive"> |
+ | <div class="subnav filter-form"> | ||
+ | <div class="filter-years"> | ||
+ | {{#title:link|{{{page}}}/upcoming/{{{category}}}/{{{country_url}}} | ||
+ | | | ||
+ | |upcoming <small>({{#data:selectfield | ||
+ | |c = count(Event.#) | ||
+ | |#where = {{whereEvent|year=upcoming|category={{{category}}}|country={{{country}}}}} | ||
+ | }})</small> | ||
+ | }} | ||
+ | {{#title:link|{{{page}}}/current/{{{category}}}/{{{country_url}}} | ||
+ | | | ||
+ | |current <small>({{#data:selectfield | ||
+ | |c = count(Event.#) | ||
+ | |#where = {{whereEvent|year=current|category={{{category}}}|country={{{country}}}}} | ||
+ | }})</small> | ||
+ | }} | ||
+ | {{#arr:dataloop | ||
+ | |{{#data:select | ||
+ | |Year=Event.Years.Year | ||
+ | |Count=count(Event.#) | ||
+ | |#groupby=Event.Years.Year | ||
+ | |#orderby=Event.Years.Year desc | ||
+ | |#where = {{whereEvent|category={{{category}}}|country={{{country}}}}} | ||
+ | }} | ||
+ | |each = {{#title:link|{{{page}}}/{{{Year}}}/{{{category}}}/{{{country_url}}} | ||
+ | | | ||
+ | |{{{Year}}} <small>({{{Count}}})</small> | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | {{#title:link | ||
+ | |{{{page}}}/all/{{{category}}}/{{{country_url}}} | ||
+ | | | ||
+ | |all years <small>({{#data:selectfield | ||
+ | |c = count(Event.#) | ||
+ | |#where = {{whereEvent|year=|category={{{category}}}|country={{{country}}}}} | ||
+ | }})</small> | ||
+ | }} | ||
+ | </div> | ||
+ | |||
+ | <hr class="divider"/> | ||
+ | |||
+ | {{#if:{{{nocountry|}}}|| | ||
+ | <div class="filter-countries">{{#title:link|{{{page}}}/{{{year}}}/{{{category}}}/international||All countries}} | ||
+ | {{#arr:dataloop | ||
+ | |{{#data:select | ||
+ | |Country = Event.Country | ||
+ | |Count = count(Event.#) | ||
+ | |#groupby = Event.Country | ||
+ | |#where = {{whereEvent|year={{{year}}}|category={{{category}}}|country=international}} | ||
+ | |#limit=100 | ||
+ | |#orderby = Event.Country}} | ||
+ | |each={{#title:link | ||
+ | |{{{page}}}/{{{year}}}/{{{category}}}/{{{Country}}} | ||
+ | ||{{#title:pagename|{{{Country}}}}} ({{{Count}}})}}}} | ||
+ | </div> | ||
+ | |||
+ | <hr class="divider"/>}} | ||
+ | |||
+ | <div class="filter-categories"> | ||
+ | {{#title:link|{{{realpage}}}/{{{year}}}/all/{{{country_url}}}||All categories}} | ||
+ | |||
+ | {{#arr:dataloop | ||
+ | |{{#data:select | ||
+ | |Category=Event.Tag | ||
+ | |Count = count(Event.#) | ||
+ | |#groupby = Event.Tag | ||
+ | |#where = Event.Tag!='' and Event.Tag!='Top' and {{whereEvent|year={{{year}}}|country={{{country|Slovenia}}}}} | ||
+ | |#limit=100 | ||
+ | |#orderby = Event.Tag}} | ||
+ | |each={{#title:link | ||
+ | |{{{page}}}/{{{year}}}/{{{Category}}}/{{{country_url}}} | ||
+ | ||{{#title:pagename|{{{Category}}}}} ({{{Count}}})}}}} | ||
+ | </div> | ||
+ | </div> | ||
+ | </section> |