Template:CalendarDate: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
(use css class pirate-event)
Line 1: Line 1:
<includeonly><div style="width:4em;border:1px solid #c2c2c2;border-radius:5px;border-top:0;float:left;font-weight:bold;margin:0 1em 1em;text-align:center;line-height:1.2em">
<includeonly><div class="date">
   <div style="background:#692D89;border-radius:4px 4px 0 0;color:#fff;padding:0;text-shadow:0 -1px 0 rgba(0,0,0,0.25);">{{ucfirst:{{#time:M|{{{1}}}|{{int:language-code}}}}}}</div>
   <div class="month">{{ucfirst:{{#time:M|{{{1}}}|{{int:language-code}}}}}}</div>
   <div style="font-size: 2em;padding: .35em 0 .2em;">{{#time:j|{{{1}}}}}</div>
   <div class="day">{{#time:j|{{{1}}}}}</div>
   <div style="padding: 0 0 .2em;">{{#time:D|{{{1}}}|{{int:language-code}}}}</div>{{#if: {{{2|}}}  
   <div class="weekday">{{#time:D|{{{1}}}|{{int:language-code}}}}</div>{{#if: {{{2|}}}  
| <div style="font-size:small; padding: 0 0 .2em">{{{2}}}</div>
| <div class="time">{{{2}}}</div>
}}
}}
</div></includeonly><noinclude>== Usage ==
</div></includeonly><noinclude>== Usage ==


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


== Example ==
== Example ==


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

Revision as of 17:47, 28 September 2017

Usage

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

Example

Dec
22
Sun
12:00
Hello world