Difference between revisions of "Template:Event"

From Wikimedia Australia
Jump to navigation Jump to search
(times)
Line 27: Line 27:
 
<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"><!--
  
  Date:
 
  --><time itemprop="startDate" content="{{#time: c | {{{start_date|}}} }}">{{#time: l, j F Y | {{{start_date|}}} }}</time><!--
 
 
   Start 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 itemprop="startDate" content="{{#time: c | {{{start_date|}}} }}">{{#time: l, j F Y, g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*{{{timezone}}}) }} }}</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:
 
   End time:
 
   -->{{#if: {{{end_date|}}}<!--
 
   -->{{#if: {{{end_date|}}}<!--
     -->| <br /><time itemprop="endDate" content="{{#time: c | {{{end_date|}}} }}">to</time> <!--
+
     -->| to <time itemprop="endDate" content="{{#time: c | {{{end_date|}}} }}">{{#time: g:i a | @{{#expr: {{#time:U| {{{end_date|}}} }} + (60*60*{{{timezone}}}) }} }}</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><!--
 
 
   -->}}<!--
 
   -->}}<!--
  

Revision as of 11:50, 17 October 2018

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

Event
Event

Location: {{{location}}}

Share link:

[edit] Template-info.svg Template documentation

Create a new event:

See also