Difference between revisions of "MediaWiki:Gadgets-definition"
Jump to navigation
Jump to search
(Created page with "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...") |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
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. | 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. | ||
+ | ==Core== | ||
+ | * kkcw-util[ResourceLoader|dependencies=mediawiki.util,oojs-ui-core,oojs-ui-windows|targets=desktop,mobile|type=general|default|hidden]|kkcw-util.js | ||
+ | * Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|namespaces=8|type=general|default|hidden]|Less.js | ||
+ | ==Tools== | ||
+ | * contributions[ResourceLoader|type=general|default]|contributions.js | ||
+ | * editCount[ResourceLoader|type=general|default]|editCount.js | ||
+ | ==Appearance== | ||
+ | * skinTogglesNew[ResourceLoader|dependencies=mediawiki.util,ext.gadget.kkcw-util,oojs-ui-core,oojs-ui-windows,oojs-ui-widgets|targets=desktop|type=general|hidden]|skinTogglesNew.js|skinToggles.css | ||
==Other== | ==Other== | ||
* searchfocus[ResourceLoader|type=general|default]|searchfocus.js | * searchfocus[ResourceLoader|type=general|default]|searchfocus.js |
Latest revision as of 20:34, 4 July 2019
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.
Contents
Core
- kkcw-util[ResourceLoader|dependencies=mediawiki.util,oojs-ui-core,oojs-ui-windows|targets=desktop,mobile|type=general|default|hidden]|kkcw-util.js
- Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|namespaces=8|type=general|default|hidden]|Less.js
Tools
- contributions[ResourceLoader|type=general|default]|contributions.js
- editCount[ResourceLoader|type=general|default]|editCount.js
Appearance
- skinTogglesNew[ResourceLoader|dependencies=mediawiki.util,ext.gadget.kkcw-util,oojs-ui-core,oojs-ui-windows,oojs-ui-widgets|targets=desktop|type=general|hidden]|skinTogglesNew.js|skinToggles.css
Other
- searchfocus[ResourceLoader|type=general|default]|searchfocus.js