Extension:GoogleDocTag

From Linux Web Expert

Revision as of 11:55, 24 February 2023 by imported>Syunsyunminmin (Special:LintErrors/bogus-image-options)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
GoogleDocTag
Release status: beta
File:GoogleDocTag.jpg
Implementation Tag
Description Introduces ‎<gdoc> tags for inserting Google Docs
Author(s) Redeko (Redekopmarktalk)
Maintainer(s) Sophivorus
Latest version 0.6 (2018-09-01)
MediaWiki 1.29+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
‎<gdoc>
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the GoogleDocTag extension if it is available at translatewiki.net
If you are using version 0.5 or earlier of this extensions you are advised to immediately upgrade to the recent version of this extension to mitigate a security vulnerability.

The GoogleDocTag extension inserts Google Docs into any wiki page.

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/GoogleDocTag</tvar>|Download]] and move the extracted <tvar name=name>GoogleDocTag</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleDocTag
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'GoogleDocTag' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Use

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