Gadgets 2.0

Jump to: navigation, search

Gadgets 2.0 is a broad overhaul of the Gadgets extension to make it more powerful and user-friendly. See ResourceLoader/Version 2 Design Specification for more information.

Features[edit | edit source]

  • A Gadget Manager interface making it easy to create, edit, or delete gadgets from a wiki
  • New Gadget and Gadget_definition namespaces (along with associated content models and user rights)
  • Simple interface for exporting gadgets
  • Multi-language support for Gadgets via localized messages

Gadget Manager[edit | edit source]

New Special:Gadgets page
Interface for creating new gadgets

Gadgets 2.0 will feature a completely revamped Special:Gadgets page. This page will allow users to not only view the configured gadgets, but also create, edit, and delete them. It will replace MediaWiki:Gadgets-definition as the interface for managing the gadgets on a wiki.

Adding multi-language support to a gadget[edit | edit source]

Upgrading a wiki to Gadgets 2.0[edit | edit source]

Temporary method until Gadgets 2.0 code is merged[edit | edit source]

To try out the new Gadgets 2.0 interface, you'll need to check out the RL2 branch of the Gadgets repo. If you have already cloned the existing Gerrit repo for Gadgets, you can do this by running the following command from the repo:

git checkout -b RL2 origin/RL2

You will then need to update your LocalSettings.php config with the following:

$wgGadgetsRepoClass = "GadgetDefinitionNamespaceRepo";

Migrating existing gadgets[edit | edit source]

To migrate your existing gadgets, run the maintenance/update.php script. This will move your existing gadget JS and CSS pages into the Gadget namespace and will create new gadget definitions in the Gadget_definition namespace.