Extension:GoogleDocs4MW
From MediaWiki.org
|
GoogleDocs4MW Release status: stable |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Adds <googlespreadsheet> tag for Google Docs' spreadsheets display |
||
| Author(s) | Jack Phoenix | ||
| Latest version | 1.1 | ||
| 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; code metrics | |||
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.
Installation[edit | edit source]
- Download and extract the file(s) in a directory called
GoogleDocs4MWin yourextensions/folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/GoogleDocs4MW/GoogleDocs4MW.php";
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.