Template:CalendarDate: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(use css class pirate-event)
(hour not zero padded)
Line 3: Line 3:
   <div class="day">{{#time:j|{{{1}}}}}</div>
   <div class="day">{{#time:j|{{{1}}}}}</div>
   <div class="weekday">{{#time:D|{{{1}}}|{{int:language-code}}}}</div>{{#if: {{{2|}}}  
   <div class="weekday">{{#time:D|{{{1}}}|{{int:language-code}}}}</div>{{#if: {{{2|}}}  
| <div class="time">{{{2}}}</div>
| <div class="time">{{#time:G:i|{{{2}}}}}</div>
}}
}}
</div></includeonly><noinclude>== Usage ==
</div></includeonly><noinclude>== Usage ==
Line 11: Line 11:
== Example ==
== Example ==


<div class="pirate-event">{{CalendarDate|now|12:00}} Hello world</div></noinclude>
<div class="pirate-event">{{CalendarDate|now|9:00}} Hello world</div></noinclude>

Revision as of 19:36, 4 October 2017

Usage

<div class="pirate-event">{{CalendarDate|now|12:00}} Hello world</div>

Example

Dec
22
Sun
9:00
Hello world