Open main menu

Extension:GoogleDocTag

If you are using version 0.5 or earlier of this extensions you are advised to immediately upgrade to the recent version of this extension to mitigate a security vulnerability.
MediaWiki extensions manual
OOjs UI icon advanced.svg
GoogleDocTag
Release status: beta
GoogleDocTag.jpg
Implementation Tag
Description Introduces <gdoc> tags for inserting Google Docs
Author(s)
Latest version 0.6 (2018-09-01)
MediaWiki 1.29+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
<gdoc>
Translate the GoogleDocTag extension if it is available at translatewiki.net
Check usage and version matrix.

The GoogleDocTag extension inserts Google Docs into any wiki page.

InstallationEdit

  • Download and place the file(s) in a directory called GoogleDocTag in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'GoogleDocTag' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

UseEdit

The most simple code is: <gdoc id="your-google-doc-id" />, which inserts the Google Doc into the page.

The tags also accept parameters "width" and "height" for setting the width and height of the displayed document. The defaults are 100% for width, and 1000px for height. An example using both width and height is:

<gdoc id="your-google-doc-id" width="800" height="600" />

See alsoEdit