Erweiterung:LightGallery
Appearance
From mediawiki.org
This page is a translated version of the page Extension:LightGallery and the translation is 64% complete.
Freigabestatus: stabil |
|
|---|---|
| Einbindung | Benutzer-Schnittstelle |
| Beschreibung | A simple and fancy FancyBox alternative |
| Autor(en) | Nikolay Filippov (Soljkd Diskussion ) |
| Letzte Version | 0.0.2 (2019年06月07日) |
| MediaWiki | 1.25+ |
|
|
| Licence | nur GNU General Public License 3.0 |
| Herunterladen | GitHub:
Hinweis: |
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
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
LightGalleryim Ordnerextensions/ablegen. - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
require_once "$IP/extensions/LightGallery/LightGallery.php";
- Yes Erledigt – Navigiere zu
Special:Versionin deinem Wiki, um zu überprüfen, ob die Erweiterung erfolgreich installiert wurde.
Konfiguration
You can set LightGallery options by setting a $lgLightGalleryOptions variable in LocalSettings.php after including the extension in LocalSettings.php.
- Beispiel
require_once "$IP/extensions/LightGallery/LightGallery.php"; $lgLightGalleryOptions = '{thumbnail: true, mode: "lg-fade", getCaptionFromTitleOrAlt: true, subHtmlSelectorRelative: true, animateThumb: false, showThumbByDefault: false }';
Verwendung
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>
Benutzerrechte
This project includes LightGallery is licensed under GPLv3 GNU GPL license v3 license.