Extension:LightGallery/zh
Appearance
发行状态: 稳定版 |
|
|---|---|
| 实现 | 用户界面 |
| 描述 | A simple and fancy FancyBox alternative |
| 作者 | Nikolay Filippov (Soljkd留言) |
| 最新版本 | 0.0.2 (2019-06-07) |
| MediaWiki | 1.25+ |
| 许可协议 | 僅限GNU通用公眾授權條款3.0 |
| 下載 | |
|
|
|
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.
