Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Inherit font family from CSS) |
(Working) |
||
Line 3: | Line 3: | ||
<span style="float:left; padding-right:10px;">{{date box|month={{{month}}}|day={{{day}}}}}</span> |
<span style="float:left; padding-right:10px;">{{date box|month={{{month}}}|day={{{day}}}}}</span> |
||
<p style="padding-top:5px;">[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p><div style="clear:both;"></div>}} |
<p style="padding-top:5px;">[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p><div style="clear:both;"></div>}} |
||
− | |#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}}| |
+ | |#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}}| |
<div id="calendar-entry" class="plainlinks" style="width:100%; border-top: 1px solid #BBBDBF; border-left: 1px dotted #BBBDBF; border-right: 1px dotted #BBBDBF; border-collapse:collapse; padding-bottom:1em;"> |
<div id="calendar-entry" class="plainlinks" style="width:100%; border-top: 1px solid #BBBDBF; border-left: 1px dotted #BBBDBF; border-right: 1px dotted #BBBDBF; border-collapse:collapse; padding-bottom:1em;"> |
||
Revision as of 03:59, 15 March 2015