Template:CalendarDate: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(use css class pirate-event)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="date">
<includeonly><time datetime="{{#time:Y-m-d|{{{1}}}}}{{#if: {{{2|}}} | T{{{2}}} }}" class="date"><div class="month">{{ucfirst:{{#time:M|{{{1}}}|{{int:language-code}}}}}}</div><div class="day">{{#time:j|{{{1}}}}}</div><div class="weekday">{{#time:D|{{{1}}}|{{int:language-code}}}}</div><div class="time">{{#if: {{{2|}}} | {{#time:G:i|{{{2}}}}} | &nbsp; }}</div></time></includeonly><noinclude>== Usage ==
  <div class="month">{{ucfirst:{{#time:M|{{{1}}}|{{int:language-code}}}}}}</div>
  <div class="day">{{#time:j|{{{1}}}}}</div>
  <div class="weekday">{{#time:D|{{{1}}}|{{int:language-code}}}}</div>{{#if: {{{2|}}}  
| <div class="time">{{{2}}}</div>
}}
</div></includeonly><noinclude>== Usage ==


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


== 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>

Latest revision as of 08:47, 2 November 2017

Usage

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

Example

Hello world