Extension:TwitterTag/pl
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
- <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.
- TwitterTag-example-tweet.png
Examples of tweets
- TwitterTag-example-profiletimeline.png
Examples of profile timelines
- TwitterTag-example-listtimeline.png
Examples of list timelines
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions/pl
- Tag extensions/pl
- Extensions with manual MediaWiki version
- Extensions with no license specified/pl
- Extensions in Wikimedia version control/pl
- All extensions/pl
- Extensions not in ExtensionJson
- Twitter extensions/pl
- Extensions by Fandom/pl