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

From Nottinghack Wiki
Jump to navigation Jump to search
m (Superseded by Widget:Flickr - Redirect rather than delete to maintain the history)
Line 1: Line 1:
<noinclude>
+
#REDIRECT [[Widget:Flickr]]
{{info|This widget is no longer supported and will be removed, please use [[Widget:Flickr]] instead. [[User:Robert|Robert]] ([[User talk:Robert|talk]]) 00:21, 11 June 2014 (UTC) }}
 
{{delete|reason=Widget superseded, no pages link here.|date=April 2019}}
 
 
 
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 ==
 
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}}
 
[[Category:Widget]]
 
</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 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>
 

Revision as of 23:11, 26 April 2019

Redirect to: