Difference between revisions of "Template:Event"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Working)
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{#iferror:{{#switch:{{{mode}}}
<noinclude>
 
{|
 
|-
 
</noinclude>{{#iferror:{{#switch:{{{mode}}}
 
 
|summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|
 
|summary={{#ifexpr:{{is upcoming|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|
<p><small>''{{{month}}} {{{day}}}''</small><br />
+
<span style="float:left; padding-right:10px;">{{date box|month={{{month}}}|day={{{day}}}}}</span>
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}}
+
<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}}|&nbsp;
+
|#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;">
{{!}}-
 
  +
{{!}} 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}}}&nbsp;{{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}}
 
{{!}} colspan="2" style="border-top: 1px solid #BBBDBF; padding-left:10px;" {{!}} <h3 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{{title}}}</h3>
+
<div id="calendar-date-tab" style="vertical-align:top; background:#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}}}}}
{{!}} rowspan="3" style="border-top: 1px solid #BBBDBF; vertical-align:top; padding:10px;" {{!}} {{#ifexpr:{{is future|month={{{month}}}|day={{{day}}}|year={{{year}}}}}|{{#if:{{{rsvp-link|}}}|<div style="padding-bottom:5px;">{{button|link={{{rsvp-link}}}|label=Sign up now &raquo;|primary=yes|width=100px}}</div>}}}}{{#if:{{{info-link|}}}|{{button|link={{{info-link}}}|label=Learn more &raquo;|width=100px}}}}
 
  +
</div>
{{!}}-
 
  +
<div id="calendar-event-details" class="mobile-collapse" style="-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width:40%; float:left; padding-top:1em; padding-left:2.5em; {{#ifeq:{{{cancelled|}}}|yes|color:#808080;}}">
{{!}} rowspan="3" style="border-right: 1px dotted #BBBDBF;" {{!}}
 
{{!}} style="padding:5px; padding-left:10px; vertical-align:top;" {{!}} '''WHEN'''
+
<h3 style="border-bottom:0; margin-left:-1em; {{#ifeq:{{{cancelled|}}}|yes|color:#808080;}}">{{{title}}}</h3>
  +
{{!}} style="width:100%; padding:5px; padding-left:10px;" {{!}} ''{{{dow}}}, {{{month}}} {{{day}}}, {{{year}}}''<br />''{{{time}}}''
 
  +
{{!}}-
 
  +
'''WHEN'''
{{!}} style="padding:5px; padding-left:10px; vertical-align:top;" {{!}} '''WHERE'''
 
{{!}} style="width:100%; padding:5px; padding-left:10px;" {{!}} ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}}
+
: ''{{{dow}}}, {{{month}}} {{{day}}}, {{{year}}}''<br />''{{{time}}}''
  +
{{!}}-
 
  +
'''WHERE'''
{{!}} colspan="3" style="padding:5px; padding-left:10px;" {{!}} {{#if:{{{description|}}}|{{{description}}}|''More details forthcoming!''}}
 
  +
: ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}}{{#if:{{{room|}}}|<br />''[{{{room}}}]''}}
{{#if:{{{note|}}}
 
  +
</div>
{{!}}-
 
  +
{{!}} colspan="3" style="padding:5px; padding-left:10px; color:#990000; text-transform:uppercase;" {{!}} '''Please note that {{{note}}}'''
 
  +
<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 />}}
  +
{{#if:{{{description|}}}|{{{description}}}{{#if:{{{info-link|}}}|&nbsp;'''[{{{info-link|}}} Learn&nbsp;more&nbsp;&raquo;]'''}}|''More details forthcoming!''}}
 
{{#if:{{{restriction|}}}|&nbsp;
  +
 
<span style="color:#990000; text-transform:uppercase;">'''Please note that {{{restriction}}}.'''</span>
 
}}
 
}}
  +
{{#ifeq:{{{cancelled|}}}|yes||<div id="calendar-buttons" class="mobile-collapse">
{{!}}-
 
  +
{{#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>}}}}
{{!}} colspan="2" style="height:10px;" {{!}}
 
  +
</div>}}
  +
</div>
  +
<div style="clear:both;"></div>
  +
</div>
 
}}}}}}<noinclude>
 
}}}}}}<noinclude>
|}
 
 
[[Category:Visual identity templates]]
 
[[Category:Visual identity templates]]
 
</noinclude>
 
</noinclude>

Revision as of 03:10, 15 June 2017