MediaWiki:Gadgets-definition

From RuneScape Classic Wiki
Jump to: navigation, search

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 Maple Grove first.

Core

  • rsw-util[ResourceLoader|dependencies=mediawiki.util,oojs-ui-core,oojs-ui-windows|targets=desktop,mobile|type=general|default|hidden]|rsw-util.js
  • Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|default|hidden]|Less.js
  • switch-infobox[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|default|hidden|targets=desktop,mobile]|switch-infobox.js|switch-infobox.css
  • highlightTable[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util,oojs-ui-core|targets=desktop,mobile|default|hidden]|highlightTable.js|highlightTable.css
  • autosort[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util,ext.gadget.highlightTable|targets=desktop,mobile|default|hidden]|autosort.js
  • autocollapse[ResourceLoader|type=general|default|hidden]|autocollapse.js
  • calc[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core|targets=desktop,mobile|type=general|default|hidden]|calc.js|calc.css
  • calc-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,mediawiki.widgets|targets=desktop,mobile|type=general|hidden]|calc-core.js|calc.css
  • tooltips[ResourceLoader|type=general|default|hidden]|tooltips.js
  • topIcons[ResourceLoader|default|hidden|type=general|dependencies=ext.gadget.rsw-util]|topIcons.js|topIcons.css
  • username[ResourceLoader|type=general|default|hidden]|username.js
  • countdown[ResourceLoader|type=general|default|hidden]|countdown.js
  • autocollapse[ResourceLoader|type=general|default|hidden|dependencies=mediawiki.Uri]|autocollapse.js
  • navboxToggle[ResourceLoader|targets=desktop,mobile|dependencies=ext.gadget.rsw-util|type=general|default|hidden]|navboxToggle.js
  • uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden|dependencies=mediawiki.Uri]|UncheckFileRedirect.js

Appearance

  • utcclock[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api,mediawiki.notify|default]|utcclock.js|utcclock.css
  • mapLinkButton[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui.styles.icons-location|default]|mapLinkButton.js|mapLinkButton.css
  • skinTogglesNew[ResourceLoader|dependencies=mediawiki.util,ext.gadget.rsw-util|targets=desktop|type=general|default|hidden]|skinTogglesNew.js|skinToggles.css

Tools

  • contributions[ResourceLoader|type=general|default|dependencies=ext.gadget.rsw-util]|contributions.js
  • editCount[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util]|editCount.js
  • LazyQuickTools[ResourceLoader|type=general|dependencies=mediawiki.api|rights=block]|LazyQuickTools.js
  • ReferenceTooltips[ResourceLoader|default|type=general|dependencies=ext.gadget.rsw-util]|ReferenceTooltips.js|ReferenceTooltips.css
  • fileDownload[ResourceLoader|type=general|hidden|default]|fileDownload.js
  • hotcat[ResourceLoader|rights=upload|type=general]|hotcat.js
  • newPage[ResourceLoader|default|type=general|dependencies=ext.gadget.rsw-util|rights=createpage]|newPage.js

Other

  • showAdvancedData[ResourceLoader|type=general]|showAdvancedData.js
  • sigreminder[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|default]|sigreminder.js