MediaWiki:Gadgets-definition

This is an old revision of this page, as edited by Alex (talk | contribs) at 15:42, 18 October 2024. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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. Gadgets are by default enabled on both desktop and 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 Redwood Grove first.

Core

  • ES6Test[ResourceLoader|default|type=general|dependencies=ext.gadget.rsw-util]|ES6Test.js
  • rsw-util[ResourceLoader|dependencies=mediawiki.util|type=general|default|hidden]|rsw-util.js
  • Less[ResourceLoader|rights=editinterface|dependencies=mediawiki.api|type=general|skins=vector|default|hidden]|Less.js|Less.css
  • switch-infobox[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|default]|switch-infobox.js
  • switch-infobox-styles[ResourceLoader|type=styles|default|hidden]|switch-infobox.css
  • exchangePages[ResourceLoader|type=general|default|hidden]|exchangePages.js
  • exchangePages-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core|type=general|hidden]|exchangePages-core.js
  • GECharts[ResourceLoader|type=general|default]|GECharts.js
  • GECharts-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|type=general|hidden]|GECharts-core.js
  • compare[ResourceLoader|type=general|skins=vector|default|hidden]|compare.js
  • compare-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-windows|type=general|skins=vector|hidden]|compare-core.js|compare.css
  • autosort[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|skins=vector|default|hidden]|autosort.js
  • uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden|dependencies=mediawiki.Uri]|UncheckFileRedirect.js
  • highlightTable[ResourceLoader|type=general|default]|highlightTable.js
  • highlightTable-core[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util,oojs-ui-core|hidden]|highlightTable-core.js|highlightTable-core.css
  • titleparenthesis[ResourceLoader|type=general|default|hidden]|titleparenthesis.js|titleparenthesis.css
  • tooltips[ResourceLoader|type=general|default|hidden]|tooltips.js
  • topIcons[ResourceLoader|default|hidden|type=general|skins=vector|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|skins=vector|dependencies=mediawiki.Uri]|autocollapse.js
  • checkboxList[ResourceLoader|type=general|default|hidden]|checkboxList.js
  • checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util|hidden]|checkboxList-core.js|checkboxList.css
  • Charts[ResourceLoader|type=general|default]|Charts.js
  • Charts-core[ResourceLoader|type=general|hidden|dependencies=ext.gadget.rsw-util]|Charts-core.js
  • navbox-tracking[ResourceLoader|type=general|hidden|default]|navbox-tracking.js
  • sidebar-tracking[ResourceLoader|skins=vector|type=general|hidden|default]|sidebar-tracking.js
  • wikisync[ResourceLoader|type=general|default]|wikisync.js
  • wikisync-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|hidden|type=general]|wikisync-core.js|wikisync-core.css
  • smwlistsfull[ResourceLoader|type=general|hidden|default]|smwlistsfull.js
  • smwlistsfull-core[ResourceLoader|type=general|hidden|dependencies=oojs-ui-core,mediawiki.widgets,jquery.tablesorter,mediawiki.Uri]|smwlistsfull-core.js|smwlistsfull.css
  • tooltipPopup[ResourceLoader|type=general|hidden]|tooltipPopup.js
  • tooltipPopup-core[ResourceLoader|type=general|hidden]|tooltipPopup-core.js|tooltipPopup.css
  • jsonDoc[ResourceLoader|type=general|hidden|default|dependencies=mediawiki.util]|jsonDoc.js
  • articlefeedback[ResourceLoader|type=general|skins=vector|hidden|default]|articlefeedback.js
  • articlefeedback-core[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.api,ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui.styles.icons-interactions|hidden]|articlefeedback-core.js|articlefeedback.css
  • articlefeedback-tools[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.api,oojs-ui-core,oojs-ui-windows|hidden]|articlefeedback-tools.js

