Contents

MediaWiki Extensions

The following extensions form the basic set which we recommend for MediaWiki projects. For further information email: joannamkay@gmail.com.


Add Article to Category

  • Download Add Article to Category Extension
  • Adds an inputbox (for create new article) to each category page.
  • New pages will include "" automatically.
  • Assists in maintaining searchability of the mediawiki by encouraging users to categorise their documents.

Installation

  1. Download the extension here
  2. Upload the articletocategory.php to your extensions/ directory.
  3. Add the following code to your LocalSettings.php file:
require_once("$IP/extensions/articletocategory.php");

Example




Article Comments

  • Provides a means for creating inline blog-like comment forms for regular wiki article.
  • Comments submitted by users appear on the Article's 'Talk' page.
  • See: ArticleComments

Installation

  1. Download ArticleComments, and be sure to rename the downloaded file to ArticleComments.php.
  2. Drop this script in $IP/extensions
  3. Enable the extension by adding this line to your LocalSettings.php:
require_once('extensions/ArticleComments.php');

Usage

Once installed, you (or editors of your wiki) may add comment forms to any article.

To do so, simply add this text to the body of your page where you'd like the comment form to appear:

<comments />

Additional info on advanced usage of this extension can be viewed on the Article Comments Project homepage.

Example

An example of the comment form is included below. You can view comments here.

Name (required):

Website:

Comment:




Bookmarking

  • Download the Bookmarking Extension here.
  • Adds social bookmarking links strip in to a page. Currently supports del.icio.us.

Installation

  1. Copy the code below in to a file named extensions/Bookmarking.php
  2. Create an icon with the name \common\images\delicious.gif
  3. Modify the text <your site> with the url of your site
  4. Modify the the text in the link that is created as you see fit. Take care not to change the \" characters.
  5. Add the following to your wiki's LocalSettings.php
require_once 'extensions/Bookmarking.php';

Usage

Enter the code <bookmarking></bookmarking> where you want the bookmark strip to appear.

Example

Add to your del.icio.us Add this article to your del.icio.us account!




Breadcrumbs

  • Shows the users path through the wiki in the title area of each article (page).
  • Provides last 5 links visited to enable easier navigation throughout the wiki.
  • See: Breadcrumbs

Installation

  1. Download the latest snapshot and extract it to your extensions directory
  2. Add 'require_once("$IP/extensions/BreadCrumbs/BreadCrumbs.php");' into your wiki's LocalSettings.php file.

Example

  • Currently installed on this wiki.




CategorySuggest

  • Download Category Suggest Extension
  • Adds input box to edit and upload page which allows users to assign categories to the article.
  • Provides category suggestions from the database based on user input.

Installation

  1. unzip the zip place the files into the extensions folder: $IP/extensions/CategorySuggest/.
  2. Add the following to LocalSettings.php
require_once("$IP/extensions/CategorySuggest/CategorySuggest.php");

Example

  • Currently installed on this wiki. View any 'edit page' to see in action.




FCKEdit

  • Adds Wysiwyg editor to Mediawiki for easier text formating etc. Edit a page on this wiki to see FCKEdit in action.
  • See: FCKEdit for further information.
  • To install follow the FCKeditor Integration Guide

Example

Image:Fckedit.jpg

  • FCKEdit is currently installed on this wiki.




FlashMP3

  • Adds a simple Flash-player for playback of mp3-files
  • See: FlashMP3

Installation Instructions:

  1. Copy & paste the code available @ FlashMP3 in a file called flashmp3.php and place it in your extensions directory of your MediaWiki folder.
  2. Download the Audio Player plugin from 1pixelout. From the zip-archive copy the files audio-player.js and player.swf in a new folder called audio_player in your extensions directory.
  3. Put this line near the end of your LocalSettings.php in the MediaWiki root folder to include the extension. 'require_once('extensions/flashmp3.php');'

Allow file uploads:

