The Gadgets extension should include a Special page that shows how many users have enabled each gadget on that wiki.
MVP acceptance criteria:
- A special page is available when the Gadgets extension is installed called Special:GadgetUsage
- The special page shows a list of all the Gadgets that have been enabled by at least one user, as well as the number of users that have enabled it.
- Add a feature flag (i.e. global config variable) for enabling or disabling the special page. It should be enabled by default.
For example:
+-------------------------+ | Gadget | Users | +-------------------------+ | UTCLiveClock | 254 | +-------------------------+
This could be implemented as a QueryPage that looks for entries in the user_properties table that start with 'gadget-'. It would probably be an expensive query (at least on larger wikis), so it should have isExpensive() return true. See /includes/specials/SpecialMediaStatistics.php for example.
In the future, more features could be added, like showing how many recently active users have each gadget enabled. T116894: Add recently active users count to Special:GadgetUsage