Difference between revisions of "Template:ArchiveOfEvents"
(restored by csi_restorechanges) |
|||
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|all}} | + | |year = {{#cgi:1|all}} |
− | |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> | ||
+ | }} | ||
+ | |||
+ | {{#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> |