Giter VIP home page Giter VIP logo

mediawiki-extension-jscalendar's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mediawiki-extension-jscalendar's Issues

Provide iCal endpoint

A cool feature that some of us have been discussing is to provide an endpoint that outputs the calendar in iCal format, which could then be used to subscribe to the calendar in whatever program you like to use.

New feature: allow titleRegex to retrieve end date of multiday events if that date is in their title

It would be nice to be able to specify an event that is spanning several days without having to enter all days separately.
I implemented this by adding enddate handling in EventCalendar.php (see attached file).
It is now possible to (for example) specify

<EventCalendar>
aspectratio = 2.0
titleRegex = ^([0-9]{4,4}/[0-9][0-9]/[0-9][0-9])(:[0-9]{4,4}/[0-9][0-9]/[0-9][0-9])?_.*
dateFormat = Y/m/d
symbols = 200
keywordcolor.afspraak = red
</EventCalendar>

and match page titles like 2022/04/28:2022/04/29_testtest .
This is backwards compatible with the previous regex and pages like 2022/04/29_testtest (without a colon sign) still match.
Note that use of a colon ':' isn't strictly necessary and done because of readability.

Note: not a feature of this update, but if you start an event page by entering the start time followed by a description, this will be displayed within the specific calendar day.

I added the updated .php file to this issue.
EventCalendar.zip

Calendar doesn't work with Extension:Lingo

I use the following call to include the calendar:

<EventCalendar>
namespace = Event
titleRegex = ^([0-9]{4,4}-[0-9][0-9]-[0-9][0-9]):?([0-9]{4,4}-[0-9][0-9]-[0-9][0-9])?_.*
dateFormat = Y-m-d
categorycolor.Marketingevents = #11aa11
</EventCalendar>

This worked well - but after adding another Event ("Event:2024-01-25_Meeting") the calender does not show up any more at all. Is there any way to debug why?

aspectratio does not work out of the box

Aspectratio set from a MediaWiki page (within <EventCalendar> .. </EventCalendar>) does not change the aspect ratio of the calendar within the page.
This is because configuration file ext.yasec.core.js contains setting contentHeight: 'auto' which disables (overrides) the aspect ratio setting. It is also important to set max-with in ext.yasec.css to a much larger size (1600px) on a desktop to be able to view the aspectratio setting accurately.

Bug: multi-day events are not displayed correctly - last day is missing

an event like
Event:2023-11-14:2023-11-15 title
is only displayed on day 1; an event like
Event:2023-11-14:2023-11-16 title
wouls be displayed on day 1 and 2 - last day is missing.

Calendar definition:

<EventCalendar>
namespace = Event
titleRegex = ^([0-9]{4,4}-[0-9][0-9]-[0-9][0-9]):?([0-9]{4,4}-[0-9][0-9]-[0-9][0-9])?_.*
dateFormat = Y-m-d
</EventCalendar>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.