Jump to content

Extension:TwitterWidget

From mediawiki.org
MediaWiki extensions manual
TwitterWidget
Release status: unmaintained
Implementation Tag
Description Embed a Twitter timeline widget
Author(s) JesĂşs MartĂ­nez (Ciencia Al Podertalk)
Latest version 2.0.1 (2022-10-29)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.39
License MIT License
Download

The TwitterWidget extension adds a tag to embed an X (formerly Twitter) timeline widget.

Note that timeline widgets are broken, not displaying anything or displaying old posts, since mid-2023. This is caused by the X platform itself and there's no workaround to that, which makes this extension useless, unless used as an example.

Installation

[edit]
  • Download and place the file(s) in a directory called TwitterWidget in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'TwitterWidget' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage

[edit]

You can use this to place a Twitter widget on a page:

<twitter account="TwitterDev" />

The account parameter is mandatory, which should be the Twitter account name you want to display.

Other recognized parameters:

lang, show-replies, chrome, theme, width, height, tweet-limit, link-color, border-color, aria-polite, dnt

More information: https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/parameter-reference

See also

[edit]