Extension:GoogleDocTag

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
GoogleDocTag

Release status:Extension status beta

GoogleDocTag.jpg
ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Introduces <gdoc> tags for inserting Google Docs
Author(s)Template:Extension#username Redeko, Felipe Schenone
Latest versionTemplate:Extension#version 0.4 (2014-03-31)
MediaWikiTemplate:Extension#mediawiki 1.21+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GPL
Download
TagsTemplate:Extension#tags
<gdoc>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

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.

Installation[edit]

  • 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:
    require_once "$IP/extensions/GoogleDocTag/GoogleDocTag.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Use[edit]

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 also[edit]