Template: Event

m adding a break tag
Tag: Reverted
m mode
 
(3 intermediate revisions by the same user not shown)
Line 113: Line 113:
     --><p class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><!--
     --><p class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><!--
       Region (used to be called 'state'):
       Region (used to be called 'state'):
       -->Region: {{{region|{{{state|<span class="error">Please set 'region' parameter.</span>}}}}}}<br><!--
       -->Mode: {{{region|{{{state|<span class="error">Please set 'region' parameter.</span>}}}}}}<br><!--
       -->{{#if: {{{location|}}} | Location: <span itemprop="name">{{{location}}}</span> }}<!--
       -->{{#if: {{{location|}}} | Location: <span itemprop="name">{{{location}}}</span> }}<!--
     --></p><!--
     --></p><!--
Line 123: Line 123:


   Keywords:
   Keywords:
   -->{{#if: {{{keywords|}}} | <span class="tpl-event-keywords">Keywords: {{#arraymap:{{{keywords|}}}|,|QQQ|[[QQQ]][[Category:QQQ]]|&#32;&middot;&#32;}}</span> }}<!--
   -->{{#if: {{{keywords|}}} | <span class="tpl-event-keywords">Keywords: {{#arraymap:{{{keywords|}}}|,|QQQ|QQQ[[Category:QQQ]]|&#32;&middot;&#32;}}</span> }}<!--


   Coordinates map:
   Coordinates map:
Line 149: Line 149:


{{{event_metrics}}}
{{{event_metrics}}}
}}<!--
Add region navigation bar.
-->
<br/>
{{navigation header | title = {{{region|{{{state|}}}}}}
|prev = {{#cargo_query:
  | tables            = events
  | 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}}}' AND _pageName NOT LIKE '%/%'
  | order by          = start_date DESC
  | limit            = 1
  | default          =
  | more results text =
}}
}}
<br>
|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}}}' AND _pageName NOT LIKE '%/%'
  | order by          = start_date ASC
  | limit            = 1
  | default          =
  | more results text =
}}
}}<!--
 
Categories:
Categories:
-->[[Category:{{#time: Y | {{{start_date|}}} }} events]]<!--
-->[[Category:{{#time: Y | {{{start_date|}}} }} events]]<!--

Latest revision as of 17:40, 19 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: