Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
(Working) |
(Working) |
||
Line 2: | Line 2: | ||
{| |
{| |
||
|- |
|- |
||
− | </noinclude>{{#switch:{{{mode}}} |
+ | </noinclude>{{#iferror:{{#switch:{{{mode}}} |
+ | |summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}| |
||
− | |summary= |
||
<small>''{{{month}}} {{{day}}}''</small><br /> |
<small>''{{{month}}} {{{day}}}''</small><br /> |
||
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']] |
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']] |
||
+ | }} |
||
− | |#default= |
||
+ | |#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|}}} }})| |
||
{{!}}- |
{{!}}- |
||
{{!}} 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}}} {{{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}}} {{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}} |
||
Line 22: | Line 23: | ||
{{!}}- |
{{!}}- |
||
{{!}} colspan="2" style="height:10px;" {{!}} |
{{!}} colspan="2" style="height:10px;" {{!}} |
||
+ | }} |
||
− | |||
− | }}<noinclude> |
+ | }}}}<noinclude> |
|} |
|} |
||
[[Category:Visual identity templates]] |
[[Category:Visual identity templates]] |