2015-12-18 21:36:26 +00:00
|
|
|
Gadgets
|
|
|
|
=============
|
2007-07-31 10:21:34 +00:00
|
|
|
|
|
|
|
The Gadgets extension provides a way for users to pick JavaScript or CSS
|
|
|
|
based "gadgets" that other wiki users provide.
|
|
|
|
|
2015-12-18 21:36:26 +00:00
|
|
|
See https://www.mediawiki.org/wiki/Extension:Gadgets for more documentation.
|
2007-07-31 10:21:34 +00:00
|
|
|
|
|
|
|
The Gadgets extension was originally written by Daniel Kinzler in 2007
|
2008-02-04 08:08:43 +00:00
|
|
|
and is released under the GNU General Public Licence (GPL).
|
2007-07-31 10:21:34 +00:00
|
|
|
|
2015-12-18 21:36:26 +00:00
|
|
|
Prerequisites
|
|
|
|
-------------
|
2015-11-07 01:38:23 +00:00
|
|
|
This version of Gadgets requires MediaWiki 1.27 or later. To get a version
|
2015-12-18 21:36:26 +00:00
|
|
|
compatible with an earlier MediaWiki release, visit
|
|
|
|
[ExtensionDistributor/Gadgets](https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Gadgets).
|
2010-11-11 18:46:54 +00:00
|
|
|
|
2015-12-18 21:36:26 +00:00
|
|
|
Installing
|
|
|
|
-------------
|
2008-02-04 08:08:43 +00:00
|
|
|
Copy the Gadgets directory into the extensions folder of your
|
2007-07-31 10:21:34 +00:00
|
|
|
MediaWiki installation. Then add the following lines to your
|
|
|
|
LocalSettings.php file (near the end):
|
|
|
|
|
2016-12-23 17:39:07 +00:00
|
|
|
wfLoadExtension( 'Gadgets' );
|
2007-07-31 10:21:34 +00:00
|
|
|
|
2015-12-18 21:36:26 +00:00
|
|
|
Usage
|
|
|
|
-------------
|
2016-12-23 17:26:43 +00:00
|
|
|
See https://www.mediawiki.org/wiki/Extension:Gadgets#Usage
|
2007-07-31 10:21:34 +00:00
|
|
|
|
2015-12-18 21:36:26 +00:00
|
|
|
Caveats
|
|
|
|
-------------
|
2011-09-23 06:48:37 +00:00
|
|
|
* Gadgets do not apply to Special:Preferences, Special:UserLogin and
|
2010-11-11 18:46:54 +00:00
|
|
|
Special:ResetPass so users can always disable any broken gadgets they
|
|
|
|
may have enabled, and malicious gadgets will be unable to steal passwords.
|
2015-08-03 06:37:32 +00:00
|
|
|
|
2015-12-18 21:36:26 +00:00
|
|
|
Configuration
|
|
|
|
-------------
|
2023-12-12 11:48:04 +00:00
|
|
|
* `$wgGadgetsRepo`: configures which GadgetRepo implementation will be used
|
|
|
|
to source gadgets from. Currently, "definition" mode is the recommended
|
|
|
|
setting and default. The "json" mode is not ready for production usage yet.
|
2015-12-18 21:36:26 +00:00
|
|
|
* `$wgSpecialGadgetUsageActiveUsers`: configures whether or not to show active
|
|
|
|
user stats on Special:GadgetUsage. True by default.
|