Help:Template:gcal: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
Jadrian Miles (talk | contribs)
No edit summary
Jadrian Miles (talk | contribs)
No edit summary
Line 9: Line 9:
{{#shtml:Template:gcal | src=<src_string>}}
{{#shtml:Template:gcal | src=<src_string>}}
</pre>
</pre>
 
<noinclude>
[[Category:Help|gcal]]
[[Category:Help|Gcal]]
</noinclude>

Revision as of 19:30, 10 September 2008

Template:gcal adds a Google calendar to the including page. To embed a calendar into a page, first get its ID:

  1. Open up Google calendar.
  2. Select the drop-down menu for the calendar you want and select "Calendar settings".
  3. Scroll down to "Embed This Calendar".
  4. In the text box containing the embed code, look for a string like src=<long_string_of_stuff>&ctz=...
  5. Copy the string between src= and &ctz=

Now, in the wiki page where you want to embed the calendar, insert the following code snippet, replacing <src_string> with the string you copied in the previous step:

{{#shtml:Template:gcal | src=<src_string>}}