Extension:JQuerySnowfall
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
![]() Release status: unmaintained |
|
---|---|
Implementation | Tag |
Description | Allows to make it snow on MediaWiki with the JQuery-Snowfall plugin |
Author(s) | Nikus Pokus |
Latest version | 1.0 |
MediaWiki | |
Database changes | No |
License | GNU Affero General Public License 3.0 |
Download | GitHub: Note: |
This extension makes it snow on MediaWiki web pages with the JQuery-Snowfall plugin.
InstallationEdit
- Download and place the file(s) in a directory called
JQuerySnowfall
in yourextensions/
folder. - Add the following code at the bottom of your
LocalSettings.php
:wfLoadExtension( 'JQuerySnowfall' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
ConfigurationEdit
Flake images instead of white dotsEdit
The JQuery-Snowfall plugin supports the use of images for the flakes.
To use an image for the flakes, edit the file "extensions/JQuerySnowfall/init.js"
:
// comment the following line
//$(document).snowfall();
// add the following line
$(document).snowfall({image :"https://mywiki.domain.net/images/1/11/Flake.png", minSize: 10, maxSize:32});
You can use the flake image located in extensions/JQuerySnowfall/JQuery-Snowfall/images/flake.png
:
- import the image in your MediaWiki web site
- use the url of the imported image
The JQuery-Snowfall pluginEdit
This extension is bundled with JQuery-Snowfall version 1.7.4
If you want a different version of the JQuery-Snowfall plugin:
- go on the GitHub repository of the project and download it.
- remove or rename the
extensions/JQuerySnowfall/JQuery-Snowfall
folder. - unarchive the custom package in
extensions/JQuerySnowfall
. You should have a fresh newextensions/JQuerySnowfall/JQuery-Snowfall
folder.