Calculators

  • calc[ResourceLoader|type=general|default]|calc.js
  • calc-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,mediawiki.widgets|type=general|hidden]|calc-core.js|calc.css
  • infoboxQty[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|skins=vector|default|hidden]|infoboxQty.js
  • calculatorNS[ResourceLoader|dependencies=mediawiki.util|type=general|skins=vector|default|hidden]|calculatorNS.js
  • dropDisplay[ResourceLoader|type=general|default|hidden]|dropDisplay.js
  • dropDisplay-core[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|hidden]|dropDisplay-core.js|dropDisplay.css
  • mmgkc[ResourceLoader|type=general|default|hidden]|mmgkc.js
  • mmgkc-core[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui-widgets,oojs-ui.styles.icons-interactions|hidden]|mmgkc-core.js|mmgkc.css
  • fightcaverotations[ResourceLoader|type=general|default|hidden]|fightcaverotations.js
  • fightcaverotations-core[ResourceLoader|type=general|hidden]|fightcaverotations-core.js
  • livePricesMMG[ResourceLoader|type=general|default|hidden]|livePricesMMG.js
  • livePricesMMG-core[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui-widgets,oojs-ui.styles.icons-interactions|hidden]|livePricesMMG-core.js

User

  • autowelcome[ResourceLoader|actions=edit|dependencies=ext.gadget.rsw-util|type=general|skins=vector]|autowelcome.js
  • contributions[ResourceLoader|type=general|skins=vector|default|dependencies=ext.gadget.rsw-util]|contributions.js
  • editCount[ResourceLoader|type=general|skins=vector|dependencies=ext.gadget.rsw-util]|editCount.js
  • code-snippets[ResourceLoader|actions=edit|type=general|skins=vector|dependencies=mediawiki.util|default]|code-snippets.js

Appearance

  • skinTogglesNew[ResourceLoader|dependencies=mediawiki.util,ext.gadget.rsw-util|skins=vector|type=general|default|hidden]|skinTogglesNew.js|skinToggles.css
  • skinTogglesNew-prompt[ResourceLoader|skins=vector|type=general|hidden]|skinTogglesNew-prompt.js|skinToggles-prompt.css
  • skinTogglesMobile[ResourceLoader|dependencies=mediawiki.util|skins=minerva|default|hidden]|skinTogglesMobile.js|skinTogglesMobile.css
  • utcclock[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.util,ext.gadget.skinTogglesNew|default]|utcclock.js|utcclock.css
  • relativetime[ResourceLoader|actions=edit,view|dependencies=mediawiki.util|type=general|default]|relativetime.js
  • toplinksDropdown[ResourceLoader|type=general|skins=vector|peers=toplinksDropdown-styles]|toplinksDropdown.js
  • toplinksDropdown-styles[ResourceLoader|type=styles|skins=vector|hidden]|toplinksDropdown.css
  • sectionAnchors[ResourceLoader|type=general|skins=vector|default]|sectionAnchors.js|sectionAnchors.css
  • navboxToggle[ResourceLoader|skins=minerva|type=general|default|hidden]|navboxToggle.js
  • audioplayer[ResourceLoader|type=general|default|hidden]|audioplayer.js
  • audioplayer-core[ResourceLoader|type=general|hidden]|audioplayer-core.js|audioplayer.css
  • musicmap[ResourceLoader|type=general|default|hidden]|musicMap.js
  • musicmap-core[ResourceLoader|dependencies=ext.gadget.audioplayer-core,oojs-ui-core|type=general|hidden]|musicMap-core.js|musicMap.css
  • equipment[ResourceLoader|type=general|default|hidden]|equipment.js
  • stickyTableHeaders[ResourceLoader|type=styles|skins=vector|default]|stickyTableHeaders.css
  • falseSubpage[ResourceLoader|type=styles|default|hidden]|falseSubpage.css
  • colorRC[ResourceLoader|type=styles|namespaces=-1]|colorRC.css
  • readableRC[ResourceLoader|type=general|rights=upload|namespaces=-1]|readableRC.js
  • readableRC-core[ResourceLoader|type=general|dependencies=oojs-ui-core|namespaces=-1|hidden]|readableRC-core.js|readableRC-core.css
  • ringbell[ResourceLoader|type=styles|skins=vector]|ringbell.css
  • hideRCsidebar[ResourceLoader|type=styles|skins=vector]|hideRCsidebar.css
  • headerTargetHighlight[ResourceLoader|type=styles|default]|headerTargetHighlight.css
  • redirect-mobilediff[ResourceLoader|type=general|skins=vector|default]|redirect-mobilediff.js
  • stickyheader[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.util]|stickyheader.js

