Template: Event

No edit summary
(default desc)
(4 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:
| description = {{{short_description|{{{description|A Wikimedia Australia event.}}}}}}
}}<!--


Start the box.
Start the box.
Line 155: Line 160:
|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 169:
|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

Revision as of 09:19, 30 June 2022

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


[edit] Template documentation

Create a new event:

See also

Discuss this page