Extension:AmazonPartnerLink

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manual
Crystal Clear action run.png
AmazonPartnerLink

Release status: beta

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; code metrics

What can this extension do for you?[edit | edit source]

It provides MediaWiki with the possibility to create Amazon Partnernet links

Setup[edit | edit source]

Download[edit | edit source]

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 | edit source]

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 | edit source]

  • <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