Difference between revisions of "Widget:Flickr"

From Nottinghack Wiki
Jump to navigation Jump to search
(added thumbnail size parameters)
(added userId parameter and documented it along with the photoset parameter)
Line 11: Line 11:
  
 
=== Parameters ===
 
=== Parameters ===
 +
;userId
 +
:Flickr user id - to display all albums for the specified user. You can find the appropriate value using [http://idgettr.com/ idgettr.com].
 +
 +
;photoset
 +
:Flickr photoset id - to display only the specified photoset, this takes precedence over the <code>userId</code>. You can find the appropriate value using [http://idgettr.com/ idgettr.com].
 +
 
;thumbnailHeight
 
;thumbnailHeight
Thumbnails height in pixels. Default: <code>154</code>
+
:Thumbnails height in pixels. Default: <code>154</code>
  
 
;thumbnailWidth
 
;thumbnailWidth
Thumbnails width in pixels. Default: <code>300</code>
+
:Thumbnails width in pixels. Default: <code>300</code>
  
 
;colorScheme
 
;colorScheme
: Gallery colour scheme (breadcrumb and thumbnails). Possible values: <code>none</code>, <code>dark</code>, <code>darkRed</code>, <code>darkGreen</code>, <code>darkBlue</code>, <code>darkOrange</code>, <code>light</code> and <code>lightBackground</code>. Default: <code>none</code>
+
:Gallery colour scheme (breadcrumb and thumbnails). Possible values: <code>none</code>, <code>dark</code>, <code>darkRed</code>, <code>darkGreen</code>, <code>darkBlue</code>, <code>darkOrange</code>, <code>light</code> and <code>lightBackground</code>. Default: <code>none</code>
  
 
== Example ==
 
== Example ==
Line 38: Line 44:
 
         kind:'flickr',
 
         kind:'flickr',
 
         photoset:'<!--{$photoset|escape:'quotes'}-->',
 
         photoset:'<!--{$photoset|escape:'quotes'}-->',
 +
        userID:'<!--{$userId|escape:'quotes'}-->',
 
         thumbnailHeight:'<!--{$thumbnailHeight|escape:'quotes'|default:154}-->',
 
         thumbnailHeight:'<!--{$thumbnailHeight|escape:'quotes'|default:154}-->',
 
         thumbnailWidth:'<!--{$thumbnailWidth|escape:'quotes'|default:230}-->',
 
         thumbnailWidth:'<!--{$thumbnailWidth|escape:'quotes'|default:230}-->',

Revision as of 23:42, 10 June 2014

This widget embeds a gallery of images from flickr into a wiki page. It uses the nanoGALLERY image gallery.

Using this widget

You can insert a gallery with the following wiki code:

{{#widget:Flickr|photoset=72157626706422487}}


Parameters

userId
Flickr user id - to display all albums for the specified user. You can find the appropriate value using idgettr.com.
photoset
Flickr photoset id - to display only the specified photoset, this takes precedence over the userId. You can find the appropriate value using idgettr.com.
thumbnailHeight
Thumbnails height in pixels. Default: 154
thumbnailWidth
Thumbnails width in pixels. Default: 300
colorScheme
Gallery colour scheme (breadcrumb and thumbnails). Possible values: none, dark, darkRed, darkGreen, darkBlue, darkOrange, light and lightBackground. Default: none

Example