Extension:TwitterCards

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
TwitterCards
Release status: experimentalCategory:Experimental extensions
Implementation Parser extension Category:Parser extensions, User interfaceCategory:User interface extensions
Description Adds meta tags to enable Twitter cards on MediaWiki.
Author(s) Harsh Kothari and Kunal Mehta
Latest version 0.2 (2017-10-30)
MediaWiki 1.23+Category:Extensions with manual MediaWiki version
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgTwitterCardsHandle
  • $wgTwitterCardsPreferOG
Quarterly downloads 1 (Ranked 115th)
Public wikis using 5,686 (Ranked 55th)
Translate the TwitterCards extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

The TwitterCards extension adds meta tags to enable Twitter cards on MediaWiki. It requires that the TextExtracts extension is installed.

About Twitter cards

Twitter describes this feature like this:

“Twitter cards make it possible for you to attach media experiences to Tweets that link to your content. Simply add a few lines of HTML to your webpages, and users who Tweet links to your content will have a "card" added to the Tweet that’s visible to all of their followers. It would be really nice for articles, images, videos - everything linked from Wikimedia on Twitter could have a nice little preview on Twitter. The documentation is at Twitter cards - basically it involves adding some meta tags around existing content server-side.”

Installation

  • Download and move the extracted TwitterCards folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TwitterCards
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'TwitterCards' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Resources

Category:Twitter extensions
Category:All extensions Category:BeforePageDisplay extensions Category:Experimental extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Parser extensions Category:Twitter extensions Category:User interface extensions