Difference between revisions of "Template:Event"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Working)
Line 5: Line 5:
 
|summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|
 
|summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|
 
<small>''{{{month}}} {{{day}}}''</small><br />
 
<small>''{{{month}}} {{{day}}}''</small><br />
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]
+
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]<br/>
 
}}
 
}}
 
|#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 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;

Revision as of 13:39, 23 February 2013