Go to file
Translation updater bot 0dc6c081c9 Localisation updates from https://translatewiki.net.
Change-Id: Iab9a59aba83d0836b0f971577ec1e4d51f3d5364
2016-11-05 22:54:30 +01: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-11-05 22:54:30 +01:00
includes Clean up ObjectCache calls 2016-10-11 14:20:29 -07:00
tests/phpunit Implement support for specifying type=styles 2016-09-30 10:43:29 +00:00
.gitignore Update Jenkins tests 2015-11-19 15:19:35 +01:00
.gitreview Whoops, track not trace 2016-10-24 17:02:35 -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 Replace ArticleSaveComplete hook usage 2016-10-06 17:16:15 +01:00
GadgetHooks.php Replace ArticleSaveComplete hook usage 2016-10-06 17:16:15 +01:00
Gadgets.alias.php Add Persian translation of "Special:GadgetUsage" 2016-10-08 07:33:35 +00:00
Gadgets.namespaces.php Added Dutch translation 2016-06-25 16:27:23 +02:00
Gadgets.php Load namespaces 2015-08-21 13:41:20 +00:00
Gadgets_body.php Implement support for specifying type=styles 2016-09-30 10:43:29 +00: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.