Difference between revisions of "Nottinghack Wiki:Flickr gallery old version"

From Nottinghack Wiki
Jump to navigation Jump to search
(Trying to fix height to stop pages with galleries from jumping around when loading)
(Widget (defunct))
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>This widget embeds a gallery of images from [http://www.flickr.com/ flickr] into a wiki page.  It uses the [http://www.kishnel.com/kishlery/ Kishlery] javascript gallery.
+
Old version of [[Widget:Flickr]] (see history, move to 'Nottinghack Wiki' [[namespace]] to avoid confusion).
  
== Using this widget ==
+
[[Category:Widget (defunct)]]
You can insert a gallery with the following wiki code:
 
 
 
<nowiki>{{#widget:Flickr gallery|mode=user|id=49386198@N04}}</nowiki>
 
 
 
You can find the <code>id</code> value by using [http://idgettr.com/ idgettr.com].
 
 
 
=== Parameters ===
 
;mode
 
: Indicates how photos should be requested from flickr.  The accepted values are: <code>user</code>, <code>group</code>, <code>photoset</code>, or <code>folder</code>
 
;id
 
: The ID used to request images from flickr.  Depending on your selected '''mode''', you should enter the user id, group id, or photoset id.  You can find the appropriate value using [http://idgettr.com/ idgettr.com].
 
;sort
 
: The order to display the images.  Accepted values are: <code>date-posted-asc</code>, <code>date-posted-desc</code>, <code>date-taken-asc</code>, <code>date-taken-desc</code>, <code>interestingness-desc</code>, <code>interestingness-asc</code>, <code>relevance</code>
 
;tags
 
: A space-separated list of tags to search for when retrieving images.  An image is included in the gallery if it contains any of the listed tags.  This parameter only works when the '''mode''' is set to <code>user</code> or <code>group</code>.
 
;maxSize
 
: The size of the images displayed in the gallery, specified in pixels.  The aspect ratio of each photo is preserved, and the image is scaled down so its width and height are less than maxSize.  Default: <code>300</code>.
 
;limit
 
: The maximum number of photos to retrieve.  Default: <code>30</code>
 
 
 
== Example ==
 
{{#widget:Flickr gallery|mode=user|id=49386198@N04}}
 
 
 
</noinclude><includeonly><!-- Kishlery code starts here -->
 
<!--{counter name="kishleryDivID" assign="kishleryDivID"}--><!--{if $kishleryDivID == 1}--><script type="text/javascript" src="http://www.kishnel.com/kishlery/js/global.js"></script>
 
<!--{/if}--><div id="kishlery<!--{$kishleryDivID|escape:'html'}-->" class="KLmainContainer" style="height:442px"></div>
 
<script type="text/javascript">
 
var myKishlery = new Kishlery('kishlery<!--{$kishleryDivID|escape:'quotes'}-->', {
 
mode: '<!--{$mode|escape:'quotes'}-->',
 
id: '<!--{$id|escape:'quotes'}-->',
 
limit: '30',
 
tags: '<!--{$tags|escape:'quotes'}-->',
 
maxSize: '<!--{$maxSize|escape:'quotes'|default:300}-->',
 
forceHeight: true,
 
linkToFlickr: true,
 
showOwner: true,
 
showTitle: true,
 
showButtons: true,
 
showThumbnails: true,
 
showMosaic: true,
 
activateKeyboard: false,
 
singleMode: false,
 
sort: '<!--{$id|escape:'sort'|default:'date-posted-asc'}-->',
 
showMosaicImmediately: false,
 
playImmediately: false,
 
centeringMargin: true,
 
showLog: false,
 
quickView: true,
 
bigMosaic: true,
 
showFooter: true
 
});
 
</script>
 
<!-- Kishlery code ends here --></includeonly>
 

Latest revision as of 15:23, 11 December 2019

Old version of Widget:Flickr (see history, move to 'Nottinghack Wiki' namespace to avoid confusion).