Template: Event

Event
m mode
 
(22 intermediate revisions by 3 users not shown)
Line 12: Line 12:
  | image = File
  | image = File
  | attendee_count = Number
  | attendee_count = Number
  | wmau_cost = Number
  | dcw_cost = Number
}}</noinclude><includeonly>{{#cargo_store: _table = events
}}</noinclude><includeonly>{{#cargo_store: _table = events
  | start_date = {{{start_date|}}}
  | start_date = {{{start_date|}}}
Line 26: Line 26:
  | image = {{{image|}}}
  | image = {{{image|}}}
  | attendee_count = {{{attendee_count|}}}
  | attendee_count = {{{attendee_count|}}}
| dcw_cost= {{{wmau_cost|}}}
}}</includeonly>{{#default_form:event}}<!--
}}</includeonly>{{#default_form:event}}<!--
--><templatestyles src="Template:Event/style.css" /><!--
--><templatestyles src="Template:Event/style.css" /><!--
Line 84: Line 85:
           -->{{#switch: {{{timezone}}}
           -->{{#switch: {{{timezone}}}
             | 5.5    = IST
             | 5.5    = IST
            | 6 = DST
             | UTC <!--
             | UTC <!--
           -->}}<!--
           -->}}<!--
Line 111: 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><!--
   -->}}<!--
   -->}}<!--
   --><p><!--
   --><p><!--
     -->Share link: <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | [{{canonicalurl:{{FULLPAGENAMEE}} }} Copy link] }}</span><!--
     -->Link (if applicable): <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | [{{canonicalurl:{{FULLPAGENAMEE}} }} Copy link] }}</span><!--
     --> {{#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=DCW 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://dcwwiki.org/Special:Redirect/page/',_pageID)=description |icalendar name={{FULLPAGENAME}} |filename={{FULLPAGENAME}}.ics }} }}<!--
   --></p><!--
   --></p><!--


   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 156: Line 158:
   | tables            = events
   | tables            = events
   | fields            = CONCAT('[[',_pageName,']]<br><small>',DATE_FORMAT(start_date, '%e %M %Y'),'</small>')=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}}}' AND _pageName NOT LIKE '%/%'
   | order by          = start_date DESC
   | order by          = start_date DESC
   | limit            = 1
   | limit            = 1
Line 165: Line 167:
   | tables            = events
   | tables            = events
   | fields            = CONCAT('[[',_pageName,']]<br><small>',DATE_FORMAT(start_date, '%e %M %Y'),'</small>')=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}}}' AND _pageName NOT LIKE '%/%'
   | order by          = start_date ASC
   | order by          = start_date ASC
   | limit            = 1
   | limit            = 1
Line 174: Line 176:


Categories:
Categories:
-->[[Category:Events in {{#time: Y | {{{start_date|}}} }}]]<!--
-->[[Category:{{#time: Y | {{{start_date|}}} }} events]]<!--
-->[[Category:Events in {{#time: Y | {{{end_date|}}} }}]]<!--
-->[[Category:{{#time: Y | {{{end_date|}}} }} events]]<!--
-->[[Category:Events in {{{region|{{{state|}}}}}}]]<!--
-->[[Category:{{{region|{{{state|}}}}}} Events]]<!--
--><noinclude>{{documentation}}</noinclude>
--><noinclude>{{documentation}}</noinclude>

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: