Wikipedia:Gadgets-definition UX
Gadgets-definition UX – makes browsing through gadgets and searching for entries in MediaWiki:Gadgets-definition easier. Note that you don't have to be an interface administrator to use the script.
Installation
[edit]- Open and edit: https://meta.wikimedia.org/wiki/Special:MyPage/global.js
- Add:
// [[:en:Wikipedia:Gadgets-definition UX]]
mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=MediaWiki:Gadgets-definition-ux.js&action=raw&ctype=text/javascript' );
Features
[edit]Links in definitions
[edit]Adds extra information about gadgets, including:
- link to gadget description;
- link to gadget preferences;
- links to dependencies (other gadgets and built-in APIs);
- links to used scripts (JS) and styles (CSS).
Filtering
[edit]Provides filtering of gadget lists, allowing quick searches by gadget names, dependencies, etc. Since this is filtering rather than searching, you can quickly review all gadgets using e.g. "oojs". Additional features include:
- inverse filtering (e.g. show everything except "hidden");
- filtering with regular expressions;
- filtering by word fragments (e.g. "ooj ico" will match "oojs-ui.styles.icons-interactions").
Note that filtering works across all sections, but only hides list items. Section headers remain visible so you can still see how gadgets are grouped.
Gadget descriptions
[edit]It is also possible to load gadget descriptions directly onto the page. The button loads descriptions for all gadgets, and descriptions are added below definitions (it should take less than 3 seconds).
After loading descriptions, filtering can also search through those descriptions. This may make it easier to find the definition of a specific gadget (especially when display name is different then the technical name).
See also
[edit]- MediaWiki:Gadgets-definition – page for browsing gadgets.
- Meta: Gadgets § Definition format – description of the gadget definition format.
- Git: wiki-gadgets-definition-ux – full history of source code and deployments (Wikipedia:Wikiploy).