Extension:IAnnWidget

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
iAnnWidget
Release status: beta
Implementation Tag
Description Lets you embed the iAnn stream 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 GPLv2
Download
README
Example gmod.org
Tags
<iannwidget>
Hooks used
ParserFirstCallInit
Translate the IAnnWidget extension if it is available at translatewiki.net
Check usage and version matrix.

The IAnnWidget extension let you embed the iAnn stream in your wiki.

Installation[edit]

  • Download and place the file(s) in a directory called IAnnWidget in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/IAnnWidget/IAnnWidget.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 as an iFrame (it is iFrame-based).

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

  • width (default "720") : The width of the widget
  • height (default "700") : The height of the widget
  • scrolling (default "auto") : ["auto" / "yes" / "no"] for enabling / disabling the scrolling.
  • frameborder (default "0") : ["1" / "0"] for enabling / disabling the frameborder

Troubleshooting[edit]

iAnn widget is an extremely simple extension; all it does is convert an "iannwidget" tag into an "" tag, with the stream of iAnn (http://iann.pro/node/15). There is default values to prevent errors from the users.

Wiki Compatibility[edit]

iAnn Widget 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 iAnn widget will work on earlier versions of MediaWiki. Another way to do it is this method : http://iann.pro/node/6

Changelog[edit]

v0.1 : Inital version