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
 
Line 10: Line 10:
* checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|hidden]|checkboxList-core.js|checkboxList.css
* checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|hidden]|checkboxList-core.js|checkboxList.css
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
* leaflet[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|Leaflet.css|Leaflet.js
* leaflet[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|leaflet.css|leaflet.js
* navboxToggle[ResourceLoader|targets=mobile|dependencies=ext.gadget.bsw-util|type=general|default|hidden]|navboxToggle.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
* switch-infobox[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|switch-infobox.js

Latest revision as of 03:07, 18 November 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
  • checkboxList[ResourceLoader|type=general|default|hidden]|checkboxList.js
  • checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.bsw-util|hidden]|checkboxList-core.js|checkboxList.css
  • Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
  • leaflet[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|leaflet.css|leaflet.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
  • 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

Other

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