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
- Download the extension here
- Upload the articletocategory.php to your extensions/ directory.
- Add the following code to your LocalSettings.php file:
require_once("$IP/extensions/articletocategory.php");
Example
- View the 'Working Files' Category Page to see an example of this extension in action.
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
- Download ArticleComments, and be sure to rename the downloaded file to ArticleComments.php.
- Drop this script in $IP/extensions
- 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.
Bookmarking
- Download the Bookmarking Extension here.
- Adds social bookmarking links strip in to a page. Currently supports del.icio.us.
Installation
- Copy the code below in to a file named extensions/Bookmarking.php
- Create an icon with the name \common\images\delicious.gif
- Modify the text <your site> with the url of your site
- Modify the the text in the link that is created as you see fit. Take care not to change the \" characters.
- 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 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
- Download the latest snapshot and extract it to your extensions directory
- 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
- unzip the zip place the files into the extensions folder: $IP/extensions/CategorySuggest/.
- 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
- FCKEdit is currently installed on this wiki.
FlashMP3
- Adds a simple Flash-player for playback of mp3-files
- See: FlashMP3
Installation Instructions:
- Copy & paste the code available @ FlashMP3 in a file called flashmp3.php and place it in your extensions directory of your MediaWiki folder.
- 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.
- 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:
- Allow uploading of mp3-files by adding this line near the end of your LocalSettings.php. '$wgFileExtensions[] = 'mp3';
- Set the maximum size for file uploads in your php.ini.
- 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
- Download the latest version of the code
- Copy the code into a file named FLVPlayer.php
- Save the file in the extensions/flvplayer directory of your mediawiki folder
- Add the line
include('extensions/flvplayer/FLVPlayer.php');to the end of your LocalSettings.php file (The name of your file is case sensitive!) - Download the latest Flowplayer file from sourceforge.net (not newer than 1.8)
- 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:
- Allow uploading of mp3-files by adding this line near the end of your LocalSettings.php. '$wgFileExtensions[] = 'flv';'
- Set the maximum size for file uploads in your php.ini.
- Set the maximum size for file uploads by adding this line to your LocalSettings.php. '$wgMaxUploadSize = '50MB';'
Example
SimpleFeed
- Allows users to include a simple rss feed in a mediawiki page.
- Download the SimpleFeed Instructions here.
- Note: The instance below is using a modified CSS file. For further info contact joannamkay@gmail.com
- Additional Customisation options is available on the SimpleFeed extention homepage.
Installation
- Save SimpleFeed.php to extensions/ and make sure the server has permission to read it.
- Save simplepie.inc to extensions/.
- Create extensions/cache, set correct write permissions using chmod (www-user, or equivalent, should be allowed to write).
- Add include("./extensions/SimpleFeed.php"); to the last line of LocalSettings.php before the end ?>.
- 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
- An example using the feed from the jokaydia.com blog is included here.
Skype
- Download the Skype Extension here.
- Adds a Skype Me button to an article (page)
- Useful for providing clear contacts and discussion channels
Installation
- Copy the Skype Extension Code into a file (e.g. skype.php)
- Save the file in the extensions directory of your MediaWiki folder
- 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
SpamBlacklist
- Download the SpamBlacklist files here.
- Prevents edits that contain URL hosts that match regular expression patterns defined in specified files or wiki pages
- 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
Installation
The extension might work with MediaWiki version 1.6.0 or greater.
- Save the SpamBlacklist files to a subdirectory called SpamBlacklist in your extensions directory.
- 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
- Copy the Youtube Extension code to extensions/YouTube.php
- 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:

