Extension:RoyalMailTrack

This simple extension adds a form to a MediaWiki page that allows direct querying of Royal Mail track and trace numbers (recorded delivery and special delivery). I created this as a way to directly check recorded items from our intranet, instead of having to visit http://www.royalmail.com/ first.

With a few tweaks this extension could be used to check Parcelforce items aswell, the differences in query being explained here http://www.royalmail.com/portal/rm/content1?catId=28000674&mediaId=28100668

Licensing
This extension was developed from the Google search extension which in turn was based on the PayPal extension. Although no license was specified for the Google extension, the PayPal extension was released under some form of GPL so I have (hopefully) done the right thing and used the GPLv3 license.

Compatibility
I've tested this only on my own wiki which is running MediaWiki 1.12.0rc1, PHP 5.2.5 (apache2handler) & MySQL 5.0.51a so can't vouch for its compatibility with any other versions.

Installation

 * Create a new file named RoyalMailTrack.php in your MediaWiki extensions folder
 * Add the following code:

Code

 * Add the following line to LocalSettings.php


 * You can then add a Royal Mail track and trace form to any page by including the following tags