Extension:JQuerySnowfall
Appearance
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. |
JQuerySnowfall 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.
Installation
[edit]- Download and move the extracted
JQuerySnowfall
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/JQuerySnowfall - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'JQuerySnowfall' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
[edit]Flake images instead of white dots
[edit]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
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.