Template:HCalendar event/Office Hours

From Second Life Wiki
Jump to: navigation, search
iCal
Help PortalCalendar.png

HCalendar event/Office Hours includes embedded calendar data! Subscribe to it with a calendar program, or copy and paste this URL into a Google Calendar!

Convenience

The previous generation of Office Hours templates where created to improve productivity. Office Hours were being listed in multiple places- and as duplication of data increases, so does the effort to keep it all up to date.

The problem then developed that Residents and Lindens alike wanted to be able to keep track of the events on Google Calendars, iCal and other calendar services/programs. There used to be an official calendar maintained by a Linden, which fell behind in updates, and there is now a calendar maintained by a Resident. The problem with maintaining a separate resource is that it needs to be kept up-to-date with any changes made.

Which is where the hCalendar event templates come in- the ability to automate the generation of a calendar without relying on a Linden Lab employee or Resident to set aside some time/resources to maintain a calendar.

hCalendar

hCalendar is a microformat- a series of class attributes and other standard HTML tricks that replicate the functionality of the pre-existing iCalendar standard (aka RFC 2445).

hCalendar allows calendar data to be embedded in a web page without breaking the HTML standard, and also allows for the web page to be transposed easily into an iCalendar feed, via such 3rd party services as Technorati, or the W3C's own hCal Proxy.

Usage

Embedded calendar data in Office Hours article being displayed in Thunderbird

The general behaviour that emerged from the Office Hours is that most office hours are done every week on the same day at the same time of day. This template acts as a wrapper which takes that behaviour into mind, simplifying the process of declaring the Office Hours as a recurring event.

If an article lists events that use the hCalendar event series of templates, it is a good idea to include the {{hCalendar subscribe}} template at the top of the page so that Residents can easily add the embedded calendar to their Calendar service/program.

Variables

  • Resident- The name of the Resident that is hosting the Office Hours
  • description- A good place to let the other Residents know what'll be covered at your Office Hours
  • weekday- What day of the week the Office Hours take place multiple templates will be required for each day Office Hours are held.
  • start- What time of day the Office Hours start make sure to include the timezone! (PST and PDT will be auto-replaced to SLT for the convenience of Residents)
  • end- What time of day the Office Hours finish make sure to include the timezone! (PST and PDT will be auto-replaced to SLT for the convenience of Residents)
  • location- a SLurl to the location the Office Hours are held.
  • voice- Whether or not the Office Hours will be voice-enabled.
    • Use a single asterisk- "*" for the Main Grid,
    • Use "teen" for the Teen Grid.

Example

Default

{{hCalendar event/Office Hours
|Resident=Amber Linden
|description=Topics: General
|weekday=Monday
|start=9am PST
|end=10am PST
|location=[http://slurl.com/secondlife/Portage/14/154/98/?title=Second%20Life%20Helper%27s%20Lyceum Second Life Helper's Lyceum]
}}{{hCalendar event/Office Hours
|Resident=Amber Linden
|description=Topics: General
|weekday=Tuesday
|start=2pm PST
|end=3pm PST
|location=[http://slurl.com/secondlife/Portage/14/154/98/?title=Second%20Life%20Helper%27s%20Lyceum Second Life Helper's Lyceum]
}}
Topics: General Mondays from 9am to 10am PSTSecond Life Helper's Lyceum
Topics: General Tuesdays from 2pm to 3pm PSTSecond Life Helper's Lyceum


tr

<table class="sortable">
<tr><th>Host</th><th>Description</th><th>Start Time</th><th>End Time</th><th>Location</th></tr>
{{hCalendar event/Office Hours
|mode=tr
|Resident=Amber Linden
|description=Topics: General
|weekday=Monday
|start=9am PST
|end=10am PST
|location=[http://slurl.com/secondlife/Portage/14/154/98/?title=Second%20Life%20Helper%27s%20Lyceum Second Life Helper's Lyceum]
}}{{hCalendar event/Office Hours
|mode=tr
|Resident=Amber Linden
|description=Topics: General
|weekday=Tuesday
|start=2pm PST
|end=3pm PST
|location=[http://slurl.com/secondlife/Portage/14/154/98/?title=Second%20Life%20Helper%27s%20Lyceum Second Life Helper's Lyceum]
}}
</table>
HostDescriptionStart TimeEnd TimeLocation
Amber LindenTopics: General Mondays from 9am10am PSTSecond Life Helper's Lyceum
Amber LindenTopics: General Tuesdays from 2pm3pm PSTSecond Life Helper's Lyceum