Template:Gcal: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{Help:Template:gcal}}</noinclude><includeonly | <noinclude>{{Help:Template:gcal}}</noinclude><includeonly><iframe src="http://www.google.com/calendar/embed?showTitle=0&showCalendars=0&mode={@{mode}@}&height={@{height}@}&wkst=1&src={@{src}@}&ctz=America%2FNew_York" style="border: 0" width="100%" height="{@{height}@}" frameborder="0" scrolling="no"></iframe></html></includeonly> | ||
Latest revision as of 22:51, 23 September 2008
Template:gcal adds a Google calendar to the including page. The template looks like this:
{{#shtml:Template:gcal
|src=<a_long_ID_string>
|mode=[AGENDA|WEEK|MONTH]
|height=500
}}
Note that you must include values for each argument. Figure out the values by the following procedure:
- Open up Google calendar.
- Select the drop-down menu for the calendar you want and select "Calendar settings".
- Scroll down to "Embed This Calendar".
- You may also want to click the "customize" link to get other options.
- In the text box containing the embed code, look for a string like
http://www.google.com/calendar/embed?<key_1>=<val_1>&<key_2>=<val_2>... - For each of the arguments above, look for the corresponding key in the embed code and set the argument to the corresponding value.
srcwill be a long string, probably ending with "group.calendar.google.com".modeis one ofAGENDA,WEEK, orMONTH.heightis500by convention on our wiki but you may choose any height in pixels.