Extension:LightGallery

Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
LightGallery
Release status: stableCategory:Stable extensions
Implementation User interfaceCategory:User interface extensions
Description A simple and fancy FancyBox alternative
Author(s) Nikolay Filippov (Soljkdtalk)
Latest version 0.0.2 (2019-06-07)
MediaWiki 1.25+Category:Extensions with manual MediaWiki version
License GNU General Public License 3.0 only
Download Category:Extensions in GitHub version control
  • $lgLightGalleryOptions
Category:All extensionsCategory:Extensions not in ExtensionJson

The LightGallery extension displays thumbnailed images in modal window that floats overtop of web page. This can create a more user friendly environment, where the user doesn't leave the page every time they click a thumbnail.

Installation

Configuration

You can set LightGallery options by setting a $lgLightGalleryOptions variable in LocalSettings.php after including the extension in LocalSettings.php.

Example
require_once "$IP/extensions/LightGallery/LightGallery.php";
$lgLightGalleryOptions = '{thumbnail: true, mode: "lg-fade", getCaptionFromTitleOrAlt: true, subHtmlSelectorRelative: true, animateThumb: false, showThumbByDefault: false }';

Usage

To initialize the gallery, use the class .LightGallery on your <gallery>.

<gallery class="LightGallery">
file:images1.png|desc
file:images2.png
file:images3.png
</gallery>

User rights

This project includes LightGallery is licensed under GPLv3 GNU GPL license v3 license.

Category:Image extensions
Category:All extensions Category:BeforePageDisplay extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Image extensions Category:Stable extensions Category:User interface extensions