Go to file
Kunal Mehta 597299bc45 build: Updating development dependencies
* grunt-jsonlint: 1.0.6 → 1.0.7

Change-Id: If699d7e782e9d31c7e05c9e6018a4374d5ffbf6b
2015-12-29 11:28:59 -08:00
api Add support for 'messages' and 'hidden' gadgets 2015-08-08 00:43:16 +00:00
i18n Localisation updates from https://translatewiki.net. 2015-12-28 21:02:16 +01:00
includes Bump MediaWikiGadgetsDefinitionRepo cache version 2015-12-08 16:21:34 -08:00
tests Implement Gadgets definition namespace repo 2015-11-20 12:01:21 -06:00
.gitignore Update Jenkins tests 2015-11-19 15:19:35 +01:00
.gitreview Add .gitreview file 2012-03-22 13:58:45 -07:00
.jshintignore Update Jenkins tests 2015-11-19 15:19:35 +01:00
.jshintrc Update Jenkins tests 2015-11-19 15:19:35 +01:00
composer.json Update Jenkins tests 2015-11-19 15:19:35 +01:00
COPYING Add COPYING 2014-01-16 02:31:28 +00:00
extension.json Add a feature flag to turn off the 'active users' query on GadgetUsage 2015-12-18 19:30:45 +00:00
GadgetHooks.php Implement Gadgets definition namespace repo 2015-11-20 12:01:21 -06:00
Gadgets.alias.php Add a special page to show number of users for each gadget on the wiki 2015-10-23 15:02:23 +00:00
Gadgets.namespaces.php Add Estonian translations for gadget namespaces 2015-11-03 22:15:38 +00:00
Gadgets.php Load namespaces 2015-08-21 13:41:20 +00:00
Gadgets_body.php Implement Gadgets definition namespace repo 2015-11-20 12:01:21 -06:00
Gruntfile.js Update Jenkins tests 2015-11-19 15:19:35 +01:00
install.settings Whitespace fixes 2008-02-04 08:08:43 +00:00
package.json build: Updating development dependencies 2015-12-29 11:28:59 -08:00
README.md Converting README to Markdown file and adding config documentation 2015-12-18 14:40:00 -07:00
SpecialGadgets.php Fix double "MediaWiki:MediaWiki:" namespace on Special:Gadgets 2015-12-10 12:06:30 -08:00
SpecialGadgetUsage.php Add more documentation to SpecialGadgetUsage::getQueryInfo() 2015-12-18 14:48:40 -07:00

Gadgets

The Gadgets extension provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide.

See https://www.mediawiki.org/wiki/Extension:Gadgets for more documentation.

The Gadgets extension was originally written by Daniel Kinzler in 2007 and is released under the GNU General Public Licence (GPL).

Prerequisites

This version of Gadgets requires MediaWiki 1.27 or later. To get a version compatible with an earlier MediaWiki release, visit ExtensionDistributor/Gadgets.

Installing

Copy the Gadgets directory into the extensions folder of your MediaWiki installation. Then add the following lines to your LocalSettings.php file (near the end):

require_once "$IP/extensions/Gadgets/Gadgets.php";

Usage

See http://www.mediawiki.org/wiki/Extension:Gadgets#Usage

Caveats

  • Gadgets do not apply to Special:Preferences, Special:UserLogin and Special:ResetPass so users can always disable any broken gadgets they may have enabled, and malicious gadgets will be unable to steal passwords.

Configuration

  • $wgGadgetsRepoClass: configures which GadgetRepo implementation will be used to source gadgets from. Currently, "MediaWikiGadgetsDefinitionRepo" is the recommended setting and default. The "GadgetDefinitionNamespaceRepo" is not ready for production usage yet.
  • $wgSpecialGadgetUsageActiveUsers: configures whether or not to show active user stats on Special:GadgetUsage. True by default.