Difference between revisions of "Template:ArchiveOfEvents"
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}} | ||
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> |
− | + | }}{{#arr:dataloop| | |
− | + | {{#data:select | |
− | + | |year=Event.Years | |
− | + | |count=count(Event.#) | |
− | + | |#groupby=Event.Years | |
− | | | + | |#orderby=Event.Years desc |
− | | | + | |#where = {{whereEvent|category={{{category}}}|country={{{country}}}}} |
− | + | }} | |
− | + | |each = {{#title:link|{{{page}}}/{{#str:substr|{{{year}}}|5}}/{{{category}}}/{{{country_url}}}||{{#str:substr|{{{year}}}|5}} <small>({{{count}}})</small>}} | |
− | + | }}{{ | |
− | |# | + | #title:link|{{{page}}}/all/{{{category}}}/{{{country_url}}}||all years <small>({{#data:selectfield |
− | |||
− | |||
− | |||
− | |# | ||
− | |||
− | |||
− | |||
− | |#where = {{whereEvent | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{#title:link|{{{page}}}/ | ||
− | | | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }})</small>}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|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"/> | ||
− | |||
{{#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.