Difference between revisions of "Template:Event"
m (added featured flag (see if this will work out)) |
(added past event warning) |
||
Line 19: | Line 19: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;" | + | {{#if: {{{End date|}}} |
+ | | {{#ifexpr: {{#timel: U | {{{End date}}}}} < {{#timel: U | {{#timel: Y-m-d}}}} | ||
+ | | {{InfoBox|Type=alert|Image=warning.png|Title=Attention:|Text=You are looking at an event that took place in the past}} | ||
+ | }} | ||
+ | | {{#if: {{{Start date|}}} | ||
+ | | {{#ifexpr: {{#timel: U | {{{Start date}}}}} < {{#timel: U | {{#timel: Y-m-d}}}} | ||
+ | | {{InfoBox|Type=alert|Image=warning.png|Title=Attention:|Text=You are looking at an event that took place in the past}} | ||
+ | }} | ||
+ | }} | ||
+ | }}{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;" | ||
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Event: {{PAGENAME}}</big> | ! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>Event: {{PAGENAME}}</big> | ||
|- | |- |
Revision as of 14:44, 13 December 2017
This is the "Event" template. It should be called in the following format:
{{Event |State= |Start date= |Start time= |End date= |End time= |Contact= |Kind= |Location= |URL= |Fee= |Short description= }}
Edit the page to see the template text.