Difference between revisions of "Template:Event"

From Wikimedia Australia
Jump to navigation Jump to search
(times)
Line 26: Line 26:
 
</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 itemscope itemtype="http://schema.org/Event" style="border:1px solid #bbb; background-color:#efefef; padding:0.3em; text-align:center; margin:0"><!--
   --><time itemprop="startDate" content="{{#time: c | {{{start_date|}}} }}">{{#time: g:i a l, j F Y | {{{start_date|}}} }}</time><!--
+
 
   -->{{#if: {{{end_date|}}} | &nbsp;(to <time itemprop="endDate" content="{{#time: c | {{{end_date}}} }}">{{#time: g:i a l | {{{end_date}}} }}</time>) }}<!--
+
  Date:
 +
   --><time itemprop="startDate" content="{{#time: c | {{{start_date|}}} }}">{{#time: l, j F Y | {{{start_date|}}} }}</time><!--
 +
  Start time:
 +
  --><br />from <time title="AWST" style="cursor:help; border-bottom:1px dashed #bbb">{{#time: g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*8  ) }} }}</time> / <!--
 +
        --><time title="ACST" style="cursor:help; border-bottom:1px dashed #bbb">{{#time: g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*9.5) }} }}</time> / <!--
 +
        --><time title="AEST" style="cursor:help; border-bottom:1px dashed #bbb">{{#time: g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*10 ) }} }}</time><!--
 +
 
 +
  End time:
 +
   -->{{#if: {{{end_date|}}}<!--
 +
    -->| <br /><time itemprop="endDate" content="{{#time: c | {{{end_date|}}} }}">to</time> <!--
 +
  --><time title="AWST" style="cursor:help; border-bottom:1px dashed #bbb">{{#time: g:i a | @{{#expr: {{#time:U| {{{end_date|}}} }} + (60*60*8  ) }} }}</time> / <!--
 +
        --><time title="ACST" style="cursor:help; border-bottom:1px dashed #bbb">{{#time: g:i a | @{{#expr: {{#time:U| {{{end_date|}}} }} + (60*60*9.5) }} }}</time> / <!--
 +
        --><time title="AEST" style="cursor:help; border-bottom:1px dashed #bbb">{{#time: g:i a | @{{#expr: {{#time:U| {{{end_date|}}} }} + (60*60*10 ) }} }}</time><!--
 +
  -->}}<!--
 +
 
 +
  Event title (page name):
 
   --><div itemprop="name" style="font-size:2em">'''{{PAGENAME}}'''</div><!--
 
   --><div itemprop="name" style="font-size:2em">'''{{PAGENAME}}'''</div><!--
 +
 +
  Location:
 
   --><p class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><!--
 
   --><p class="event-venue" itemprop="location" itemscope itemtype="http://schema.org/Place"><!--
 
     -->Location: <span itemprop="name">{{{location}}}</span><!--
 
     -->Location: <span itemprop="name">{{{location}}}</span><!--

Revision as of 11:40, 17 October 2018

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

Event

from / /
Event

Location: {{{location}}}

Share link:

[edit] Template-info.svg Template documentation

Create a new event:

See also