Extension:StorifyWidget

From mediawiki.org
MediaWiki extensions manual
StorifyWidget
Release status: unmaintained
Implementation Tag
Description Lets you embed a story from Storify in your wiki
Author(s) Flavien Bossiaux (BFlavientalk)
Latest version 0.1 (2013-06-27)
MediaWiki 1.19+
PHP 5.4+
Database changes No
License GNU General Public License 2.0
Download
README
‎<storifywidget>

The StorifyWidget extension let you embed a story from Storify in your wiki.

Installation[edit]

  • Download and place the file(s) in a directory called StorifyWidget in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/StorifyWidget/StorifyWidget.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

Just insert the tag where you want the stream to appear.

You can configure it with the following parameters :

is the default values if you don't set them.

  • src : URI of the story you want to import (Doesn't work without it)

The URI needed is the URI of the story when it is full page : http://storify.com/[USERNAME]/[URI-ENCODED-TITLE-OF-THE-STORY]

ie : http://storify.com/torontostar/search-for-rusty-the-red-panda

  • width (default "32") : The width of the widget (em)
  • height (default "50") : The height of the widget (em)

Troubleshooting[edit]

Storify widget is an extremely simple extension; all it does is convert a "storifywidget" tag into the export link from Storify but add the possibility to set the width and height.

Wiki Compatibility[edit]

StorifyWidget uses ResourceLoader, which was introduced in MW 1.17. I only have access to a wiki running 1.19.2, so I cannot guarantee that StorifyWidget will work on earlier versions of MediaWiki. Another way to do it is to use the export link from Storify story.

Changelog[edit]

v0.1 : Inital version