Template: Event
No edit summary |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
| location = Wikitext | | location = Wikitext | ||
| coordinates = Coordinates | | coordinates = Coordinates | ||
| short_description = Wikitext | |||
| description = Wikitext | | description = Wikitext | ||
| keywords = List (,) of String | |||
| link = URL | | link = URL | ||
| attendee_count = Number | | attendee_count = Number | ||
Line 17: | Line 19: | ||
| location = {{{location|}}} | | location = {{{location|}}} | ||
| coordinates = {{{coordinates|}}} | | coordinates = {{{coordinates|}}} | ||
| short_description = {{{short_description|}}} | |||
| description = {{{description|}}} | | description = {{{description|}}} | ||
| keywords = {{{keywords|}}} | |||
| link = {{{link|}}} | | link = {{{link|}}} | ||
| attendee_count = {{{attendee_count|}}} | | attendee_count = {{{attendee_count|}}} | ||
Line 31: | Line 35: | ||
| tables = events | | tables = events | ||
| fields = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=prev_event | | 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}}}' | | where = _pageID != '{{PAGEID}}' AND region = '{{{region|{{{state|}}}}}}' AND start_date IS NOT NULL AND start_date < '{{{start_date}}}' | ||
| order by = start_date DESC | | order by = start_date DESC | ||
| limit = 1 | | limit = 1 | ||
Line 40: | Line 44: | ||
| tables = events | | tables = events | ||
| fields = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=next_event | | 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}}}' | | where = _pageID != '{{PAGEID}}' AND region = '{{{region|{{{state|}}}}}}' AND start_date IS NOT NULL AND start_date > '{{{start_date}}}' | ||
| order by = start_date ASC | | order by = start_date ASC | ||
| limit = 1 | | limit = 1 | ||
Line 77: | Line 81: | ||
-->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><!-- | ||
--><div itemprop="description">{{{description|}}}</div><!-- | -->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" style="font-size:larger">{{{short_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 84: | Line 94: | ||
--> | <div style="text-align:center; margin:1em;">{{#cargo_display_map: | point = {{{coordinates}}} | zoom = 14 | height = 200px | width = 100% }}</div> <!-- | --> | <div style="text-align:center; margin:1em;">{{#cargo_display_map: | point = {{{coordinates}}} | zoom = 14 | height = 200px | width = 100% }}</div> <!-- | ||
-->}}<!-- | -->}}<!-- | ||
Description (long; only shown if short desc is given): | |||
-->{{#if: {{{short_description|}}} | <div style="text-align:left; max-width:66ex; margin:auto;">{{{description|}}}</div> }}<!-- | |||
--></div><!-- | --></div><!-- | ||
Line 89: | Line 102: | ||
Report: | Report: | ||
-->{{#if: {{{report|}}} | | -->{{#if: {{{report|}}} | | ||
<h2>Report</h2> | <h2>Report</h2> | ||
Line 100: | Line 114: | ||
Metrics: | Metrics: | ||
-->{{#if: {{{event_metrics|}}} | | -->{{#if: {{{event_metrics|}}} | | ||
<h2>Event Metrics</h2> | <h2>Event Metrics</h2> | ||
{{{event_metrics}}} | |||
}}<!-- | }}<!-- | ||
Revision as of 06:54, 14 April 2021
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)