Difference between revisions of "Template:Event"

From Wikimedia Australia
Jump to navigation Jump to search
Line 4: Line 4:
 
  | end_date = Datetime
 
  | end_date = Datetime
 
  | timezone = Number
 
  | timezone = Number
 +
| state = Page
 
  | description = Wikitext
 
  | description = Wikitext
 
  | link = URL
 
  | link = URL
Line 12: Line 13:
 
  | end_date = {{{end_date|}}}
 
  | end_date = {{{end_date|}}}
 
  | timezone = {{{timezone|}}}
 
  | timezone = {{{timezone|}}}
 +
| state = {{{state|}}}
 
  | description = {{{description|}}}
 
  | description = {{{description|}}}
 
  | link = {{{link|}}}
 
  | link = {{{link|}}}
Line 27: Line 29:
 
<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"><!--
  
   Start time:
+
   Start time and state:
   --><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 itemprop="startDate" content="{{#time: c | {{{start_date|}}} }}"><!--
 +
    -->{{#time: l, j F Y, g:i a | @{{#expr: {{#time:U| {{{start_date|}}} }} + (60*60*{{{timezone}}}) }} }}<!--
 +
    --> ({{{state}}})<!--
 +
  --></time> <!--
  
 
   End time:
 
   End time:
Line 44: Line 49:
 
   --><p>Share link: <span itemprop="url" class="plainlinks">{{{link| {{canonicalurl:{{FULLPAGENAMEE}} }} }}}</span></p><!--
 
   --><p>Share link: <span itemprop="url" class="plainlinks">{{{link| {{canonicalurl:{{FULLPAGENAMEE}} }} }}}</span></p><!--
 
   --><div itemprop="description">{{{description|}}}</div><!--
 
   --><div itemprop="description">{{{description|}}}</div><!--
--></div><noinclude>{{documentation}}</noinclude>
+
--></div><!--
 +
 
 +
Categories:
 +
-->[[Category:Events in {{#time: Y | {{{start_date|}}} }}]]<!--
 +
-->[[Category:Events in {{{state}}}]]<!--
 +
--><noinclude>{{documentation}}</noinclude>

Revision as of 23:34, 17 October 2018

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

Event
Event

Location: {{{location}}}

Share link:

[[Category:Events in {{{state}}}]]

[edit] Template-info.svg Template documentation

Create a new event:

See also