Difference between revisions of "Template:Event"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
m (Tweak formatting)
 
(22 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:2em;">{{date box|month={{{month}}}|day={{{day}}}}}</span>
+
<span style="float:left; padding-right:10px; {{#if:{{{cancelled|}}}{{{virtual|}}}|padding-bottom:1em;}}">{{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|'''[[Upcoming events#{{{month}}} {{{day}}}|<span style="color:#808080;"><s>'''{{{title}}}'''</s></span>]]'''<br/><span style="color:#990000; font-variant:small-caps;">event postponed or cancelled</span>|[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]{{#ifeq:{{{virtual|}}}|yes|<br/><span style="color:#009900; font-variant:small-caps;">virtual event</span>}}}}</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;">
   
<div id="calendar-date-tab" style="vertical-align:top; background:#F4F4F4; padding-left:1em; padding-top:0.5em; padding-bottom:0.5em;">
+
<div id="calendar-date-tab" style="vertical-align:top; background:{{#ifeq:{{{virtual|}}}|yes|#c6ecd9|#F4F4F4}}; padding-left:1em; padding-top:0.5em; padding-bottom:0.5em;">
 
<h3 style="display:inline; border-bottom:0;">{{{month}}}&nbsp;{{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}}
 
<h3 style="display:inline; border-bottom:0;">{{{month}}}&nbsp;{{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}}
 
</div>
 
</div>
Line 17: Line 17:
   
 
'''WHERE'''
 
'''WHERE'''
: ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}}
+
: {{#ifeq:{{{virtual|}}}|yes|<span style="color:#009900;">'''VIRTUAL EVENT'''</span>|''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}}{{#if:{{{room|}}}|<br />''[{{{room}}}]''}}}}
 
</div>
 
</div>
   
 
<div id="calendar-event-description" class="mobile-collapse plainlinks" style="-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 60%; float:left; right:1.5em; padding-left:2.5em; padding-right:1em; padding-top:1em; {{#ifeq:{{{cancelled|}}}|yes|color:#808080;}}">
 
<div id="calendar-event-description" class="mobile-collapse plainlinks" style="-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: 60%; float:left; right:1.5em; padding-left:2.5em; padding-right:1em; padding-top:1em; {{#ifeq:{{{cancelled|}}}|yes|color:#808080;}}">
{{#ifeq:{{{cancelled|}}}|yes|<span style="color:#990000; text-transform:uppercase;">'''This event has been cancelled.'''</span><br /><br />}}
+
{{#ifeq:{{{cancelled|}}}|yes|<span style="color:#990000; text-transform:uppercase;">'''This event has been postponed or cancelled.'''</span><br /><br />}}
 
{{#if:{{{description|}}}|{{{description}}}{{#if:{{{info-link|}}}|&nbsp;'''[{{{info-link|}}} Learn&nbsp;more&nbsp;&raquo;]'''}}|''More details forthcoming!''}}
 
{{#if:{{{description|}}}|{{{description}}}{{#if:{{{info-link|}}}|&nbsp;'''[{{{info-link|}}} Learn&nbsp;more&nbsp;&raquo;]'''}}|''More details forthcoming!''}}
 
{{#if:{{{restriction|}}}|&nbsp;
 
{{#if:{{{restriction|}}}|&nbsp;
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-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>}}}}{{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#ifeq:{{{virtual|}}}|yes|{{arrow button|color=red|link=Virtual participation|label=Participate online}}}}}}
+
{{#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>}}}}{{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{virtual-link|}}}|<div style="padding-bottom:5px;">{{arrow button|external=yes|link={{{virtual-link}}}|label=Join virtual event}}</div>}}}}
 
</div>}}
 
</div>}}
 
</div>
 
</div>

Latest revision as of 18:32, 19 March 2020