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

From Nottinghack Wiki
Jump to navigation Jump to search
(Conflict between Mootools and jQuery broke the Flickr widget, isolated $ for gallery call)
(Widget (defunct))
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
Old version of [[Widget:Flickr]] (see history, move to 'Nottinghack Wiki' [[namespace]] to avoid confusion).
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.
 
  
== 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">
 
      var kishleryAppRoot = 'https://kishlery.appspot.com';
 
    </script>
 
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js"></script>
 
    <script type="text/javascript" src="https://kishlery.appspot.com/static/mootools-1.2.4.4-more.js"></script>
 
    <script type="text/javascript" src="https://kishlery.appspot.com/static/kishlery.js"></script>
 
  <!--{/if}-->
 
  <div id="kishlery<!--{$kishleryDivID|escape:'html'}-->" class="KLmainContainer" style="height:442px!important"></div>
 
 
 
  <script type="text/javascript">
 
    var _$ = $, $ = document.id;
 
    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: true,
 
      singleMode: false,
 
      sort: '<!--{$sort|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).