Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
(Revert self) |
(Working) |
||
(7 intermediate revisions by the same user not shown) | |||
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; padding-right: |
+ | <span style="float:left; padding-right:10px;">{{date box|month={{{month}}}|day={{{day}}}}}</span> |
<p>{{#ifeq:{{{cancelled|}}}|yes|<s>[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</s> <span style="color:#990000; font-variant:small-caps;">[cancelled]</span>|[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]}}</p><div style="clear:both;"></div>}} |
<p>{{#ifeq:{{{cancelled|}}}|yes|<s>[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</s> <span style="color:#990000; font-variant:small-caps;">[cancelled]</span>|[[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}}| |
||
Line 17: | Line 17: | ||
'''WHERE''' |
'''WHERE''' |
||
− | : ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}} |
+ | : ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}}{{#if:{{{room|}}}|<br />''[{{{room}}}]''}} |
</div> |
</div> |
||
Line 28: | Line 28: | ||
}} |
}} |
||
{{#ifeq:{{{cancelled|}}}|yes||<div id="calendar-buttons" class="mobile-collapse"> |
{{#ifeq:{{{cancelled|}}}|yes||<div id="calendar-buttons" class="mobile-collapse"> |
||
− | {{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{rsvp-link- |
+ | {{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{rsvp-link-eventbrite|}}}|<div style="padding-bottom:5px;">{{arrow button|external=yes|link={{{rsvp-link-eventbrite}}}|label=Sign up on Eventbrite}}</div>}}}}{{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{rsvp-link-meetup|}}}|<div style="padding-bottom:5px;">{{arrow button|external=yes|link={{{rsvp-link-meetup}}}|label=Sign up on Meetup.com}}</div>}}}}{{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{rsvp-link-wiki|}}}|<div style="padding-bottom:5px;">{{arrow button|external=yes|link={{{rsvp-link-wiki}}}|label=Sign up on Wikipedia}}</div>}}}}{{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{rsvp-link|}}}|<div style="padding-bottom:5px;">{{arrow button|external=yes|link={{{rsvp-link}}}|label=Sign up}}</div>}}}} |
</div>}} |
</div>}} |
||
</div> |
</div> |
Revision as of 03:10, 15 June 2017