MediaWiki:Gadgets-definition: Difference between revisions

No edit summary
No edit summary
 
(27 intermediate revisions by 5 users not shown)
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==
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* autocollapse[ResourceLoader|type=general|default|hidden|dependencies=mediawiki.Uri]|autocollapse.js
* autosort[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|targets=desktop,mobile|default]|autosort.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
* calc[ResourceLoader|type=general|default|hidden]|calc.js
* calc-core[ResourceLoader|dependencies=ext.gadget.bsw-util,oojs-ui-core,mediawiki.widgets|type=general|hidden]|calc-core.js
* checkboxList[ResourceLoader|type=general|default|hidden]|checkboxList.js
* checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|hidden]|checkboxList-core.js|checkboxList.css
* infoboxQty[ResourceLoader|dependencies=ext.gadget.bsw-util|type=general|skins=vector|default|hidden]|infoboxQty.js
* jsonDoc[ResourceLoader|type=general|hidden|default|dependencies=mediawiki.util]|jsonDoc.js
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* leaflet-loader[ResourceLoader|type=general|default|hidden]|leaflet-loader.js
* leaflet[ResourceLoader|type=general|hidden|targets=desktop,mobile]|leaflet.css|leaflet-fullscreen.css|leaflet.js|leaflet-fullscreen.js
* leaflet-wiki[ResourceLoader|dependencies=ext.gadget.leaflet|type=general|targets=desktop,mobile]|leaflet-wiki.js
* navboxToggle[ResourceLoader|targets=mobile|dependencies=ext.gadget.bsw-util|type=general|default|hidden]|navboxToggle.js
* switch-infobox[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|switch-infobox.js
* 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


==Tools==
==Tools==
* batchupload[ResourceLoader|type=general|default|hidden|dependencies=mediawiki.util|rights=upload]|batchupload.js
* contributions[ResourceLoader|type=general|default|dependencies=ext.gadget.bsw-util]|contributions.js
* dropdown[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api|default]|dropdown.js
* dropdown[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api|default]|dropdown.js
* ezcopy[ResourceLoader|type=general|targets=desktop]|ezcopy.js|ezcopy.css
* editCount[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util]|editCount.js
* hotcat[ResourceLoader|rights=upload|type=general]|hotcat.js
* fileDownload[ResourceLoader|type=general|hidden|default]|fileDownload.js
* newPage[ResourceLoader|default|type=general|dependencies=ext.gadget.bsw-util|rights=createpage]|newPage.js
* purge[ResourceLoader|default|type=general|dependencies=ext.gadget.bsw-util,ext.smw.purge,mediawiki.api|hidden]|purge.js
* 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=edit,view|type=general|skins=vector|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==
* 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
* skinToggles[ResourceLoader|dependencies=mediawiki.util|type=general|skins=vector|default|hidden]|skinToggles.js|skinToggles.css
* skinTogglesMobile[ResourceLoader|dependencies=mediawiki.util|skins=minerva|default|hidden]|skinTogglesMobile.js|skinTogglesMobile.css
* titleparenthesis[ResourceLoader|type=general|default|hidden]|titleparenthesis.js|titleparenthesis.css


==Other==
==Other==

Latest revision as of 20:46, 19 December 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. For scripts that are intended for use on a lot of pages, it may be a good idea to propose it on the Yew Grove first. Gadgets which can be enabled/disabled by the user (on Special:Preferences) should have a description created on Mediawiki:Gadget-gadgetname.

Core

  • autocollapse[ResourceLoader|type=general|default|hidden|dependencies=mediawiki.Uri]|autocollapse.js
  • autosort[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|targets=desktop,mobile|default]|autosort.js
  • bsw-util[ResourceLoader|dependencies=mediawiki.util|targets=desktop,mobile|type=general|default|hidden]|bsw-util.js
  • calc[ResourceLoader|type=general|default|hidden]|calc.js
  • calc-core[ResourceLoader|dependencies=ext.gadget.bsw-util,oojs-ui-core,mediawiki.widgets|type=general|hidden]|calc-core.js
  • checkboxList[ResourceLoader|type=general|default|hidden]|checkboxList.js
  • checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|hidden]|checkboxList-core.js|checkboxList.css
  • infoboxQty[ResourceLoader|dependencies=ext.gadget.bsw-util|type=general|skins=vector|default|hidden]|infoboxQty.js
  • jsonDoc[ResourceLoader|type=general|hidden|default|dependencies=mediawiki.util]|jsonDoc.js
  • Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
  • leaflet-loader[ResourceLoader|type=general|default|hidden]|leaflet-loader.js
  • leaflet[ResourceLoader|type=general|hidden|targets=desktop,mobile]|leaflet.css|leaflet-fullscreen.css|leaflet.js|leaflet-fullscreen.js
  • leaflet-wiki[ResourceLoader|dependencies=ext.gadget.leaflet|type=general|targets=desktop,mobile]|leaflet-wiki.js
  • navboxToggle[ResourceLoader|targets=mobile|dependencies=ext.gadget.bsw-util|type=general|default|hidden]|navboxToggle.js
  • switch-infobox[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|switch-infobox.js
  • tooltips[ResourceLoader|type=general|default|hidden]|tooltips.js
  • uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden]|UncheckFileRedirect.js

Tools

  • contributions[ResourceLoader|type=general|default|dependencies=ext.gadget.bsw-util]|contributions.js
  • dropdown[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api|default]|dropdown.js
  • editCount[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util]|editCount.js
  • fileDownload[ResourceLoader|type=general|hidden|default]|fileDownload.js
  • newPage[ResourceLoader|default|type=general|dependencies=ext.gadget.bsw-util|rights=createpage]|newPage.js
  • purge[ResourceLoader|default|type=general|dependencies=ext.gadget.bsw-util,ext.smw.purge,mediawiki.api|hidden]|purge.js
  • QuickDiff[ResourceLoader|type=general|dependencies=mediawiki.Uri,mediawiki.util]|QDmodal.js|QuickDiff.js|QDmodal.css
  • ReferenceTooltips[ResourceLoader|default|actions=edit,view|type=general|skins=vector|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

Appearance

  • 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
  • skinToggles[ResourceLoader|dependencies=mediawiki.util|type=general|skins=vector|default|hidden]|skinToggles.js|skinToggles.css
  • skinTogglesMobile[ResourceLoader|dependencies=mediawiki.util|skins=minerva|default|hidden]|skinTogglesMobile.js|skinTogglesMobile.css
  • titleparenthesis[ResourceLoader|type=general|default|hidden]|titleparenthesis.js|titleparenthesis.css

Other

  • gadgetLinks[ResourceLoader|type=general|default]|gadgetLinks.js