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 | --><div class="tpl-event-header"> | ||
<div | <div class="tpl-event-header-left">'''Event'''</div> | ||
<div | <div class="tpl-event-header-right">[[Events|View all events]]</div> | ||
</div> | </div> | ||
<div itemscope itemtype="http://schema.org/Event" | <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>}}}}}})<!-- | ||
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 | --><div class="tpl-event-short-description" itemprop="description">{{{short_description|{{{description|}}}}}}</div><!-- | ||
Keywords: | Keywords: | ||
-->{{#if: {{{keywords|}}} | <span | -->{{#if: {{{keywords|}}} | <span class="tpl-event-keywords">Keywords: {{#arraymap:{{{keywords|}}}|,|QQQ|[[QQQ]][[Category:QQQ]]| · }}</span> }}<!-- | ||
Coordinates map: | Coordinates map: | ||
-->{{#if: {{{coordinates|}}} <!-- | -->{{#if: {{{coordinates|}}} <!-- | ||
--> | <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 | -->{{#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
Event
(Please set 'region' parameter.)Share link: https://wikimedia.org.au/wiki/Template:Event – or download calendar item (.ics)