|
|
(23 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 -->
| |
| <script type="text/javascript" src="https://kishlery.appspot.com/static/global.js"></script>
| |
| <div id="kishlery" class="KLmainContainer"></div>
| |
| <script type="text/javascript">
| |
| var myKishlery = new Kishlery('kishlery', {
| |
| mode: 'photoset',
| |
| id: '72157600228207572',
| |
| limit: '30',
| |
| tags: '',
| |
| maxSize: '300',
| |
| forceHeight: true,
| |
| linkToFlickr: true,
| |
| showOwner: true,
| |
| showTitle: true,
| |
| showButtons: true,
| |
| showThumbnails: true,
| |
| showMosaic: true,
| |
| activateKeyboard: true,
| |
| singleMode: false,
| |
| sort: 'date-posted-desc',
| |
| showMosaicImmediately: false,
| |
| playImmediately: false,
| |
| centeringMargin: true,
| |
| showLog: false,
| |
| quickView: true,
| |
| bigMosaic: true,
| |
| showFooter: true
| |
| });
| |
| </script>
| |
| <!-- Kishlery code ends here -->
| |
| </includeonly>
| |
Old version of Widget:Flickr (see history, move to 'Nottinghack Wiki' namespace to avoid confusion).