Difference between revisions of "Template:Event"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Working)
Line 6: Line 6:
 
<p><small>''{{{month}}} {{{day}}}''</small><br />
 
<p><small>''{{{month}}} {{{day}}}''</small><br />
 
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}}
 
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}}
|#default={{#ifexpr:({{#switch:{{{mode}}}|upcoming=1|#default=0}} and {{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year|}}} }}) or ({{#switch:{{{mode}}}|recent=1|#default=0}} and {{is recent|month={{{month}}}|day={{{day}}}|year={{{year|}}} }}) or {{#switch:{{{mode}}}|recent|upcoming=0|#default=1}}|&nbsp;
+
|#default={{#ifexpr:({{#switch:{{{mode}}}|upcoming=1|#default=0}} and {{is future|month={{{month}}}|day={{{day}}}|year={{{year|}}} }}) or ({{#switch:{{{mode}}}|recent=1|#default=0}} and {{is recent|month={{{month}}}|day={{{day}}}|year={{{year|}}} }}) or {{#switch:{{{mode}}}|recent|upcoming=0|#default=1}}|&nbsp;
 
{{!}}-
 
{{!}}-
 
{{!}} style="vertical-align:top; background:#F4F4F4; padding-left:20px; padding-right:20px; border-top: 1px solid #BBBDBF; border-right: 1px dotted #BBBDBF;" {{!}} <h3 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{{month}}}&nbsp;{{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}}
 
{{!}} style="vertical-align:top; background:#F4F4F4; padding-left:20px; padding-right:20px; border-top: 1px solid #BBBDBF; border-right: 1px dotted #BBBDBF;" {{!}} <h3 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{{month}}}&nbsp;{{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}}

Revision as of 14:21, 23 February 2013