Tools

  • abuseLogRC[ResourceLoader|type=general|namespaces=-1|rights=abusefilter-log-private]|abuseLogRC.js
  • abuseLogRC-core[ResourceLoader|type=general|namespaces=-1|dependencies=oojs-ui-core,mediawiki.api|hidden]|abuseLogRC-core.js|abuseLogRC-core.css
  • dropdown[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.util,mediawiki.api|default]|dropdown.js
  • newPage[ResourceLoader|default|type=general|skins=vector|dependencies=ext.gadget.rsw-util|rights=createpage]|newPage.js
  • purge[ResourceLoader|default|type=general|skins=vector|dependencies=ext.gadget.rsw-util,mediawiki.api|hidden]|purge.js
  • hotcat[ResourceLoader|rights=upload]|hotcat.js
  • ReferenceTooltips[ResourceLoader|default|type=general|skins=vector|dependencies=mediawiki.cookie,jquery.client]|ReferenceTooltips.js|ReferenceTooltips.css
  • fileDownload[ResourceLoader|type=general|hidden|default]|fileDownload.js
  • batchupload[ResourceLoader|type=general|skins=vector|default|dependencies=mediawiki.util|rights=upload]|batchupload.js
  • LazyAdminTools[ResourceLoader|type=general|rights=block]|LazyAdminTools.js
  • LazyAdminTools-core[ResourceLoader|type=general|dependencies=mediawiki.api,oojs-ui-core|hidden]|LazyAdminTools-core.js|LazyAdminTools-core.css
  • QuickDiff[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.Uri,mediawiki.util]|QDmodal.js|QuickDiff.js|QDmodal.css
  • Message-names[ResourceLoader|rights=editinterface|type=general|skins=vector|dependencies=mediawiki.util]|Message-names.js
  • oswf[ResourceLoader|type=general|default|hidden]|oswf.js
  • oswf-core[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui.styles.icons-movement|hidden]|oswf-core.js
  • ezcopy[ResourceLoader|type=general|skins=vector]|ezcopy.js|ezcopy.css
  • table-csv[ResourceLoader|type=general|skins=vector]|table-csv.js
  • scribunto-console[ResourceLoader|actions=edit|type=general|skins=vector|default]|scribunto-console.js
  • scribunto-console-core[ResourceLoader|type=general|skins=vector|hidden]|scribunto-console-core.js|scribunto-console.css

Other

  • searchfocus[ResourceLoader|type=general|skins=vector|default]|searchfocus.js
  • sigreminder[ResourceLoader|type=general|skins=vector|actions=edit|default]|sigreminder.js
  • sigreminder-core[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|skins=vector|hidden]|sigreminder-core.js
  • defaultsummaries[ResourceLoader|dependencies=oojs-ui-core|actions=edit|skins=vector]|defaultsummaries.js|defaultsummaries.css
  • showAdvancedData[ResourceLoader|type=styles]|showAdvancedData.css
  • gadgetLinks[ResourceLoader|type=general|namespaces=8]|gadgetLinks.js
  • crob[ResourceLoader|actions=view|type=general|dependencies=ext.gadget.rsw-util]|crob.js|crob.css
  • clippy[ResourceLoader|type=general|skins=vector]|clippy.js|clippy.css
  • switch-infobox-sandbox[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|rights=suppressredirect]|switch-infobox-sandbox.js
  • GECharts-sandbox-loader[ResourceLoader|type=general]|GECharts-sandbox-loader.js
  • GECharts-sandbox[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|type=general|hidden]|GECharts-sandbox.js
  • wikisync-dev[ResourceLoader|type=general]|wikisync-dev.js
  • wikisync-dev-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|hidden|type=general]|wikisync-dev-core.js|wikisync-core.css
  • tilemarkers[ResourceLoader|type=general|default]|tilemarkers.js
  • tilemarkers-core[ResourceLoader|dependencies=oojs-ui-core|hidden|type=general]|tilemarkers-core.js
  • dps[ResourceLoader|type=general]|dps.js
  • dps-core[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui-widgets,oojs-ui.styles.icons-editing-core,mediawiki.widgets|hidden]|dps-data.js|dps-data2.js|dps-core.js|dps-core.css|dps-sprite.css