MediaWiki:Gadgets-definition: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
 
(22 intermediate revisions by 5 users not shown)
Line 5:
==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
* bsw-util[ResourceLoader|dependencies=mediawiki.util|targets=desktop,mobile|type=general|default|hidden]|bsw-util.js
* InstantCollapsiblecalc[ResourceLoader|type=general|default|hidden|dependencies=jquery.makeCollapsible|type=general]|InstantCollapsiblecalc.js
* defaultsummariescalc-core[ResourceLoader|dependencies=ext.gadget.bsw-util,oojs-ui-core,mediawiki.widgets|type=general|hidden]|defaultsummariescalc-core.js
* falseSubpagecheckboxList[ResourceLoader|type=general|default|hidden]|falseSubpagecheckboxList.js
* sigremindercheckboxList-core[ResourceLoader|actionstype=editgeneral|dependencies=ext.gadget.bsw-util|type=general|defaulthidden]|sigremindercheckboxList-core.js|checkboxList.css
* infoboxQty[ResourceLoader|dependencies=ext.gadget.bsw-util|type=general|skins=vector|default|hidden]|infoboxQty.js
* batchuploadjsonDoc[ResourceLoader|type=general|hidden|default|hidden|dependencies=mediawiki.util|rights=upload]|batchuploadjsonDoc.js
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* searchfocusleaflet-loader[ResourceLoader|type=general|default|hidden]|searchfocusleaflet-loader.js
* leaflet[ResourceLoader|type=general|hidden|targets=desktop,mobile]|leaflet.css|leaflet-fullscreen.css|leaflet.js|leaflet-fullscreen.js
* colorRCleaflet-wiki[ResourceLoader|dependencies=ext.gadget.leaflet|type=stylesgeneral|targets=desktop,mobile]|colorRCleaflet-wiki.cssjs
* navboxToggle[ResourceLoader|targets=mobile|dependencies=ext.gadget.bsw-util|type=general|default|hidden]|navboxToggle.js
* titleparenthesisswitch-infobox[ResourceLoader|actions=view|type=general|default|hidden|targets=desktop,mobile]|titleparenthesisswitch-infobox.js|titleparenthesis.css
* tooltips[ResourceLoader|type=general|default|hidden]|tooltips.js
* uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden]|UncheckFileRedirect.js
 
==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
* editCount[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util]|editCount.js
* ezcopyfileDownload[ResourceLoader|type=general|targets=desktophidden|default]|ezcopyfileDownload.js|ezcopy.css
* hotcat[ResourceLoader|rights=upload|type=general]|hotcat.js
* Message-names[ResourceLoader|rights=editinterface|type=general|dependencies=mediawiki.util]|Message-names.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
Line 31 ⟶ 36:
 
==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
* relativetimeskinToggles[ResourceLoader|actions=edit,view|dependencies=mediawiki.util|type=general|skins=vector|default|hidden]|relativetimeskinToggles.js|skinToggles.css
* stickyTableHeadersskinTogglesMobile[ResourceLoader|typedependencies=stylesmediawiki.util|skins=minerva|default|hidden]|stickyTableHeadersskinTogglesMobile.js|skinTogglesMobile.css
* toplinksDropdowntitleparenthesis[ResourceLoader|type=general|peers=toplinksDropdown-stylesdefault|hidden]|toplinksDropdowntitleparenthesis.js|titleparenthesis.css
* toplinksDropdown-styles[ResourceLoader|type=styles|hidden]|toplinksDropdown.css
 
==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
* searchfocus[ResourceLoader|type=general|default]|searchfocus.js
* sigreminder[ResourceLoader|actions=edit|dependencies=ext.gadget.bsw-util|type=general|default]|sigreminder.js

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