Template: Event

m tweak
m testing template
Tag: Reverted
Line 160: Line 160:
   | 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
  | default          =
  | more results text =
}}
|next = {{#cargo_query:
  | tables            = events
  | 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}}}'
  | order by          = start_date ASC
   | limit            = 1
   | limit            = 1
   | default          =
   | default          =

Revision as of 20:47, 12 November 2025

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

Event

Link (if applicable): – or download calendar item (.ics)


[edit] Template documentation

Once an event name has been supplied in the following box and you have clicked "Create Event Page", you will find a new page titled "Creating PAGENAME", containing a preloaded template information which you need to fill in accordance with the guidance given. The guidelines are included within <!-- and --> and your responses need to remain out of them. Any text between <!-- and --> does not appear in the reading mode. The following image has some ideas that could help: