Jump to content

Topic on Project talk:Calendar

Multiple day events?

9
Qgil-WMF (talkcontribs)

The Amsterdam Hackathon, many QA weekly goals and many other events last more than one day. How should this be reflected in the calendar?

This post was posted by Qgil-WMF, but signed as Qgil.

Guillom (talkcontribs)

The templates could be extended to support more date formats, including events spanning several days, and those happening at a specific time. I didn't implement all that in the first version of the templates because they were a proof of concept, and I didn't want to make them too complex. I do think it's feasible, though, and perhaps my opportunity to get into Lua :)

Qgil-WMF (talkcontribs)

In the meantime... should we edit the date field with plain text e.g. "May 22-24" or create one event for each day?

This post was posted by Qgil-WMF, but signed as Qgil.

Guillom (talkcontribs)

The template doesn't support plain text as an entry format for dates, only formats supported by the {{#time:}} parser function. So the only solution right now is one event for each day.

Qgil-WMF (talkcontribs)

Silly question but... why do we need to use that time parser function? Is there any operation done with that data field as of today?

This post was posted by Qgil-WMF, but signed as Qgil.

Guillom (talkcontribs)

We need it to format times depending on the context. Project:Calendar and Template:New opportunities/Content display dates differently; the parser function allows us to use the same date input and display it differently on those pages. Since you haven't transitioned Template:New opportunities/Content to use the calendar, I guess the answer "as of today" is "no".

That said, if this is urgent to you, I can try to quickly hack support for events longer than a day in the template. It will be done without Lua, but it'll work, and we can transition to Lua later.

Qgil-WMF (talkcontribs)

2-3 day events still look ok repeating days but the problem comes with the QA weekly activities...

Of course the best solution is to make the template support multiple day events, but if you are busy I'm fine having the same data format used in Calendar and New opportunities.

This post was posted by Qgil-WMF, but signed as Qgil.

Guillom (talkcontribs)

I've modified the templates, and {{event}} now supports "end dates". It's not perfect, but it should meet your needs. Basically, you just need to add an enddate parameter to the event's entry, in the same format as the date parameter, and it should show (example). If there isn't an end date, nothing should show. I'll update the documentation now.

Qgil-WMF (talkcontribs)

Looks very good! Thank you. Well, it looks like we have reached the point when we can move this calendar to the home...

This post was posted by Qgil-WMF, but signed as Qgil.

Reply to "Multiple day events?"