Extension:LightGallery/zh

This page is a translated version of the page Extension:LightGallery and the translation is 9% complete.
MediaWiki扩展手册
LightGallery
发行状态: 稳定版
实现 用户界面
描述 A simple and fancy FancyBox alternative
作者 Nikolay Filippov (Soljkd留言)
最新版本 0.0.2 (2019-06-07)
MediaWiki 1.25+
许可协议 僅限GNU通用公眾授權條款3.0
下載

  • $lgLightGalleryOptions

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.

  • 下载文件,并将其放置在您extensions/文件夹中的LightGallery目录内。
  • 将下列代码放置在您的LocalSettings.php 的底部:
    require_once "$IP/extensions/LightGallery/LightGallery.php";
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

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.