Extension:GoogleDocs4MW

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
GoogleDocs4MW
Release status: stableCategory:Stable extensions
Implementation Tag Category:Tag extensions
Description Adds <googlespreadsheet> tag for Google Docs' spreadsheets display
Author(s) Jack Phoenix
Latest version 1.4 (2020-04-19)
MediaWiki 1.43.1+Category:Extensions with manual MediaWiki version
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Example ShoutWiki
<googlespreadsheet>
Quarterly downloads 8 (Ranked 88th)
Public wikis using 1,188 (Ranked 231st)
Translate the GoogleDocs4MW extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The GoogleDocs4MW extension embeds Google Docs' spreadsheets into the wiki.

Installation

  • Download and move the extracted GoogleDocs4MW folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleDocs4MW
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'GoogleDocs4MW' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

Supported parameters are:

NameDefault
width500
height300
stylewidth:100%

As an example using all of the parameters:

<googlespreadsheet width="600" height="200" style="width:50%">Google Docs' key goes here</googlespreadsheet>

The Google Docs' key is the ID, encoded in the URL. For example, https://docs.google.com/spreadsheets/d/4cmYOu9kuIfCzbu-Dsu9XaGHUnUHG32PK9wHe5yMv3VZ/edit#gid=0 has ID 4cmYOu9kuIfCzbu-Dsu9XaGHUnUHG32PK9wHe5yMv3VZ.

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.

Note

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

See also

Category:Extensions by ShoutWiki Category:Google extensions Category:Document viewer extensions Category:Spreadsheets extensions
Category:All extensions Category:Document viewer extensions Category:Extensions by ShoutWiki Category:Extensions in Wikimedia version control Category:Extensions included in Miraheze Category:Extensions included in ShoutWiki Category:Extensions included in WikiForge Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Google extensions Category:ParserFirstCallInit extensions Category:Spreadsheets extensions Category:Stable extensions Category:Tag extensions