Extension:TwitterTag/pl

From Linux Web Expert

Revision as of 18:03, 29 August 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Podręcznik rozszerzeń MediaWiki
TwitterTag
Status wydania: stabilne
Realizacja Znaczniki
Autor(zy) Mikko Miettinen
Original version:
Polityka zgodności Master maintains backward compatibility.
MediaWiki 1.27+
PHP 7.1.0+
Licencja Nie określono
Pobieranie
Przykład Jedipedia
‎<twitter />
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 TwitterTag jeżeli jest dostępne na translatewiki.net

The TwitterTag extension adds ‎<twitter /> tag to allow embedding Twitter content on pages. It is ported from Fandom's extension.

Instalacja

Unless otherwise specified, you should always download and install "master" version, which is compatible with all supported versions. Release branches are not supported and may be outdated.
  • <translate> [[<tvar name=2>Special:ExtensionDistributor/TwitterTag/pl</tvar>|Download]] and move the extracted <tvar name=name>TwitterTag/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/TwitterTag%2Fpl
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'TwitterTag/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>

Użycie

Currently the extension supports individual tweets, profile timeline and list timeline. Likes timelines were deprecated by Twitter on January 13, 2023. Pages containing them are added to a tracking category since version 1.2.1.

To add a tweet, use following code: ‎<twitter screen-name="screen_name" tweet-id="tweet_id" />

To add a profile timeline, use following code: ‎<twitter screen-name="screen_name" />

To add a list timeline, use following code: ‎<twitter screen-name="screen_name" list-slug="list_slug" />

Alternatively, full URL can be provided using parameter href=.

Most parameters provided by Twitter, such as height=, width=, and lang=, are supported.