MediaWiki:Gadgets-definition: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 1: 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.
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''.
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:Forum 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==
==Core==
* autocollapse[ResourceLoader|type=general|default|hidden|dependencies=mediawiki.Uri]|autocollapse.js
* autosort[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util,ext.gadget.highlightTable|targets=desktop,mobile|default]|autosort.js
* autosort[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util,ext.gadget.highlightTable|targets=desktop,mobile|default]|autosort.js
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* bsw-util[ResourceLoader|dependencies=mediawiki.util|targets=desktop,mobile|type=general|default|hidden]|bsw-util.js
* bsw-util[ResourceLoader|dependencies=mediawiki.util|targets=desktop,mobile|type=general|default|hidden]|bsw-util.js
* InstantCollapsible[ResourceLoader|default|hidden|dependencies=jquery.makeCollapsible|type=general]|InstantCollapsible.js
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* navboxToggle[ResourceLoader|targets=mobile|dependencies=ext.gadget.rsw-util|type=general|default|hidden]|navboxToggle.js
* titleparenthesis[ResourceLoader|actions=view|type=general|default|hidden]|titleparenthesis.js|titleparenthesis.css
* tooltips[ResourceLoader|type=general|default|hidden]|tooltips.js
* tooltips[ResourceLoader|type=general|default|hidden]|tooltips.js
* uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden]|UncheckFileRedirect.js
* uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden]|UncheckFileRedirect.js
Line 22: Line 26:
* QuickDiff[ResourceLoader|type=general|dependencies=mediawiki.Uri,mediawiki.util]|QDmodal.js|QuickDiff.js|QDmodal.css
* QuickDiff[ResourceLoader|type=general|dependencies=mediawiki.Uri,mediawiki.util]|QDmodal.js|QuickDiff.js|QDmodal.css
* ReferenceTooltips[ResourceLoader|default|actions=view|type=general|dependencies=ext.gadget.bsw-util]|ReferenceTooltips.js|ReferenceTooltips.css
* ReferenceTooltips[ResourceLoader|default|actions=view|type=general|dependencies=ext.gadget.bsw-util]|ReferenceTooltips.js|ReferenceTooltips.css
* scribunto-console[ResourceLoader|actions=edit|type=general|default]|scribunto-console.js
* scribunto-console-core[ResourceLoader|type=general|hidden]|scribunto-console-core.js|scribunto-console.css
* sectionAnchors[ResourceLoader|type=general|default]|sectionAnchors.js|sectionAnchors.css
* sectionAnchors[ResourceLoader|type=general|default]|sectionAnchors.js|sectionAnchors.css

==Appearance==
* colorRC[ResourceLoader|type=styles|targets=desktop,mobile]|colorRC.css
* falseSubpage[ResourceLoader|type=general|default|hidden]|falseSubpage.js
* markblocked[ResourceLoader|type=general]|markblocked.js
* readableHistory[ResourceLoader|type=general|actions=history]|readableHistory.js|readableHistory.css
* readableRC[ResourceLoader|type=general]|readableRC.js
* readableRC-core[ResourceLoader|type=general|dependencies=oojs-ui-core|hidden]|readableRC-core.js|readableRC-core.css
* relativetime[ResourceLoader|actions=edit,view|dependencies=mediawiki.util|type=general|default]|relativetime.js
* stickyTableHeaders[ResourceLoader|type=styles|default]|stickyTableHeaders.css
* toplinksDropdown[ResourceLoader|type=general|peers=toplinksDropdown-styles]|toplinksDropdown.js
* toplinksDropdown-styles[ResourceLoader|type=styles|hidden]|toplinksDropdown.css


==Other==
==Other==
* defaultsummaries[ResourceLoader|actions=edit|type=general]|defaultsummaries.js
* defaultsummaries-core[ResourceLoader|dependencies=oojs-ui-core|type=general|hidden]|defaultsummaries-core.js
* gadgetLinks[ResourceLoader|type=general|default]|gadgetLinks.js
* gadgetLinks[ResourceLoader|type=general|default]|gadgetLinks.js
* searchfocus[ResourceLoader|type=general|default]|searchfocus.js
* sigreminder[ResourceLoader|actions=edit|dependencies=ext.gadget.rsw-util|type=general|default]|sigreminder.js