Help:Widgets/Google Document

From UBC Wiki

This widget allows you to add Google Documents to your wiki page.

To insert this widget, use the following code:

{{#widget:Google Document
|key= 
|width=
|height=
}}

Parameters

  • width and height define document dimensions, 500x300 is default
  • id - id parameter used in the URL
  • key - docID parameter used in old document URL (use it instead of id to embed old document)

Sample result

Old document

Old document that has docID attribute in the URL instead of id.


Adding the code to the Visual editor

When you insert a widget code (including YouTube, Slideshare, etc.) to the Visual Editor, copy the code then paste it to the Visual Editor. Then click on the code, and press edit. Then, you can change the parameter and press Apply Changes.

Paste the example code to the visual editor. Click on the code, and press edit. Then, change the parameter and press Apply Changes