Template: Event

(Move styles to templatestyles.)
No edit summary
Line 10: Line 10:
  | keywords = List (,) of String
  | keywords = List (,) of String
  | link = URL
  | link = URL
| image = File
  | attendee_count = Number
  | attendee_count = Number
  | wmau_cost = Number
  | wmau_cost = Number
Line 23: Line 24:
  | keywords = {{{keywords|}}}
  | keywords = {{{keywords|}}}
  | link = {{{link|}}}
  | link = {{{link|}}}
| image = {{{image|}}}
  | attendee_count = {{{attendee_count|}}}
  | attendee_count = {{{attendee_count|}}}
  | wmau_cost = {{{wmau_cost|}}}
  | wmau_cost = {{{wmau_cost|}}}
Line 32: Line 34:


Start the box.
Start the box.
--><div class="tpl-event-header">
--><div class="tpl-event-header"><!--
<div class="tpl-event-header-left">'''Event'''</div>
  --><div class="tpl-event-header-left">'''Event'''</div><!--
<div class="tpl-event-header-right">[[Events|View all events]]</div>
  --><div class="tpl-event-header-right">[[Events|View all events]]</div>
</div>
</div>
<div class="tpl-event-main" 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-top"><!--
   --><div class="tpl-event-name" itemprop="name">'''{{PAGENAME}}'''</div><!--


  Start time and state:
    --><div class="tpl-event-name-etc"><!--
  --><time itemprop="startDate" datetime="{{#time: c | {{{start_date|}}} }}"><!--
    -->{{#time: l j F Y, g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*{{{timezone}}}) }} }}<!--
  --></time> <!--


  End time:
      Event title (page name):
  -->{{#if: {{{end_date|}}}<!--
      --><div class="tpl-event-name" itemprop="name">'''{{PAGENAME}}'''</div><!--
    -->|<!--
 
       -->&#32;&ndash;&#32;<time itemprop="endDate" datetime="{{#time: c | {{{end_date|}}} }}"><!--
      Start time and date:
         -->{{#time: g:i a | @{{#expr: {{#time:U| {{{end_date|}}} }} + (60*60*{{{timezone}}}) }} }}<!--
       --><time itemprop="startDate" datetime="{{#time: c | {{{start_date|}}} }}"><!--
         -->{{#time: l j F Y, g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*{{{timezone}}}) }} }}<!--
       --></time> <!--
       --></time> <!--
  -->}}<!--


  Timezone abbreviation:
      End time (and date if on a different day):
  -->{{#if: {{{timezone|}}} |<!--
      -->{{#if: {{{end_date|}}}<!--
    -->&#32;<abbr title="Timezone: UTC+{{{timezone}}}"><!--
        -->|<!--
      -->{{#switch: {{{timezone}}}
          -->&#32;&ndash;&#32;<time itemprop="endDate" datetime="{{#time: c | {{{end_date|}}} }}"><!--
        | 8    = AWST
            -->{{#time: g:i a | @{{#expr: {{#time:U| {{{end_date|}}} }} + (60*60*{{{timezone}}}) }} }}<!--
        | 9.5  = ACST
          --></time> <!--
        | 10  = AEST
      -->}}<!--
        | 10.5 = ACST
 
        | 11  = AEDT
      Timezone abbreviation:
        | 12  = NZST
      -->{{#if: {{{timezone|}}} |<!--
        | 13  = NZDT
        -->&#32;<abbr title="Timezone: UTC+{{{timezone}}}"><!--
        | UTC
          -->{{#switch: {{{timezone}}}
            | 8    = AWST
            | 9.5  = ACST
            | 10  = AEST
            | 10.5 = ACST
            | 11  = AEDT
            | 12  = NZST
            | 13  = NZDT
            | UTC
          -->}}<!--
        --></abbr><!--
       -->}}<!--
       -->}}<!--
    --></abbr><!--
  -->}}<!--


  Region (used to be called 'state'):
    --></div><!-- end .tpl-event-name-etc
  --> ({{{region|{{{state|<span class="error">Please set 'region' parameter.</span>}}}}}})<!--
 
    --><div class="tpl-event-image">{{#if: {{{image|}}} |<!--
      -->[[{{{image}}}|right|frameless|600px]]<!--
    -->}}</div><!--
 
  --></div><!-- end .tpl-event-top
 
  Short description:
  --><div class="tpl-event-short-description" itemprop="description"><!--
    -->{{{short_description|{{{description|}}}}}}<!--
  --></div><!--
 
  Description (long; only shown if short desc is given):
  -->{{#if: {{{short_description|}}} | <div class="tpl-event-description">{{{description|}}}</div> }}<!--


   Location:
   Location and region:
   -->{{#if: {{{location|}}} | <p class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><!--
   -->{{#if: {{{location|}}}{{{region|{{{state|}}}}}} |<!--
    -->Location: <span itemprop="name">{{{location}}}</span><!--
    --><p class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><!--
  --></p>}}<!--
      Region (used to be called 'state'):
      -->Region: {{{region|{{{state|<span class="error">Please set 'region' parameter.</span>}}}}}}<!--
      -->{{#if {{{location|}}} | Location: <span itemprop="name">{{{location}}}</span> }}<!--
    --></p><!--
  -->}}<!--
   --><p><!--
   --><p><!--
     -->Share link: <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | {{canonicalurl:{{FULLPAGENAMEE}} }} }}</span><!--
     -->Share link: <span itemprop="url" class="plainlinks">{{#if: {{{link|}}} | {{{link}}} | {{canonicalurl:{{FULLPAGENAMEE}} }} }}</span><!--
     --> – 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 class="tpl-event-short-description" itemprop="description">{{{short_description|{{{description|}}}}}}</div><!--


   Keywords:
   Keywords:
Line 91: Line 113:
   -->}}<!--
   -->}}<!--


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


Report:
Report:

Revision as of 06:35, 12 June 2022

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


[edit] Template documentation

Create a new event:

See also

Discuss this page