Template:Widget This widget allows you to add Google Calendar widget to your wiki page.
It was originally created by Sergey Chernyshev for TechPresentations.org
To insert this widget, use the following code:
{{#widget:Google Calendar |[email protected] |color=2952A3 |[email protected] |color=B1440E |title=NYCResistor, US Holidays }}
Parameters
- id - is a calendar ID (including
@calendar.google.com
, come match user email addresses) - can be found on calendar settings page - title - new title if you want to override calendar title (optional)
- height and width define calendar dimensions, 100%x600 is default (only width can be defined in %).
- color - events color (hex value. e.g. 5229A3) - only color used in Google's wizard can be used.
- 795548, E67C73, D50000, F4511E, EF6C00, F09300, 009688, 7CB342, C0CA33, F6BF26, 33B679, 4285F4, 039BE5, 3F51B5, 7986CB, B39DDB, 616161, A79B8E, AD1457, D81B60, 8E24AA, 9E69AF
- bgcolor - background/border color (hex value. e.g. ffcc66)
- weekstart - first day of the week (1-7)
- dates - a range between YYYYMMDD/YYYYMMDD
- lang - interface language (en, fr, ru and etc).
- view - default view MONTH (default)/WEEK/AGENDA)
- timezone - time zone defined as a string like "America/New_York", should be automatically detected if omitted
- pvttk - This key is used to access non-public calendars. All calendars must be on a single account. [Depreciated by Google: See https://support.google.com/calendar/answer/1631300?hl=en]
- style - The style attribute to be applied to the iframe.
- You can also trigger parts of the interface on and off:
- showtitle - true (default)/false - shows title
- shownav - true (default)/false - shows navigation arrows
- showdate - true (default)/false - shows date
- showtabs - true (default)/false - shows view tabs
- showcals - true (default)/false - shows a calendar list
- showprint - true (default)/false - shows a print icon
- showtz - true (default)/false - shows timezone
- border - true/false (default) - draws thin border around the widget
- app - for Google Apps for Your Domain Calendars, specify the domain name for the account (
http://www.google.com/calendar/hosted/yourdomain.com/render
)
Sample result
Displaying 3 different calendars:
- NYCResistor events
- US Holidays