Template: Event

(remove page title, and make description wide again)
(move region nav bar to bottom)
Line 29: Line 29:
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></span>}}<!--
-->{{DISPLAYTITLE:<span></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 116: Line 92:


{{{event_metrics}}}
{{{event_metrics}}}
}}<!--
Add region navigation bar.
-->
<br/>
{{navigation header | title = {{{region|{{{state|}}}}}}
|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 =
}}
}}<!--
}}<!--



Revision as of 01:13, 30 September 2021

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

(Please set 'region' parameter.)
Event

Share link: – or download calendar item (.ics)


[edit] Template documentation

Create a new event:

See also

Discuss this page