Snippets

Snippets are small pieces code to provide additional functionality whether interactive, visual or both.

Currently there are snippets in three categories. Some snippets could be in multiple.
 * JavaScript
 * CSS
 * PHP
 * Browse all snippets

How to use
You can use these snippets in extensions, existing scripts and any other place where jQuery is available and the page is ready for JavaScript manipulation.

Alternatively you can use them on your local wiki by using one of the on-wiki JavaScript pages:

You can use the following code-block to place snippets inside. This should work for any of the following:
 * MediaWiki:Common.js (everybody everywhere every skin)
 * MediaWiki:Vector.js (everybody everywhere vector skin)
 * (only people who have enabled this gadget)
 * (only for you)
 * Or, alternatively for the Developer, LocalSettings.php
 * Only one "document.ready" frame is needed!

For the developer
There are PHP snippets you put inside your wiki files like Premade User Groups (PUG).