Extension:GoogleDocs4MW
|
GoogleDocs4MW Release status: stable |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Adds <googlespreadsheet> tag for Google Docs' spreadsheets display |
||
| Author(s) | Jack Phoenix | ||
| Latest version | 1.2 (2015-11-22) | ||
| MediaWiki | 1.28+ | ||
| Database changes | No | ||
| License | GNU General Public License 2.0 or later | ||
| Download | |||
| Example | ShoutWiki | ||
|
|||
|
|||
|
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.
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>
This extension was inspired by the Wikia extension with the same name, but this extension was written back when Wikia wasn't open source.
Note that 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
GoogleDocs4MWin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'GoogleDocs4MW' );
Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.24 or earlier:
The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'GoogleDocs4MW' );, you need to use:
require_once "$IP/extensions/GoogleDocs4MW/GoogleDocs4MW.php";
- Extensions with unknown license
- Stable extensions
- Extensions without an image
- Tag extensions
- Extensions without a compatibility policy
- GPL licensed extensions
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- All extensions
- Extensions by ShoutWiki
- Google extensions
- Document viewer extensions