Extension:GoogleDocs4MW/pl

From Linux Web Expert

Revision as of 04:15, 6 April 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Podręcznik rozszerzeń MediaWiki
GoogleDocs4MW
Status wydania: stabilne
Realizacja Znaczniki
Opis Adds ‎<googlespreadsheet> tag for Google Docs' spreadsheets display
Autor(zy) Jack Phoenix
Ostatnia wersja 1.4 (2020-04-19)
MediaWiki 1.39.7+
Zmiany w bazie danych Nie
Licencja Nie określono
Pobieranie
Przykład ShoutWiki
‎<googlespreadsheet>
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').
Przetłumacz rozszerzenie GoogleDocs4MW jeżeli jest dostępne na translatewiki.net

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

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/GoogleDocs4MW/pl</tvar>|Download]] and move the extracted <tvar name=name>GoogleDocs4MW/pl</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/GoogleDocs4MW%2Fpl
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'GoogleDocs4MW/pl' );
    
  • 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>

Usage

Supported parameters are:

Name Default
width 500
height 300
style width: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.

Zobacz też