Go to file
Translation updater bot 8c11a3f4ff Localisation updates from https://translatewiki.net.
Change-Id: I398a4e986743aacf6a7daf49f1467e823a25381f
2016-06-05 22:19:53 +02:00
api Add support for 'messages' and 'hidden' gadgets 2015-08-08 00:43:16 +00:00
i18n Localisation updates from https://translatewiki.net. 2016-06-05 22:19:53 +02:00
includes Use tabs for indenting Gadget definition pages 2016-05-31 00:23:12 +00: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 build: Updating development dependencies 2016-01-05 10:35:01 -08: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 namespace translation for diq 2016-04-22 10:21:09 +02: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 Fix broken sorting on Special:GadgetUsage 2016-01-22 15:17:30 +00: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.