To be able to upload mp3-files to your MediaWiki also do the following steps:

  1. Allow uploading of mp3-files by adding this line near the end of your LocalSettings.php. '$wgFileExtensions[] = 'mp3';
  2. Set the maximum size for file uploads in your php.ini.
  3. Set the maximum size for file uploads by adding this line to your LocalSettings.php. '$wgMaxUploadSize = '50MB';'

Example




FLVPlayer

  • Allows the display of flv movies within a wiki article
  • FLVPlayer

Installation

  1. Download the latest version of the code
  2. Copy the code into a file named FLVPlayer.php
  3. Save the file in the extensions/flvplayer directory of your mediawiki folder
  4. Add the line include('extensions/flvplayer/FLVPlayer.php'); to the end of your LocalSettings.php file (The name of your file is case sensitive!)
  5. Download the latest Flowplayer file from sourceforge.net (not newer than 1.8)
  6. Extract FlowPlayer.swf from the zip file and place it in the extensions/flvplayer directory of your mediawiki folder

Allow file uploads

To be able to upload flv-files to your MediaWiki also do the following steps:

  1. Allow uploading of mp3-files by adding this line near the end of your LocalSettings.php. '$wgFileExtensions[] = 'flv';'
  2. Set the maximum size for file uploads in your php.ini.
  3. Set the maximum size for file uploads by adding this line to your LocalSettings.php. '$wgMaxUploadSize = '50MB';'

Example




SimpleFeed

Installation

  1. Save SimpleFeed.php to extensions/ and make sure the server has permission to read it.
  2. Save simplepie.inc to extensions/.
  3. Create extensions/cache, set correct write permissions using chmod (www-user, or equivalent, should be allowed to write).
  4. Add include("./extensions/SimpleFeed.php"); to the last line of LocalSettings.php before the end ?>.
  5. If you are in a corporate environment, check out any proxy servers or firewalls.

Usage

There are two arbitrary fields that must be present. These are the url argument, and the content between the <feed>[...]</feed> tags. A simple example is shown below:

<feed url="http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml">
== [{PERMALINK} {TITLE}] ==
'''{DATE}, by {AUTHOR}'''
{DESCRIPTION}
</feed>

This will pull the BBC News feed and output five posts. For every post, it will output the data between the feed tags, replacing {PERMALINK}, {TITLE}, {DATE}, {AUTHOR} and {DESCRIPTION} with the appropriate information.

Example




Skype

  • Download the Skype Extension here.
  • Adds a Skype Me button to an article (page)
  • Useful for providing clear contacts and discussion channels

Installation

  1. Copy the Skype Extension Code into a file (e.g. skype.php)
  2. Save the file in the extensions directory of your MediaWiki folder
  3. Add the line require_once('extensions/skype.php'); to the end of your LocalSettings.php file

Usage

  • Add a Skype button by including the line:  <skype>Skype-Username</skype> in the wiki.
  • Additional syntax for usage is available on the Skype Extension page.

Example

My status




SpamBlacklist

Installation

The extension might work with MediaWiki version 1.6.0 or greater.

  1. Save the SpamBlacklist files to a subdirectory called SpamBlacklist in your extensions directory. 
  2. Add the following line to LocalSettings.php in your MediaWiki root directory:
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );

The primary source for a MediaWiki-compatible blacklist file is the Wikimedia spam blacklist on Meta-Wiki, at http://meta.wikimedia.org/wiki/Spam_blacklist. The default configuration loads this list once every 10-15 minutes. However, the Wikimedia spam blacklist can only be edited by trusted administrators.For information on creating Custom Black and White lists visit the SpamBlacklist Extension page.

Example

  • Currently installed on this wiki.




YouTube

  • Download the Youtube Extension
  • Allows for direct embedding of YouTube videos in MediaWiki articles

Installation

  1. Copy the Youtube Extension code to extensions/YouTube.php
  2. Add the following line to LocalSettings.php in your MediaWiki root directory:
require_once('extensions/YouTube.php');

Usage

To add the link in the wiki: <youtube>FileNameOfYouTubeVideo</youtube>

Example




Additional MediaWiki Extensions

We are currently exploring the following extensions, and may recommend installation in the near future: