Extension:AmazonPartnerLink

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
AmazonPartnerLink
Release status: unmaintained
Implementation Tag
Description This extension will allow you to put Amazon Book Links in your MediaWiki.
Author(s) Roman Lehnert, Bradford Knowlton, David Raison, Jeroen De Dauw
Latest version 0.2 (2010-9-8)
MediaWiki 1.6+
License No license specified
Download Template:WikimediaDownload/svn
Hooks used
ParserFirstCallInit
User
Translate the AmazonPartnerLink extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do for you?[edit]

It provides MediaWiki with the possibility to create Amazon Partnernet links

Setup[edit]

Download[edit]

You can download the code directly via SVN from the MediaWiki source code repository, at http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/AmazonPartnerLink/. From a command line, you can call the following:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/AmazonPartnerLink/

Installation[edit]

Place the AmazonPartnerLink directory within the main MediaWiki 'extensions' directory. Then, in the file LocalSettings.php in the main MediaWiki directory, add the following line:

include_once("$IP/extensions/AmazonPartnerLink/AmazonPartnerLink.php");

Usage[edit]

  • <amazon>978-3817118076</amazon> or <amazon>3817118074</amazon>

Both of them will give a direct link to the book at Amazon, like ISBN: 3817118074. It does not matter if the ISBN number is given as ISBN-10, ISBN-13 or contains "-".


  • <amazon>3817118074 Regelungstechnik</amazon>

This also creates a direct link to the book at Amazon, but it also creates a description of the book is used as Linktext: Regelungstechnik


  • <amazon>Halliday Physik</amazon>

In case that you don't know the ISBN number of the book and are too lazy to look for it, you can simply put the name as the parameter. The Amazon link will point to the search-result for your given name. In our example: Halliday Physik