MediaWiki:Gadgets-definition

This page contains the definitions for all gadgets on the wiki. In most cases, code that could be placed in Common.js should be made into a module here instead for granularity and better support for mobile, etc.

Edits to this page should be done with care. When targeting a gadget for mobile, ensure that the gadget works on mobile properly by debugging it on mobile devices. Some mobile devices do not allow JavaScript to run, or do not run it by default, so there should always be a fallback option for those that do not have JS enabled. Gadgets which can be enabled/disabled by the user (on Special:Preferences) should have a description created on Mediawiki:Gadget-gadgetname.

For a list of the gadgets with their descriptions and settings see Special:Gadgets.

Note that targetting only mobile is currently bugged - see mw:Extension:Gadgets and task T173309. For mobile-only gadgets, please target both mobile and desktop, then have the gadget exit out if not mobile. (Alternatively load via mediawiki:mobile.js)

Core

 * rts-util[ResourceLoader|dependencies=mediawiki.util|targets=desktop,mobile|type=general|default|hidden]|rts-util.js
 * highlightTable[ResourceLoader|type=general|targets=desktop,mobile|default]|highlightTable.js|highlightTable.css
 * highlightTable-core[ResourceLoader|type=general|dependencies=ext.gadget.rts-util,oojs-ui-core,oojs-ui.styles.icons-interactions|targets=desktop,mobile|hidden]|highlightTable-core.js
 * checkboxList[ResourceLoader|type=general|targets=desktop,mobile|default|hidden]|checkboxList.js
 * checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.rts-util|targets=desktop,mobile|hidden]|checkboxList-core.js|checkboxList.css
 * autosort[ResourceLoader|type=general|dependencies=ext.gadget.rts-util,ext.gadget.highlightTable|targets=desktop,mobile|default]|autosort.js
 * switch-infobox[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|switch-infobox.js|switch-infobox.css
 * switch-infobox-styles[ResourceLoader|type=styles|default|hidden|targets=desktop,mobile]|switch-infobox.css

Tools

 * purge[ResourceLoader|default|type=general|dependencies=ext.gadget.rts-util,ext.smw.purge,mediawiki.api|hidden]|purge.js
 * contributions[ResourceLoader|type=general|default|dependencies=ext.gadget.rts-util]|contributions.js
 * editCount[ResourceLoader|type=general|dependencies=ext.gadget.rts-util]|editCount.js
 * sectionAnchors[ResourceLoader|type=general|default]|sectionAnchors.js|sectionAnchors.css

Appearance

 * skinToggles[ResourceLoader|dependencies=mediawiki.util,ext.gadget.rts-util|targets=desktop|type=general|default|hidden]|skinToggles.js|skinToggles.css
 * gameclock[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api|default]|gameclock.js|gameclock.css
 * titleparenthesis[ResourceLoader|type=general|default|hidden]|titleparenthesis.js|titleparenthesis.css

Other

 * showAdvancedData[ResourceLoader|type=styles]|showAdvancedData.css
 * gadgetLinks[ResourceLoader|type=general|default]|gadgetLinks.js