Extension:GoogleDocs4MW/cs

Category:GPL licensed extensions/cs
Příručka k rozšířením MediaWiki
GoogleDocs4MW
Stav rozšíření: stabilníCategory:Stable extensions/cs
Implementace Značka Category:Tag extensions/cs
Popis Přidá značku <googlespreadsheet> pro zobrazení tabulek v Dokumentech Google
Autoři Jack Phoenix
Nejnovější verze 1.4 (2020-04-19)
MediaWiki 1.43.1+Category:Extensions with manual MediaWiki version
Změny v databázi Ne
Licence GNU General Public License 2.0 nebo novější
Stáhnout Category:Extensions in Wikimedia version control/cs
Příklad ShoutWiki
<googlespreadsheet>
Čtvrtletní stahování 8 (Ranked 90th)
Veřejné wiki používající rozšíření 1,188 (Ranked 231st)
Přeložte rozšíření GoogleDocs4MW, používá-li lokalizaci z translatewiki.net
Problémy Otevřené úkoly · Nahlásit chybu
Category:All extensions/cs

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

Installation

  • Stáhněte soubor/y a vložte je do adresáře pojmenovaného GoogleDocs4MW ve vaší složce extensions/.
    Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GoogleDocs4MW
  • Na konec vašeho souboru LocalSettings.php přidejte následující kód:
    wfLoadExtension( 'GoogleDocs4MW' );
    
  • Yes Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.

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/cs Category:Google extensions/cs Category:Document viewer extensions/cs Category:Spreadsheets extensions/cs
Category:All extensions/cs Category:Document viewer extensions/cs Category:Extensions by ShoutWiki/cs Category:Extensions in Wikimedia version control/cs Category:Extensions included in Miraheze/cs Category:Extensions included in ShoutWiki/cs Category:Extensions included in WikiForge/cs Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/cs Category:Google extensions/cs Category:ParserFirstCallInit extensions/cs Category:Spreadsheets extensions/cs Category:Stable extensions/cs Category:Tag extensions/cs