Template:CalendarEvent: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(add css class for the event's type) |
||
| Line 1: | Line 1: | ||
<includeonly><div class="pirate-event">{{CalendarDate|{{{?Has date}}}|{{{?Has time|}}}}} | <includeonly><div class="pirate-event {{lc:{{{?Has event type|}}}}}">{{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 18:18, 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.
[[{{{?Has page}}}]]