Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
James Hare (talk | contribs) (Adding date box for summary mode) |
James Hare (talk | contribs) (Working) |
||
Line 1: | Line 1: | ||
{{#iferror:{{#switch:{{{mode}}} |
{{#iferror:{{#switch:{{{mode}}} |
||
|summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}| |
|summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}| |
||
− | <span style="float:left;">{{date box|month={{{month}}}|day={{{day}}}}}</span> |
+ | <span style="float:left; padding-right:5px;">{{date box|month={{{month}}}|day={{{day}}}}}</span> |
<p><small>''{{{month}}} {{{day}}}''</small><br /> |
<p><small>''{{{month}}} {{{day}}}''</small><br /> |
||
+ | <div style="clear:both;"></div> |
||
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}} |
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}} |
||
|#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}}| |
Revision as of 18:57, 16 May 2014