Extension:Calendar (Kenyu73)/Readme

Setup

 * 1) Its recommended to create a page in a "CalendarEvents" namespace. (ex:  CalendarEvents:Acme Company )
 * 2) Add a extension tag to that page
 * 3) Add parameters as required (see below listing)

Note: You can have more then one calendar per page. It's fun to find unique combinations of how to use "full" calendar view and "day" only view. Don't forget, since this is a tagged extension, you always wrap the calendar in a table to scrink it down or justify it...

Here is the simple basic way to setup the calendar. This calendar will create a standard calendar named "Public" with full edit ability.

Important: To gain the ability of Parent/Subpage linking, place the calender in a "CalendarEvents:" namespace. Create a wiki page as shown above and then add your calendar extension tag to that page. This will populate a "quick" shortcut link back to the calendar after the event is entered and saved. The calendar will still work fine if not added to the "CalendarEvents:" namespace, but you will not get a "quick link" back to the main calender page.

The following are examples of how the (Page/Name/EventDate) event will look:

 CalendarEvents:Acme Company/Sales/12-1-2008 -Event 1

 CalendarEvents:Acme Company/Support/12-1-2008 -Event 1

You can also "share" or subscribe to other calendars by using the "subscribe" or "fullsubscribe" parameter: 

Events
Events can be entered either by the "add event" link or via the "template load" button (if enabled). Both work together seemlessly, but clicking each of them will bring you back to the respective method of creation. Once you save the event, you can easily go back to the calendar via the Subpage/Parent link right above the page body.

Events are listed on the calendar with the information on the first line of the page if created via "add event".

In this example, Summer Picnic will appear on the calendar. Summer Picnic Our department will be holding a summer picnic at the park. Bring your families and your appetites!

Multiple Events
In this example, two calendar events are created using the same page. The == event == can be used to create these mulitple events per page. However, you can still create new page events by clicking Add Event.

In this example, Picnic and Party will show up on the same day.

Picnic
Bring food!

Party
Bring drinks

Template Events
The template button (if enabled) allows users to add a bunch of events into one page. Only one template is created per month/year. This can be used along with all other event types.

The day and the event must be seperated by an '#' as shown in the example. You can also create duplicated days.

1#Vacation 2#Holiday 7#Election Day 7#Office Closed 31#Half Day

Repeating Events
To scheduled a repeating event, you need to enable templates by adding the (usetemplates="1") parameter. You can then add a repeating event using the following syntax to schedule the 1st to the 10th as a vacation: 1-10#Vacation

Installation
The following are details of the administrator installation of this calendar extension. If you dont have any custom Namespaces, then 100 and 101 are fine, if you do have existing custom Namespaces, just bump the numbers up accordingly. See Help:Namespaces for more information. The $wgNamespacesWithSubpages values must match the values assigned to the $wgExtraNamespaces. Folder Path: /extensions/Calendar Localsettings.php: require_once("$IP/extensions/Calendar/Calendar.php"); // Puts events into their own namesspace/group (not included in 'main' searches... etc) $wgExtraNamespaces[100] = "CalendarEvents"; $wgExtraNamespaces[101] = "CalendarEvents_talk"; // Puts the events into Subpages (allows a quick link back to primary calendar) $wgNamespacesWithSubpages[100] = true; $wgNamespacesWithSubpages[101] = true;

optional overrides $extensionPath = "/var/www/extensions/Calendar/"; or $extensionPath = "c:\extensions\";

The additional namespaces move all the events outside the "main" group... should clean the mess up some. If you have custom namespaces installed already, make sure you change bump the [100][101] values up accordingly.