Template: Event

(dash between times)
(Move styles to templatestyles.)
Line 26: Line 26:
  | wmau_cost = {{{wmau_cost|}}}
  | wmau_cost = {{{wmau_cost|}}}
}}</includeonly>{{#default_form:event}}<!--
}}</includeonly>{{#default_form:event}}<!--
--><templatestyles src="Template:Event/style.css" /><!--


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.
Line 31: Line 32:


Start the box.
Start the box.
--><div style="font-variant:small-caps; margin:0; border:1px solid #bbb; border-bottom:0; background-color:lightblue; padding:0 0.3em; display:flex">
--><div class="tpl-event-header">
<div style="flex:1">'''Event'''</div>
<div class="tpl-event-header-left">'''Event'''</div>
<div style="flex:1; text-align:right">[[Events|View all events]]</div>
<div class="tpl-event-header-right">[[Events|View all events]]</div>
</div>
</div>
<div itemscope itemtype="http://schema.org/Event" style="border:1px solid #bbb; background-color:#efefef; padding:0.3em; text-align:center; margin:0"><!--
<div class="tpl-event-main" itemscope itemtype="http://schema.org/Event"><!--
 
  Event title (page name):
  --><div class="tpl-event-name" itemprop="name">'''{{PAGENAME}}'''</div><!--


   Start time and state:
   Start time and state:
Line 68: Line 72:
   Region (used to be called 'state'):
   Region (used to be called 'state'):
   --> ({{{region|{{{state|<span class="error">Please set 'region' parameter.</span>}}}}}})<!--
   --> ({{{region|{{{state|<span class="error">Please set 'region' parameter.</span>}}}}}})<!--
  Event title (page name):
  --><div itemprop="name" style="font-size:2em">'''{{PAGENAME}}'''</div><!--


   Location:
   Location:
Line 80: Line 81:
     --> – 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=Wikimedia Australia event.ics }}<!--
     --> – 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=Wikimedia Australia event.ics }}<!--
   --></p><!--
   --></p><!--
   --><div itemprop="description" style="font-size:larger">{{{short_description|{{{description|}}}}}}</div><!--
   --><div class="tpl-event-short-description" itemprop="description">{{{short_description|{{{description|}}}}}}</div><!--


   Keywords:
   Keywords:
   -->{{#if: {{{keywords|}}} | <span style="font-variant:small-caps; font-size:smaller">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:
   -->{{#if: {{{coordinates|}}} <!--
   -->{{#if: {{{coordinates|}}} <!--
     --> | <div style="text-align:center; margin:1em;">{{#cargo_display_map: | point = {{{coordinates}}} | zoom = 14 | height = 200px | width = 100% }}</div> <!--
     --> | <div class="tpl-event-map">{{#cargo_display_map: | point = {{{coordinates}}} | zoom = 14 | height = 200px | width = 100% }}</div> <!--
   -->}}<!--
   -->}}<!--


   Description (long; only shown if short desc is given):
   Description (long; only shown if short desc is given):
   -->{{#if: {{{short_description|}}} | <div style="text-align:left;">{{{description|}}}</div> }}<!--
   -->{{#if: {{{short_description|}}} | <div class="tpl-event-description">{{{description|}}}</div> }}<!--


--></div><!--
--></div><!--

Revision as of 06:12, 12 June 2022

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

Event
(Please set 'region' parameter.)

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


[edit] Template documentation

Create a new event:

See also

Discuss this page