Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
(fix cal name) |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
| coordinates = Coordinates | | coordinates = Coordinates | ||
| description = Wikitext | | description = Wikitext | ||
+ | | keywords = List (,) of String | ||
| link = URL | | link = URL | ||
− | | | + | | attendee_count = Number |
+ | | wmau_cost = Number | ||
}}</noinclude><includeonly>{{#cargo_store: _table = events | }}</noinclude><includeonly>{{#cargo_store: _table = events | ||
| start_date = {{{start_date|}}} | | start_date = {{{start_date|}}} | ||
Line 17: | Line 19: | ||
| coordinates = {{{coordinates|}}} | | coordinates = {{{coordinates|}}} | ||
| description = {{{description|}}} | | description = {{{description|}}} | ||
+ | | keywords = {{{keywords|}}} | ||
| link = {{{link|}}} | | link = {{{link|}}} | ||
− | | | + | | attendee_count = {{{attendee_count|}}} |
+ | | wmau_cost = {{{wmau_cost|}}} | ||
}}</includeonly>{{#default_form:event}}<!-- | }}</includeonly>{{#default_form:event}}<!-- | ||
Supress the page title so we can redisplay it within the header box. | Supress the page title so we can redisplay it within the header box. | ||
-->{{DISPLAYTITLE:<span style="font-size:12pt; font-weight:lighter">{{FULLPAGENAME}}</span>}}<!-- | -->{{DISPLAYTITLE:<span style="font-size:12pt; font-weight:lighter">{{FULLPAGENAME}}</span>}}<!-- | ||
+ | |||
+ | Add region nav bar | ||
+ | -->{{navigation header | title = {{{region|}}} | ||
+ | |prev = {{#cargo_query: | ||
+ | | tables = events | ||
+ | | fields = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=prev_event | ||
+ | | where = _pageID != '{{PAGEID}}' AND region = '{{{region|{{{state|}}}}}}' AND start_date IS NOT NULL AND start_date < '{{{start_date}}}' | ||
+ | | order by = start_date DESC | ||
+ | | limit = 1 | ||
+ | | default = | ||
+ | | more results text = | ||
+ | }} | ||
+ | |next = {{#cargo_query: | ||
+ | | tables = events | ||
+ | | fields = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=next_event | ||
+ | | where = _pageID != '{{PAGEID}}' AND region = '{{{region|{{{state|}}}}}}' AND start_date IS NOT NULL AND start_date > '{{{start_date}}}' | ||
+ | | order by = start_date ASC | ||
+ | | limit = 1 | ||
+ | | default = | ||
+ | | more results text = | ||
+ | }} | ||
+ | }} | ||
+ | <br /> | ||
+ | <!-- | ||
Start the box. | Start the box. | ||
Line 51: | Line 79: | ||
-->Location: <span itemprop="name">{{{location}}}</span><!-- | -->Location: <span itemprop="name">{{{location}}}</span><!-- | ||
--></p>}}<!-- | --></p>}}<!-- | ||
− | --><p>Share link: <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | {{canonicalurl:{{FULLPAGENAMEE}} }} }}</span></p><!-- | + | --><p><!-- |
+ | -->Share link: <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | {{canonicalurl:{{FULLPAGENAMEE}} }} }}</span><!-- | ||
+ | --> – or {{#cargo_query: tables=events |where=_pageId={{PAGEID}} |format=icalendar |link text=download calendar item (.ics) |fields=_pageID,_pageName,start_date=start,end_date=end,location,CONCAT('More information: https://wikimedia.org.au/wiki/Special:Redirect/page/',_pageID)=description |icalendar name={{FULLPAGENAME}} |filename=Wikimedia Australia event.ics }}<!-- | ||
+ | --></p><!-- | ||
--><div itemprop="description">{{{description|}}}</div><!-- | --><div itemprop="description">{{{description|}}}</div><!-- | ||
+ | |||
+ | Keywords: | ||
+ | -->{{#if: {{{keywords|}}} | <span style="font-variant:small-caps; font-size:smaller">Keywords: {{#arraymap:{{{keywords|}}}|,|QQQ|[[QQQ]][[Category:QQQ]]| · }}</span> }}<!-- | ||
Coordinates map: | Coordinates map: | ||
Line 63: | Line 97: | ||
Report: | Report: | ||
-->{{#if: {{{report|}}} | | -->{{#if: {{{report|}}} | | ||
+ | |||
<h2>Report</h2> | <h2>Report</h2> | ||
+ | |||
+ | {{{report}}} | ||
* Attendee count: '''{{{attendee_count|unknown}}}''' | * Attendee count: '''{{{attendee_count|unknown}}}''' | ||
* Cost to Wikimedia Australia: '''{{{wmau_cost|no cost}}}''' | * Cost to Wikimedia Australia: '''{{{wmau_cost|no cost}}}''' | ||
− | |||
}}<!-- | }}<!-- | ||
Metrics: | Metrics: | ||
− | -->{{#if: {{{event_metrics|}}} | <h2>Event Metrics</h2> | + | -->{{#if: {{{event_metrics|}}} | |
+ | |||
+ | <h2>Event Metrics</h2> | ||
+ | |||
+ | {{{event_metrics}}} | ||
+ | }}<!-- | ||
Categories: | Categories: |
Latest revision as of 20:45, 19 October 2020
This template defines the table "events". View table.
Event
(Please set 'region' parameter.)
Event
Share link: https://wikimedia.org.au/wiki/Template:Event – or download calendar item (.ics)