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