Extension:LightGallery/de-formal

From Linux Web Expert

MediaWiki extensions manual
LightGallery
Release status: stable
Implementation User interface
Description A simple and fancy FancyBox alternative
Author(s) Nikolay Filippov (Soljkdtalk)
Latest version 0.0.2 (2019-06-07)
MediaWiki 1.25+
License GNU General Public License 3.0 only
Download

  • $lgLightGalleryOptions
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

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

  • <translate> <tvar name=1>Download</tvar> and place the file(s) in a directory called <tvar name=name>LightGallery/de-formal</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    require_once "$IP/extensions/LightGallery/de-formal/LightGallery/de-formal.php";
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Konfiguration

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.