Template:Event: Difference between revisions
Jump to navigation
Jump to search
Remove extra braces |
Awful if condition for date formatting |
||
Line 18: | Line 18: | ||
|- style="font-size:150%; background: #CCCCCC; text-align:center;" | |- style="font-size:150%; background: #CCCCCC; text-align:center;" | ||
! colspan=2| {{PAGENAME}} | ! colspan=2| {{PAGENAME}} | ||
{{#if:{{{StartDate|}}}| | {{#if:{{{StartDate|}}}| | ||
{{!}}- | {{!}}- | ||
! style="background-color:#DDDDDD;" {{!}} Start | ! style="background-color:#DDDDDD;" {{!}} Start | ||
{{!}} {{#time: r|{{{StartDate|}}} {{{StartTime| | {{!}} {{#set: Date={{{StartDate|}}} {{{StartTime|}}}}} {{#time: r|{{{StartDate|}}} {{{StartTime|}}}}} | ||
{{!}}- | {{!}}- | ||
! style="background-color:#DDDDDD;" {{!}} End | ! style="background-color:#DDDDDD;" {{!}} End | ||
{{!}} {{#set: EndDateTime={{{ | {{!}} {{#if:{{{EndDate|}}}|{{#set: EndDateTime={{{EndDate|}}} {{{EndTime|}}}}} {{#time: r|{{{EndDate|}}} {{{EndTime|}}}}} | {{#set: EndDateTime={{{StartDate|}}} {{{EndTime|}}}}} {{#time: r|{{{StartDate|}}} {{{EndTime|}}}}} }} | ||
| | | | ||
{{!}}- | {{!}}- |
Revision as of 22:29, 13 February 2025
This is the "Event" template. It should be called in the following format:
{{Event |Start= |End= |Location= |EventType= |Contact= }}
Edit the page to see the template text.