Extension:Flickr

What can this extension do?
This extension displays images from Flickr. Upload your photos to Flickr and then share them in your wiki!

Actually there are some reasons for wanting to use this:


 * 1) bandwidth
 * 2) centralised storage
 * 3) share the comments and your other photos with your wiki visitors

Flickr API Key
To use the Flickr API, you need a key. Your type of key will depend on whether you are using the key for commercial or non-commercial purposes and is unique to you. Unfortunately I cannot distribute mine with the code as the API has its own terms of use and obviously I can only vouch for myself.

To get your API key, apply for a key online. I can't remember the full details but I do remember it didn't take long to get my key.

Installation
This code does not require PHPFlickr or PEAR unlike other Flickr extensions.

Add this line at the end of LocalSettings.php:

Copy the following code into extensions/Flickr.php:

That's it. Please contact me if you have any questions or would like assistance in using this.

Download
Alternatively you can download the file from the link here.

Basic Usage
Usage is basically as follows :  {photoid}|{type}|{location}|{size}|{caption} 

Where:

 {photoid}  is the Flickr photo ID. This is the only compulsory parameter. All others are optional and will be detected automatically. Anything which isn't detected as on another parameter will be classified as part of the caption.

 {type}  is the image type as per this page (so 'thumb' / 'thumbnail' or 'frame' or nothing). Defaults to nothing.

 {location}  is the location as per this page (so 'right', 'left', 'center' or 'none'). Defaults to 'right'.

 {size}  is the size as per this page. Defaults to medium.

and  {caption}  is an image title. If left blank or not set then defaults to title of image from Flickr.

Examples and More Information
See Extended Flickr Extension Syntax for further examples and more information.

Changes to this code
To anyone who changes this code - the main page for this extension does not reside on MediaWiki.org - it is at http://wiki.edsimpson.co.uk/index.php/Flickr_Extension. Therefore please make all changes there.