Extension:TwitterTag/pl
![]() Status wydania: stabilne |
|
---|---|
Realizacja | Tag |
Autor(zy) | Mikko Miettinen Original version: |
Ostatnia wersja | 1.2.0 |
Polityka zgodności | Master maintains backward compatibility. |
MediaWiki | 1.27+ |
PHP | 7.1.0+ |
Licencja | GNU General Public License 3.0 or later |
Pobieranie | |
Przykład | Jedipedia |
<twitter /> |
|
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
- Pobierz i umieść plik(i) w katalogu o nazwie
TwitterTag
w folderzeextensions/
. - Dodaj poniższy kod na dole swojego pliku LocalSettings.php:
wfLoadExtension( 'TwitterTag' );
- Zrobione – Przejdź do Special:Version na swojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Użycie
Currently the extension supports individual tweets, profile timeline and list timeline. Additionally, likes timeline is currently supported, but will be deprecated by Twitter.
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" />
To add a likes timeline, use following code:
<twitter likes-screen-name="screen_name" />
Alternatively, full URL can be provided using parameter href=
.
Most parameters provided by Twitter, such as height=
, width=
, and lang=
, are supported.
-
Examples of tweets
-
Examples of profile timelines
-
Examples of list timelines
-
Examples of likes timelines