Fandom Developers Wiki
Advertisement

Google Calendar is a script to integrate calendars by using the Google Calendar embed API.

Installation

Usage

After installing the script, you need to use the following code to display a Google Calendar:

<span class="googlecalendar" data-title="Title" data-mode="agenda" data-src="source" style="width: NUMBERpx;">ALTERNATIVE TEXT</span>
data-title
Specifies the displayed title
data-src
Specifies the calendar source
width
The width of the calendar, for example 800px or 100%.
ALTERNATIVE TEXT
The text that will be displayed if the calendar doesn't work, especially for mobile because JS doesn't work on the mobile version. You can for example put the link of the calendar so that users who don't see the integration can access the calendar directly.
data-mode
Specifies the mode (opions: agenda (default), week, month)

See also

Text above can be found here (edit)
Advertisement