Extension:LightGallery/zh

This page is a translated version of the page Extension:LightGallery and the translation is 9% complete.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎русский • ‎中文 • ‎日本語
MediaWiki擴充功能手冊
OOjs UI icon advanced.svg
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.

Installation

  • 下载文件,并将其放置在您extensions/文件夹中的LightGallery目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/LightGallery/LightGallery.php";
    
  •   完成 – 在您的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.