Extension:PicLens

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
PicLens

Release status: stable

Implementation Special page, Tag, MyWiki
Description Media RSS support for gallery tag, and PicLens integration
Version 1.0-SNAPSHOT
MediaWiki 1.11.x, 1.12.0
Download here
Parameters $wgMediaRssLogo
Example exemple 1
Hooks used BeforePageDisplay

ParserAfterStrip

Contents

[edit] What can this extension do?

This extension add support to Mediawiki standart <gallery /> tag. That is to say to generate Media RSS content from article that contains such tag(s). It make you able to add a RSS Media link to article that does not have gallery with a special comment. It also allows PicLens plugin use with such RSS with a particular tag.

[edit] Usage

[edit] Download instructions

You can download extension from there.

[edit] Installation

  1. Extract extension
  2. Move PicLens to your extensions directory
  3. Copy LocalSettings.part content into your LocalSettings.php :
/* If you want custom MediaRSS logo, displayed in PicLens topbar
global $wgMediaRssLogo;
$wgMediaRssLogo = "{$wgScriptPath}/logo_height26px.png";
*/
require_once( "$IP/extensions/PicLens/PicLens.setup.php" );

[edit] Configuration parameters

  • $wgMediaRssLogo specify an image file that can be used as Media RSS icon. This is displayed in PicLens topbar.

[edit] Synopsis

[edit] Article with gallery tag

From article you add some gallery, you can launch PicLens plugin with button added in your browser personnal bar.

You can also add a JavaScript link in your article with a tag provided by this extension :

<picLensLauncher>My launch text</picLensLauncher>

… which will display such HTML content :

<a href="#" onclick="javascript:PicLensLite.start();" class="picLensLauncher" title="PicLensLite">My launch text</a>

JavaScript object PicLensLite is maid available by an head script also automatically provided by this extension.

With generated html attribute class="picLensLauncher" you can customize this link with some CSS selector.

[edit] Other article

If you can to add a Media RSS to an article that does not use any gallery, you can do it with the special comment <!-- PicLensRSS: url -->.

You just have to replace url by an absolute (<!-- PicLensRSS: http://www.mysite.com/photo.rss -->) or by another wiki article that contains <gallery /> tag(s) (<!-- PicLensRSS: OtherArticleWithGallery -->).

Personal tools
In other languages