Difference between revisions of "Template:CalendarEvent"

From Pirate Party Belgium
Jump to: navigation, search
(add css class for the event's type)
Line 1: Line 1:
<includeonly><div class="pirate-event {{lc:{{{?Has event type|}}}}}">{{CalendarDate|{{{?Has date}}}|{{{?Has time|}}}}}
+
<includeonly><div class="pirate-event {{#if: {{{?Has event type|}}} | {{lc:{{{?Has event type}}}}}-event }}">{{CalendarDate|{{{?Has date}}}|{{{?Has time|}}}}}
 
<div class="details">
 
<div class="details">
 
   <div class="title">{{#if: {{{?Has event type|}}}
 
   <div class="title">{{#if: {{{?Has event type|}}}

Revision as of 19:37, 28 October 2017

Usage

{{CalendarEvent
| ?Has page = <!-- mandatory -->
| ?Has title =
| ?Has date =  <!-- mandatory, format = yyyy/mm/dd -->
| ?Has time = <!-- optional, format = hh:mm -->
| ?Organized by =
| ?Has location =
| ?In topic = 
| ?Has event type = 
}}

Example

<time datetime="Error: Invalid time." class="date">
Error: Invalid time.
Error: Invalid time.
Error: Invalid time.
 
[[{{{page}}}]]