Extension:GoogleDocs4MW

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Adds <googlespreadsheet> tag for Google Docs' spreadsheets display
Author(s)Template:Extension#username Jack Phoenix
Latest versionTemplate:Extension#version 1.3.0 (2017-01-27)
MediaWikiTemplate:Extension#mediawiki 1.29+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example ShoutWiki
TagsTemplate:Extension#tags
<googlespreadsheet>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

Translate the GoogleDocs4MW extension if it is available at translatewiki.net

Check usage and version matrix.

The GoogleDocs4MW extension allows to embed Google Docs' spreadsheets on the wiki via the <googlespreadsheet> tag.

This extension was inspired by the Wikia extension with the same name, but this extension was written back when Wikia wasn't open source.

Usage[edit]

Supported parameters are width (500 by default), height (300 by default) and style (width:100% by default). Usage example with all the parameters: <googlespreadsheet width="600" height="200" style="width: 50%">Google Docs' key goes here</googlespreadsheet>

To actually embed a spreadsheet, the spreadsheet needs to be published with Google's File > Publish to Web... option. It is not sufficient to just have a shareable link.

Installation[edit]

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

See also[edit]