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