Template:Event: Difference between revisions

From Technologia Incognita
Jump to navigation Jump to search
Test custom Start datetime format
Use same format in enddate as startdate
Line 21: Line 21:
   {{!}}-
   {{!}}-
   ! style="background-color:#DDDDDD;" {{!}} Start
   ! style="background-color:#DDDDDD;" {{!}} Start
   {{!}} {{#set: Date={{{StartDate|}}} {{{StartTime|}}}}} {{#time: l j F Y H:i |{{{StartDate|}}} {{{StartTime|}}}}}
   {{!}} {{#set: Date={{{StartDate|}}} {{{StartTime|}}}}} {{#time: l j F Y H:i|{{{StartDate|}}} {{{StartTime|}}}}}
   {{!}}-
   {{!}}-
   ! style="background-color:#DDDDDD;" {{!}} End
   ! style="background-color:#DDDDDD;" {{!}} End
   {{!}} {{#if:{{{EndDate|}}}|{{#set: EndDateTime={{{EndDate|}}} {{{EndTime|}}}}} {{#time: r|{{{EndDate|}}} {{{EndTime|}}}}} | {{#set: EndDateTime={{{StartDate|}}} {{{EndTime|}}}}} {{#time: r|{{{StartDate|}}} {{{EndTime|}}}}} }}
   {{!}} {{#if:{{{EndDate|}}}|{{#set: EndDateTime={{{EndDate|}}} {{{EndTime|}}}}} {{#time: l j F Y H:i|{{{EndDate|}}} {{{EndTime|}}}}} | {{#set: EndDateTime={{{StartDate|}}} {{{EndTime|}}}}} {{#time: l j F Y H:i|{{{StartDate|}}} {{{EndTime|}}}}} }}


|
|

Revision as of 22:50, 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.