GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Extension:FlickrAPI - MediaWiki

MediaWiki extensions manual
FlickrAPI
Release status: beta
Implementation Tag
Description Embeds Flickr images
Author(s) Ike Hecht, Sam Wilson
Latest version 2.0.2 (July 2021)
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35
Database changes No
Parameters
  • $wgFlickrAPIDefaults
  • $wgFlickrAPISecret
  • $wgFlickrAPIKey
Hooks used
  • ParserFirstCallInit
Licence GNU General Public License 2.0 or later
Download
Download extension
Git [?]:
  • Browse repository (GitHub)
  • Gerrit code review
  • Git commit log
  • Download source tarball
Translate the FlickrAPI extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

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 configuration variables have changed. It uses the phpFlickr library.

This extension was created for WikiWorks.

Installation

  • Download and move the extracted FlickrAPI folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/FlickrAPI
    
  • Only when installing from Git, run Composer to install PHP dependencies, by issuing composer install --no-dev in the extension directory. (See T173141 for potential complications.)
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'FlickrAPI' );
    $wgFlickrAPIKey = ' /*FLICKR API KEY HERE*/ ';
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Note Note: You'll need an API key from Flickr. Get it here.

When installing from Git, please note that this extension requires Composer.

So, after installation from git, add the line "extensions/FlickrAPI/composer.json" to the "composer.local.json" file in the root directory of your wiki like e.g.

{
	"extra": {
		"merge-plugin": {
			"include": [
				"extensions/FlickrAPI/composer.json"
			]
		}
	}
}
Now run composer update --no-dev from the top level of your MediaWiki installation.

Configuration

Name Required? Description Default
$wgFlickrAPIKey Required Your Flickr API key goes here.
$wgFlickrAPISecret Optional The API secret from Flickr. This is optional and right now it probably doesn't do anything.
$wgFlickrAPIDefaults Optional Array that contains the default values for the extension for when the ‎<flickr> call does not specify certain options. [ 'type' => 'frameless', 'location' => 'right', 'size' => '-' ];

Usage

Embed a Flickr image using the tag: <flickr>id|type|location|size|caption</flickr>

The only mandatory parameter is id. The others can be omitted and the defaults will be applied from $wgFlickrAPIDefaults.

Name Description
id The Flickr ID of this photo.
type The display type. This can be set to: thumb, frame or frameless.
location The horizontal alignment. This can be set to: right, left, center or none.
size The size to use for the image. This can be set to: s, t, m, - or b. 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 frameless.

See also

  • Extension:FlickrImporter
  • Extension:CloudImage
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:FlickrAPI&oldid=8556752"
Categories:
  • Beta status extensions
  • Tag extensions
  • ParserFirstCallInit extensions
  • GPL licensed extensions
  • Extensions in Wikimedia version control
  • All extensions
  • Extensions requiring Composer with git
  • Unmaintained extensions
  • Image extensions
  • Flickr extensions
Hidden categories:
  • Extensions without an image
  • Extensions with long-term support release branches compatibility policy
  • Extensions with manual MediaWiki version
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.