Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
James Hare (talk | contribs) (New design for calendar entries, free of table markup) |
James Hare (talk | contribs) (Updating style; changing width proportions) |
||
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}}}}}| |
||
− | <p |
+ | <p><small>''{{{month}}} {{{day}}}''</small><br /> |
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}} |
[[Upcoming events#{{{month}}} {{{day}}}|'''{{{title}}}''']]</p>}} |
||
|#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 9: | Line 9: | ||
<h3 style="display:inline; font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{{month}}} {{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}} |
<h3 style="display:inline; font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0;">{{{month}}} {{{day}}}</h3>{{anchor|{{{month}}} {{{day}}}}} |
||
</div> |
</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: |
+ | <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;"> |
<h3 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; margin-left:-1em;">{{{title}}}</h3> |
<h3 style="font-family:'Helvetica Neue', 'Lucida Grande', Tahoma, Verdana, sans-serif; border-bottom:0; margin-left:-1em;">{{{title}}}</h3> |
||
− | <div style="font-size:110%;"> |
||
'''WHEN''' |
'''WHEN''' |
||
: ''{{{dow}}}, {{{month}}} {{{day}}}, {{{year}}}''<br />''{{{time}}}'' |
: ''{{{dow}}}, {{{month}}} {{{day}}}, {{{year}}}''<br />''{{{time}}}'' |
||
Line 19: | Line 18: | ||
'''WHERE''' |
'''WHERE''' |
||
: ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}} |
: ''{{{place}}}''{{#if:{{{address|}}}|<br />''{{{address}}}''}} |
||
− | </div> |
||
</div> |
</div> |
||
− | <div id="calendar-event-description" class="mobile-collapse" style="-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; width: |
+ | <div id="calendar-event-description" class="mobile-collapse" 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;"> |
{{#if:{{{description|}}}|{{{description}}}|''More details forthcoming!''}} |
{{#if:{{{description|}}}|{{{description}}}|''More details forthcoming!''}} |
||
{{#if:{{{restriction|}}}| |
{{#if:{{{restriction|}}}| |
Revision as of 07:37, 14 April 2014