Template: Event

No edit summary
(only show icalendar link if page has ID)
 
(7 intermediate revisions by the same user not shown)
Line 32: Line 32:
Suppress the page title so we can re-display it within the header box.
Suppress the page title so we can re-display it within the header box.
-->{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}<!--
-->{{DISPLAYTITLE:<span style="display:none">{{FULLPAGENAME}}</span>}}<!--
Add page metadata (for sharing on Twitter etc.).
-->{{#seo:
| type        = event
| description = {{{short_description|{{{description|A Wikimedia Australia event.}}}}}}
| keywords    = {{{keywords|}}}
| image      = {{#if:{{{image|}}} | {{filepath:{{{image}}}|800}} }}
}}<!--


Start the box.
Start the box.
Line 83: Line 91:
             | 12  = NZST
             | 12  = NZST
             | 13  = NZDT
             | 13  = NZDT
             | UTC
             | UTC <!--
           -->}}<!--
           -->}}<!--
         --></abbr><!--
         --></abbr><!--
Line 116: Line 124:
   --><p><!--
   --><p><!--
     -->Share link: <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | {{canonicalurl:{{FULLPAGENAMEE}} }} }}</span><!--
     -->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 }}<!--
     --> {{#if: {{PAGEID}} | – 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><!--
   --></p><!--


Line 155: Line 163:
|prev = {{#cargo_query:
|prev = {{#cargo_query:
   | tables            = events
   | tables            = events
   | fields            = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=prev_event
   | fields            = CONCAT('[[',_pageName,']]<br><small>',DATE_FORMAT(start_date, '%e %M %Y'),'</small>')=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
Line 164: Line 172:
|next = {{#cargo_query:
|next = {{#cargo_query:
   | tables            = events
   | tables            = events
   | fields            = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=next_event
   | fields            = CONCAT('[[',_pageName,']]<br><small>',DATE_FORMAT(start_date, '%e %M %Y'),'</small>')=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

Latest revision as of 04:51, 13 March 2023

This template defines the table "events". View table.


[edit] Template documentation

Create a new event:

See also

Discuss this page