MediaWiki:Gadgets-definition: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1:
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. <!--For scripts that are intended for use on a lot of pages, it may be a good idea to propose it on the [[Forum:Yew Grove|Yew Grove]] first. -->Gadgets which can be enabled/disabled by the user (on [[Special:Preferences#mw-prefsection-gadgets|Special:Preferences]]) should have a description created on ''Mediawiki:Gadget-gadgetname''.
==Core==
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
==Tools==
* ezcopy[ResourceLoader|type=general|targets=desktop]|ezcopy.js|ezcopy.css
==Other==
* gadgetLinks[ResourceLoader|type=general|default]|gadgetLinks.js
|
Revision as of 18:06, 22 March 2024
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.
Core
- Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
Tools
- ezcopy[ResourceLoader|type=general|targets=desktop]|ezcopy.js|ezcopy.css
Other
- gadgetLinks[ResourceLoader|type=general|default]|gadgetLinks.js