Extension:FlickrAPI

The FlickrAPI allows you to embed Flickr images into your wiki. It is intended as a replacement for Extension:Flickr and is mostly backwards-compatible, but note that the globals have changed. It uses the phpFlickr library.

Installation

 * If downloading from git, you must run   from the   directory.
 * You'll need an API key from Flickr. Get it here.

Configuration parameters

 * $wgFlickrAPIKey - Required. Your Flickr API key goes here.
 * $wgFlickrAPISecret - The API secret from Flickr. This is optional and right now it probably doesn't do anything.
 * $wgFlickrAPICache - Set to  to enable caching. This option is highly recommended for better performance. Defaults to   unless $wgMainCacheType is set to   (which is the MediaWiki default). Note that if $wgUseFileCache is set to , the extension will use a file cache. Otherwise it will store the cache in the MediaWiki database.
 * $wgFlickrAPIDefaults - Array that contains the default values for the extension for when the  call does not specify certain options. Defaults to:

Usage
Embed a Flickr image using the tag:

The only mandatory parameter is id. The others can be omitted and the defaults will be applied from.
 * id: The Flickr ID of this photo.
 * type: The display type. This can be set to:,   or.
 * location: The horizontal alignment. This can be set to:,  ,   or.
 * size: The size to use for the image. This can be set to:,  ,  ,   or  . See this page for more info.
 * caption: The caption to display for the image. If omitted, the default caption will be the photo's title in Flickr. Note that no caption is ever displayed if type is set to.