Difference between revisions of "Template:Event"

From Wikimedia Australia
Jump to navigation Jump to search
(Created page with "<noinclude>{{#cargo_declare: | _table = events | location = Page | start_date = Datetime | end_date = Datetime | timezone = Number }}</noinclude><includeonly>{{#cargo_stor...")
 
Line 4: Line 4:
 
  | end_date = Datetime
 
  | end_date = Datetime
 
  | timezone = Number
 
  | timezone = Number
 +
| description = Wikitext
 +
| link = URL
 
}}</noinclude><includeonly>{{#cargo_store:
 
}}</noinclude><includeonly>{{#cargo_store:
 
  | location = {{{location|}}}
 
  | location = {{{location|}}}
Line 9: Line 11:
 
  | end_date = {{{end_date|}}}
 
  | end_date = {{{end_date|}}}
 
  | timezone = {{{timezone|}}}
 
  | timezone = {{{timezone|}}}
 +
| description = {{{description|}}}
 +
| link = {{{link|}}}
 
}}</includeonly><!--
 
}}</includeonly><!--
  
 
Supress the page title so we can redisplay it within the header box.
 
Supress the page title so we can redisplay it within the header box.
-->{{DISPLAYTITLE:<span style="font-size:12pt">{{FULLPAGENAME}}</span>}}<!--
+
-->{{DISPLAYTITLE:<span style="font-size:12pt; font-weight:lighter">{{FULLPAGENAME}}</span>}}<!--
  
 
Start the box.
 
Start the box.
Line 20: Line 24:
 
</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"><!--
   --><p class="event-date" itemprop="startDate" content="2013-09-14T21:30">{{{start_date}}}</p><!--
+
   --><time itemprop="startDate" content="{{#time: c | {{{start_date|}}} }}">{{#time: g:i a l, j F Y | {{{start_date|}}} }}</time><!--
 +
  -->{{#if: {{{end_date|}}} | (to <time itemprop="endDate" content="{{#time: c | {{{end_date}}} }}">{{#time: g:i a l | {{{end_date}}} }}</time>) }}<!--
 
   --><div itemprop="name" style="font-size:2em">'''{{PAGENAME}}'''</div><!--
 
   --><div itemprop="name" style="font-size:2em">'''{{PAGENAME}}'''</div><!--
 
   --><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><!--
 
   --></p><!--
 
   --></p><!--
 +
  --><p>Share link: <span itemprop="url" class="plainlinks">{{{link| {{canonicalurl:{{FULLPAGENAMEE}} }} }}}</span></p><!--
 +
  --><div itemprop="description">{{{description|}}}</div><!--
 
--></div><noinclude>{{documentation}}</noinclude>
 
--></div><noinclude>{{documentation}}</noinclude>

Revision as of 10:50, 7 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