From OpenWetWare
Software/Extensions/Calendar
Copied from: http://www.mediawiki.org/wiki/Extension:Calendar_%28Cdamian%29
Template:Extension
A few people have asked me for the calendar I use on krass.com
I couldn't release it earlier, because the CalendarClass I used didn't have a GPL friendly license (in fact, it didn't have any license and I wasn't able to contact the author). Now I have written my own primitive class and can release the whole thing under GPL.
It's just tested on http://krass.com/ and not tested in any other environment.
Please use http://krass.com/wiki/Sandbox/Calendar for testing. Not the main one!
You can find the code here: http://krass.com/software/
Users
- krass.com a techno music wiki
- The TV IV, the online compendium of television knowledge that anyone can edit.
- WikiLou.com A wiki for the St. Louis, Missouri community
- wikEvent A wiki for collecting any and all public events, and publishing them using semantic markup, RDF, and any other standard that comes along.
- WikiCU, a wiki about Columbia University
Readme File
check here: http://krass.com/software/wikicalendar.README
Here is the setting for skipempty. It is confusing in the readme file.
|
| [[Calendar _2008_1_1|1]] | [[Calendar _2008_1_2|2]] | [[Calendar _2008_1_3|3]] | [[Calendar _2008_1_4|4]] | [[Calendar _2008_1_5|5]] | [[Calendar _2008_1_6|6]] |
[[Calendar _2008_1_7|7]] | [[Calendar _2008_1_8|8]] | [[Calendar _2008_1_9|9]] | [[Calendar _2008_1_10|10]] | [[Calendar _2008_1_11|11]] | [[Calendar _2008_1_12|12]] | [[Calendar _2008_1_13|13]] |
[[Calendar _2008_1_14|14]] | [[Calendar _2008_1_15|15]] | [[Calendar _2008_1_16|16]] | [[Calendar _2008_1_17|17]] | [[Calendar _2008_1_18|18]] | [[Calendar _2008_1_19|19]] | [[Calendar _2008_1_20|20]] |
[[Calendar _2008_1_21|21]] | [[Calendar _2008_1_22|22]] | [[Calendar _2008_1_23|23]] | [[Calendar _2008_1_24|24]] | [[Calendar _2008_1_25|25]] | [[Calendar _2008_1_26|26]] | [[Calendar _2008_1_27|27]] |
[[Calendar _2008_1_28|28]] | [[Calendar _2008_1_29|29]] | [[Calendar _2008_1_30|30]] | [[Calendar _2008_1_31|31]] | | | |
| |
| | | | [[Calendar _2008_2_1|1]] | [[Calendar _2008_2_2|2]] | [[Calendar _2008_2_3|3]] |
[[Calendar _2008_2_4|4]] | [[Calendar _2008_2_5|5]] | [[Calendar _2008_2_6|6]] | [[Calendar _2008_2_7|7]] | [[Calendar _2008_2_8|8]] | [[Calendar _2008_2_9|9]] | [[Calendar _2008_2_10|10]] |
[[Calendar _2008_2_11|11]] | [[Calendar _2008_2_12|12]] | [[Calendar _2008_2_13|13]] | [[Calendar _2008_2_14|14]] | [[Calendar _2008_2_15|15]] | [[Calendar _2008_2_16|16]] | [[Calendar _2008_2_17|17]] |
[[Calendar _2008_2_18|18]] | [[Calendar _2008_2_19|19]] | [[Calendar _2008_2_20|20]] | [[Calendar _2008_2_21|21]] | [[Calendar _2008_2_22|22]] | [[Calendar _2008_2_23|23]] | [[Calendar _2008_2_24|24]] |
[[Calendar _2008_2_25|25]] | [[Calendar _2008_2_26|26]] | [[Calendar _2008_2_27|27]] | [[Calendar _2008_2_28|28]] | [[Calendar _2008_2_29|29]] | | |
| |
| | | | | [[Calendar _2008_3_1|1]] | [[Calendar _2008_3_2|2]] |
[[Calendar _2008_3_3|3]] | [[Calendar _2008_3_4|4]] | [[Calendar _2008_3_5|5]] | [[Calendar _2008_3_6|6]] | [[Calendar _2008_3_7|7]] | [[Calendar _2008_3_8|8]] | [[Calendar _2008_3_9|9]] |
[[Calendar _2008_3_10|10]] | [[Calendar _2008_3_11|11]] | [[Calendar _2008_3_12|12]] | [[Calendar _2008_3_13|13]] | [[Calendar _2008_3_14|14]] | [[Calendar _2008_3_15|15]] | [[Calendar _2008_3_16|16]] |
[[Calendar _2008_3_17|17]] | [[Calendar _2008_3_18|18]] | [[Calendar _2008_3_19|19]] | [[Calendar _2008_3_20|20]] | [[Calendar _2008_3_21|21]] | [[Calendar _2008_3_22|22]] | [[Calendar _2008_3_23|23]] |
[[Calendar _2008_3_24|24]] | [[Calendar _2008_3_25|25]] | [[Calendar _2008_3_26|26]] | [[Calendar _2008_3_27|27]] | [[Calendar _2008_3_28|28]] | [[Calendar _2008_3_29|29]] | [[Calendar _2008_3_30|30]] |
[[Calendar _2008_3_31|31]] | | | | | | |
| |
| [[Calendar _2008_4_1|1]] | [[Calendar _2008_4_2|2]] | [[Calendar _2008_4_3|3]] | [[Calendar _2008_4_4|4]] | [[Calendar _2008_4_5|5]] | [[Calendar _2008_4_6|6]] |
[[Calendar _2008_4_7|7]] | [[Calendar _2008_4_8|8]] | [[Calendar _2008_4_9|9]] | [[Calendar _2008_4_10|10]] | [[Calendar _2008_4_11|11]] | [[Calendar _2008_4_12|12]] | [[Calendar _2008_4_13|13]] |
[[Calendar _2008_4_14|14]] | [[Calendar _2008_4_15|15]] | [[Calendar _2008_4_16|16]] | [[Calendar _2008_4_17|17]] | [[Calendar _2008_4_18|18]] | [[Calendar _2008_4_19|19]] | [[Calendar _2008_4_20|20]] |
[[Calendar _2008_4_21|21]] | [[Calendar _2008_4_22|22]] | [[Calendar _2008_4_23|23]] | [[Calendar _2008_4_24|24]] | [[Calendar _2008_4_25|25]] | [[Calendar _2008_4_26|26]] | [[Calendar _2008_4_27|27]] |
[[Calendar _2008_4_28|28]] | [[Calendar _2008_4_29|29]] | [[Calendar _2008_4_30|30]] | | | | |
|
|
| | | [[Calendar _2008_5_1|1]] | [[Calendar _2008_5_2|2]] | [[Calendar _2008_5_3|3]] | [[Calendar _2008_5_4|4]] |
[[Calendar _2008_5_5|5]] | [[Calendar _2008_5_6|6]] | [[Calendar _2008_5_7|7]] | [[Calendar _2008_5_8|8]] | [[Calendar _2008_5_9|9]] | [[Calendar _2008_5_10|10]] | [[Calendar _2008_5_11|11]] |
[[Calendar _2008_5_12|12]] | [[Calendar _2008_5_13|13]] | [[Calendar _2008_5_14|14]] | [[Calendar _2008_5_15|15]] | [[Calendar _2008_5_16|16]] | [[Calendar _2008_5_17|17]] | [[Calendar _2008_5_18|18]] |
[[Calendar _2008_5_19|19]] | [[Calendar _2008_5_20|20]] | [[Calendar _2008_5_21|21]] | [[Calendar _2008_5_22|22]] | [[Calendar _2008_5_23|23]] | [[Calendar _2008_5_24|24]] | [[Calendar _2008_5_25|25]] |
[[Calendar _2008_5_26|26]] | [[Calendar _2008_5_27|27]] | [[Calendar _2008_5_28|28]] | [[Calendar _2008_5_29|29]] | [[Calendar _2008_5_30|30]] | [[Calendar _2008_5_31|31]] | |
| |
| | | | | | [[Calendar _2008_6_1|1]] |
[[Calendar _2008_6_2|2]] | [[Calendar _2008_6_3|3]] | [[Calendar _2008_6_4|4]] | [[Calendar _2008_6_5|5]] | [[Calendar _2008_6_6|6]] | [[Calendar _2008_6_7|7]] | [[Calendar _2008_6_8|8]] |
[[Calendar _2008_6_9|9]] | [[Calendar _2008_6_10|10]] | [[Calendar _2008_6_11|11]] | [[Calendar _2008_6_12|12]] | [[Calendar _2008_6_13|13]] | [[Calendar _2008_6_14|14]] | [[Calendar _2008_6_15|15]] |
[[Calendar _2008_6_16|16]] | [[Calendar _2008_6_17|17]] | [[Calendar _2008_6_18|18]] | [[Calendar _2008_6_19|19]] | [[Calendar _2008_6_20|20]] | [[Calendar _2008_6_21|21]] | [[Calendar _2008_6_22|22]] |
[[Calendar _2008_6_23|23]] | [[Calendar _2008_6_24|24]] | [[Calendar _2008_6_25|25]] | [[Calendar _2008_6_26|26]] | [[Calendar _2008_6_27|27]] | [[Calendar _2008_6_28|28]] | [[Calendar _2008_6_29|29]] |
[[Calendar _2008_6_30|30]] | | | | | | |
| |
| [[Calendar _2008_7_1|1]] | [[Calendar _2008_7_2|2]] | [[Calendar _2008_7_3|3]] | [[Calendar _2008_7_4|4]] | [[Calendar _2008_7_5|5]] | [[Calendar _2008_7_6|6]] |
[[Calendar _2008_7_7|7]] | [[Calendar _2008_7_8|8]] | [[Calendar _2008_7_9|9]] | [[Calendar _2008_7_10|10]] | [[Calendar _2008_7_11|11]] | [[Calendar _2008_7_12|12]] | [[Calendar _2008_7_13|13]] |
[[Calendar _2008_7_14|14]] | [[Calendar _2008_7_15|15]] | [[Calendar _2008_7_16|16]] | [[Calendar _2008_7_17|17]] | [[Calendar _2008_7_18|18]] | [[Calendar _2008_7_19|19]] | [[Calendar _2008_7_20|20]] |
[[Calendar _2008_7_21|21]] | [[Calendar _2008_7_22|22]] | [[Calendar _2008_7_23|23]] | [[Calendar _2008_7_24|24]] | [[Calendar _2008_7_25|25]] | [[Calendar _2008_7_26|26]] | [[Calendar _2008_7_27|27]] |
[[Calendar _2008_7_28|28]] | [[Calendar _2008_7_29|29]] | [[Calendar _2008_7_30|30]] | [[Calendar _2008_7_31|31]] | | | |
| |
| | | | [[Calendar _2008_8_1|1]] | [[Calendar _2008_8_2|2]] | [[Calendar _2008_8_3|3]] |
[[Calendar _2008_8_4|4]] | [[Calendar _2008_8_5|5]] | [[Calendar _2008_8_6|6]] | [[Calendar _2008_8_7|7]] | [[Calendar _2008_8_8|8]] | [[Calendar _2008_8_9|9]] | [[Calendar _2008_8_10|10]] |
[[Calendar _2008_8_11|11]] | [[Calendar _2008_8_12|12]] | [[Calendar _2008_8_13|13]] | [[Calendar _2008_8_14|14]] | [[Calendar _2008_8_15|15]] | [[Calendar _2008_8_16|16]] | [[Calendar _2008_8_17|17]] |
[[Calendar _2008_8_18|18]] | [[Calendar _2008_8_19|19]] | [[Calendar _2008_8_20|20]] | [[Calendar _2008_8_21|21]] | [[Calendar _2008_8_22|22]] | [[Calendar _2008_8_23|23]] | [[Calendar _2008_8_24|24]] |
[[Calendar _2008_8_25|25]] | [[Calendar _2008_8_26|26]] | [[Calendar _2008_8_27|27]] | [[Calendar _2008_8_28|28]] | [[Calendar _2008_8_29|29]] | [[Calendar _2008_8_30|30]] | [[Calendar _2008_8_31|31]] |
|
|
|
[[Calendar _2008_9_1|1]] | [[Calendar _2008_9_2|2]] | [[Calendar _2008_9_3|3]] | [[Calendar _2008_9_4|4]] | [[Calendar _2008_9_5|5]] | [[Calendar _2008_9_6|6]] | [[Calendar _2008_9_7|7]] |
[[Calendar _2008_9_8|8]] | [[Calendar _2008_9_9|9]] | [[Calendar _2008_9_10|10]] | [[Calendar _2008_9_11|11]] | [[Calendar _2008_9_12|12]] | [[Calendar _2008_9_13|13]] | [[Calendar _2008_9_14|14]] |
[[Calendar _2008_9_15|15]] | [[Calendar _2008_9_16|16]] | [[Calendar _2008_9_17|17]] | [[Calendar _2008_9_18|18]] | [[Calendar _2008_9_19|19]] | [[Calendar _2008_9_20|20]] | [[Calendar _2008_9_21|21]] |
[[Calendar _2008_9_22|22]] | [[Calendar _2008_9_23|23]] | [[Calendar _2008_9_24|24]] | [[Calendar _2008_9_25|25]] | [[Calendar _2008_9_26|26]] | [[Calendar _2008_9_27|27]] | [[Calendar _2008_9_28|28]] |
[[Calendar _2008_9_29|29]] | [[Calendar _2008_9_30|30]] | | | | | |
| |
| | [[Calendar _2008_10_1|1]] | [[Calendar _2008_10_2|2]] | [[Calendar _2008_10_3|3]] | [[Calendar _2008_10_4|4]] | [[Calendar _2008_10_5|5]] |
[[Calendar _2008_10_6|6]] | [[Calendar _2008_10_7|7]] | [[Calendar _2008_10_8|8]] | [[Calendar _2008_10_9|9]] | [[Calendar _2008_10_10|10]] | [[Calendar _2008_10_11|11]] | [[Calendar _2008_10_12|12]] |
[[Calendar _2008_10_13|13]] | [[Calendar _2008_10_14|14]] | [[Calendar _2008_10_15|15]] | [[Calendar _2008_10_16|16]] | [[Calendar _2008_10_17|17]] | [[Calendar _2008_10_18|18]] | [[Calendar _2008_10_19|19]] |
[[Calendar _2008_10_20|20]] | [[Calendar _2008_10_21|21]] | [[Calendar _2008_10_22|22]] | [[Calendar _2008_10_23|23]] | [[Calendar _2008_10_24|24]] | [[Calendar _2008_10_25|25]] | [[Calendar _2008_10_26|26]] |
[[Calendar _2008_10_27|27]] | [[Calendar _2008_10_28|28]] | [[Calendar _2008_10_29|29]] | [[Calendar _2008_10_30|30]] | [[Calendar _2008_10_31|31]] | | |
| |
| | | | | [[Calendar _2008_11_1|1]] | [[Calendar _2008_11_2|2]] |
[[Calendar _2008_11_3|3]] | [[Calendar _2008_11_4|4]] | [[Calendar _2008_11_5|5]] | [[Calendar _2008_11_6|6]] | [[Calendar _2008_11_7|7]] | [[Calendar _2008_11_8|8]] | [[Calendar _2008_11_9|9]] |
[[Calendar _2008_11_10|10]] | [[Calendar _2008_11_11|11]] | [[Calendar _2008_11_12|12]] | [[Calendar _2008_11_13|13]] | [[Calendar _2008_11_14|14]] | [[Calendar _2008_11_15|15]] | [[Calendar _2008_11_16|16]] |
[[Calendar _2008_11_17|17]] | [[Calendar _2008_11_18|18]] | [[Calendar _2008_11_19|19]] | [[Calendar _2008_11_20|20]] | [[Calendar _2008_11_21|21]] | [[Calendar _2008_11_22|22]] | [[Calendar _2008_11_23|23]] |
[[Calendar _2008_11_24|24]] | [[Calendar _2008_11_25|25]] | [[Calendar _2008_11_26|26]] | [[Calendar _2008_11_27|27]] | [[Calendar _2008_11_28|28]] | [[Calendar _2008_11_29|29]] | [[Calendar _2008_11_30|30]] |
|
| |
[[Calendar _2008_12_1|1]] | [[Calendar _2008_12_2|2]] | [[Calendar _2008_12_3|3]] | [[Calendar _2008_12_4|4]] | [[Calendar _2008_12_5|5]] | [[Calendar _2008_12_6|6]] | [[Calendar _2008_12_7|7]] |
[[Calendar _2008_12_8|8]] | [[Calendar _2008_12_9|9]] | [[Calendar _2008_12_10|10]] | [[Calendar _2008_12_11|11]] | [[Calendar _2008_12_12|12]] | [[Calendar _2008_12_13|13]] | [[Calendar _2008_12_14|14]] |
[[Calendar _2008_12_15|15]] | [[Calendar _2008_12_16|16]] | [[Calendar _2008_12_17|17]] | [[Calendar _2008_12_18|18]] | [[Calendar _2008_12_19|19]] | [[Calendar _2008_12_20|20]] | [[Calendar _2008_12_21|21]] |
[[Calendar _2008_12_22|22]] | [[Calendar _2008_12_23|23]] | [[Calendar _2008_12_24|24]] | [[Calendar _2008_12_25|25]] | [[Calendar _2008_12_26|26]] | [[Calendar _2008_12_27|27]] | [[Calendar _2008_12_28|28]] |
[[Calendar _2008_12_29|29]] | [[Calendar _2008_12_30|30]] | [[Calendar _2008_12_31|31]] | | | | |
|
|
Changes
- 1.13
- 1.12
- fix for '[[]]' display when merging and main calendar entry is empty
- fix for including more than one calendar
- simple ical format, which I use on krass.com
- 1.11
- 1.10
- fixed weekformat=list
- xml style parameters
- 1.9
- weekformat is in php classes now
- 10.3.2006 version 1.8 (The Amador Release)
- "weekformat" option for different layouts
- "showempty" to supplress "add entry" msgs
- localized calendar from user preferences
- fix merge function to pass calendar name
- 1.3.2006 version 1.7
- released 1.7
- another fix for the cache (thanks to Austin Che)
- "skipempty" option
- "rdays" reverse order of days
- 17.11.2005 version 1.6
- released 1.6
- replaced <h3> in week display, to remove TOC in mediawiki 1.5
- first go at merging calendars
- add extension credits
- 12.10.2005 version 1.5
- fixed month display again
- included some tests for CalendarClass using PHPUnit2
- fix weeks not starting on monday
- fix padding after month ending in end of the week
- new DaysInMonth() and DayOfWeek() not using the php calendar extensions anymore
- 4.10.2005
- 29.9.2005
- new option "weekstart" parameter is 1-7 for Monday-Sunday, default is 1 (Monday)
- small fixes
- 16.9.2005
- new option "formattitle" for the titles in the week/day views
- format & formattitle both accept php date() parameters now, prefixed with '%'. like this: "%d.%m.%Y".
- 15.9.2005
- enable double quoted options
- "date" option, this takes a php strtotime string
- disable cache for 1.5 (untested)
- 6.9.2005 new view="days" with parameter days="#" to display a sequence of days; I also changed the view="today" option again
- 6.9.2005 new view="today" option, by Dexter Samida
- 29.8.2005 fixed the "format" option
- 25.8.2005 new "day","month","year" options
Requests
Template:TalkFromMeta
- It doesn't work for wiki-1.8.2 and cyrillic (ru,uk). Simply doesn't print anything.
Make sure you are not asking to show "weeks" and "skipempty". Select displaying a year first, and then work on the settings.
- Does anyone have a problem with </dt> </dd> being displayed before and after the calendar today function?
- Does anyone know how to add a calendar to the left navigation? I think this involves editing Monobook.php (my default skin), but I don't know how to get the calendar tag to render on load of the skin.
- It would be great to have a way to add the entire calendar to my watchlist so I could be emailed when users add date pages. As it is, I can only use Related changes to see this manually.
- I have customers that would like to be able to overlay other calendars into there calendars, someting to the effect of names=MyCalendar+Holidays+GroupEvents+HomeEvents
- There is something like that in the current version, but only for week/days view. I don't know how it should work in the month view. And even in the week view, edits will go to the first calendar listed. --Cdamian 14:53, 1 March 2006 (UTC)
- If there is something like that in the current version, how can I use it? What I would like to do is have a "master" calendar which has the items for all the other calendars. For example when I go to 10_26_2006 it will show the data from 10_26_2006/calendar2 and 10_26_2006/calendar3 (which is how I have it setup.) 71.231.182.82 07:10, 26 October 2006 (UTC)
- I'd love to see a list of upcoming events for the next week/month/year, without the blank pages.
- this is in the 1.7 version --Cdamian 14:53, 1 March 2006 (UTC)
- it would be nice to have a way to flick forward/back like buttons on a wiki page in/decrementing a counter which is used to call the calendar the usual style (like:date= +$counter week). In this way a week by week overview can flick through a range of the year (good for planning ahead:-) 28 June 2006
- It would be nice to have multi-language support for day- and monthnames. The preferred language could be detected by the $_SERVER['HTTP_ACCEPT_LANGUAGE'] variable. Generating day- and monthnames should work by using the setlocale() function. --DanielSimon 11:50, 29 October 2005 (UTC)
- I don't want to use the HTTP_ACCEPT_LANGUAGE, but the user preferences instead. There is some code in mediawiki to format dates, but I don't think I can use that. --Cdamian 16:36, 3 November 2005 (UTC)
- Why don't you use the
strftime()-Function instead of the date()-function. This function should allow setlocale() to choose localized day-/monthnames... --213.168.102.97 09:14, 8 March 2006 (UTC)
- there are tranlations now in the 1.8 release --Cdamian 11:33, 10 March 2006 (UTC)
- This extension would be even more usefull when it offered the possibility of adding a title to dayevents like 6.4.2006_party. In that way the script could output a list of titles instead of only dates [1]]. Maybe it could also be done by taking each date-page and substracting the headings from it. (Under each heading would be an event.) The script could then output these headings ordered by date. This would make a list of events instead of a list of dates, which is much more informative. The list could be put into the sidebar, for example.
- Hi - is 1.8 or 1.10 production? 1.10 has a missing ) on line 94
(isset($params[$i]) should be (isset($params[$i])) - I'm about to upgrade to 1.6.3 and wanted to upgrade wikicalendar in the process.
- sorry about 1.10, that was my mistake. I have uploaded 1.11 now, which fixes that bug and another one --Cdamian 09:34, 18 April 2006 (UTC)
Template:EndTalkFromMeta
Bugfix
Template:TalkFromMeta
In Calendar.php, the disabling of the 1.5 cache doesn't work...I think it's because it's not doing a return ""; at the very end. Don't know how you want to accept contributions for the code...I also hacked in a sloppy monthly calendar with each event listed in the cell for the day.
- strange thing about the cache. best thing for contributions is to send them to me ( christof@damian.net ), I'll answer much faster than too. --Cdamian 16:34, 3 November 2005 (UTC)
- there is a new fix for the cache in version 1.7 now, please have another go --Cdamian 14:52, 1 March 2006 (UTC)
- I am still having problems with caching in version 1.11 Nobody had edited any calendar entries for over a month, I went to check the calendar and it still was showing the date I last looked at (about 7/4) for my month, week, and year calendars. Even when I held shift and hit the reload button in firefox I kept getting the old one. I edited the calendar php files to add some debug messages and sure enough it showed the proper date. I did just upgrade to firefox 1.5.0.4 from a 1.0 version...not sure if this has something to do with it. --Ej Wed Aug 16 11:00:00 EDT 2006
- Very strangely, I'm seeing 29 october twice, causeing my calendar to go totally nuts. Anything sensible I can do about that? This also happens after an upgrade to 1.13. Apart from that, I totally love your calendar plugin :-) --RubenV 19:21, 3 November 2006 (UTC)
Template:EndTalkFromMeta