MediaWiki:Gadgets-definition: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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 sh...") |
(No difference)
|
Revision as of 16:49, 3 October 2022
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 Redwood Grove first.
Core
- rsw-util[ResourceLoader|dependencies=mediawiki.util|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-styles[ResourceLoader|type=styles|default|hidden|targets=desktop,mobile]|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|targets=desktop,mobile|default]|GECharts.js
- GECharts-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|type=general|targets=desktop,mobile|hidden]|GECharts-core.js
- compare[ResourceLoader|type=general|default|hidden]|compare.js
- compare-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-windows|type=general|hidden]|compare-core.js|compare.css
- autosort[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|default|hidden]|autosort.js
- uncheckfileredirects[ResourceLoader|type=general|rights=suppressredirect|default|hidden|dependencies=mediawiki.Uri]|UncheckFileRedirect.js
- highlightTable[ResourceLoader|type=general|targets=desktop,mobile|default]|highlightTable.js
- highlightTable-core[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util,oojs-ui-core|targets=desktop,mobile|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|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
- checkboxList[ResourceLoader|type=general|targets=desktop,mobile|default|hidden]|checkboxList.js
- checkboxList-core[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util|targets=desktop,mobile|hidden]|checkboxList-core.js|checkboxList.css
- Charts[ResourceLoader|type=general|targets=desktop,mobile|default]|Charts.js
- Charts-core[ResourceLoader|type=general|targets=desktop,mobile|hidden|dependencies=ext.gadget.rsw-util]|Charts-core.js
- redirect-mobilediff[ResourceLoader|type=general|targets=desktop|hidden]|redirect-mobilediff.js
- navbox-tracking[ResourceLoader|targets=desktop,mobile|type=general|hidden|default]|navbox-tracking.js
- sidebar-tracking[ResourceLoader|targets=desktop|type=general|hidden|default]|sidebar-tracking.js
- wikisync[ResourceLoader|targets=desktop,mobile|type=general|default]|wikisync.js
- wikisync-core[ResourceLoader|targets=desktop,mobile|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|hidden|type=general]|wikisync-core.js|wikisync-core.css
Calculators
- calc[ResourceLoader|targets=desktop,mobile|type=general|default]|calc.js
- calc-core[ResourceLoader|dependencies=ext.gadget.rsw-util,oojs-ui-core,mediawiki.widgets|targets=desktop,mobile|type=general|hidden]|calc-core.js|calc.css
- infoboxQty[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|default|hidden]|infoboxQty.js
- calculatorNS[ResourceLoader|dependencies=mediawiki.util|type=general|default|hidden]|calculatorNS.js
- dropDisplay[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|dropDisplay.js
- dropDisplay-core[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util,oojs-ui-core,oojs-ui-widgets,oojs-ui-windows|hidden|targets=desktop,mobile]|dropDisplay-core.js|dropDisplay.css
- mmgkc[ResourceLoader|type=general|default|hidden|targets=desktop,mobile]|mmgkc.js
- mmgkc-core[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui-widgets|hidden|targets=desktop,mobile]|mmgkc-core.js|mmgkc.css
- dps[ResourceLoader|type=general|targets=desktop,mobile]|dps.js
- dps-core[ResourceLoader|type=general|dependencies=oojs-ui-core,oojs-ui-widgets,oojs-ui.styles.icons-editing-core,mediawiki.widgets|hidden|targets=desktop,mobile]|dps-data.js|dps-data2.js|dps-core.js|dps-core.css|dps-sprite.css
User
- autowelcome[ResourceLoader|actions=edit|dependencies=ext.gadget.rsw-util|type=general]|autowelcome.js
- contributions[ResourceLoader|type=general|default|dependencies=ext.gadget.rsw-util]|contributions.js
- editCount[ResourceLoader|type=general|dependencies=ext.gadget.rsw-util]|editCount.js
- code-snippets[ResourceLoader|actions=edit|type=general|dependencies=mediawiki.util|default]|code-snippets.js
Appearance
- skinTogglesNew[ResourceLoader|dependencies=mediawiki.util,ext.gadget.rsw-util|targets=desktop|type=general|default|hidden]|skinTogglesNew.js|skinToggles.css
- skinTogglesNew-prompt[ResourceLoader|targets=desktop|type=general|hidden]|skinTogglesNew-prompt.js|skinToggles-prompt.css
- skinTogglesMobile[ResourceLoader|dependencies=mediawiki.util|targets=mobile|default|hidden]|skinTogglesMobile.js|skinTogglesMobile.css
- utcclock[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api,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|peers=toplinksDropdown-styles]|toplinksDropdown.js
- toplinksDropdown-styles[ResourceLoader|type=styles|hidden]|toplinksDropdown.css
- sectionAnchors[ResourceLoader|type=general|default]|sectionAnchors.js|sectionAnchors.css
- navboxToggle[ResourceLoader|targets=mobile|type=general|default|hidden]|navboxToggle.js
- audioplayer[ResourceLoader|targets=desktop,mobile|type=general|default|hidden]|audioplayer.js
- audioplayer-core[ResourceLoader|targets=desktop,mobile|type=general|hidden]|audioplayer-core.js|audioplayer.css
- musicmap[ResourceLoader|type=general|targets=desktop,mobile|default|hidden]|musicMap.js
- musicmap-core[ResourceLoader|dependencies=ext.gadget.audioplayer-core,oojs-ui-core|type=general|targets=desktop,mobile|hidden]|musicMap-core.js|musicMap.css
- equipment[ResourceLoader|targets=desktop,mobile|type=general|default|hidden]|equipment.js
- stickyTableHeaders[ResourceLoader|type=styles|default]|stickyTableHeaders.css
- falseSubpage[ResourceLoader|type=general|default|hidden]|falseSubpage.js
- colorRC[ResourceLoader|type=styles|targets=desktop,mobile]|colorRC.css
- readableRC[ResourceLoader|type=general|rights=upload]|readableRC.js
- readableRC-core[ResourceLoader|type=general|dependencies=oojs-ui-core|hidden]|readableRC-core.js|readableRC-core.css
- ringbell[ResourceLoader|type=styles]|ringbell.css
- hideRCsidebar[ResourceLoader|type=styles|targets=desktop]|hideRCsidebar.css
Tools
- dropdown[ResourceLoader|type=general|dependencies=mediawiki.util,mediawiki.api|default]|dropdown.js
- newPage[ResourceLoader|default|type=general|dependencies=ext.gadget.rsw-util|rights=createpage]|newPage.js
- purge[ResourceLoader|default|type=general|dependencies=ext.gadget.rsw-util,mediawiki.api|hidden]|purge.js
- hotcat[ResourceLoader|rights=upload|type=general]|hotcat.js
- ReferenceTooltips[ResourceLoader|default|type=general|dependencies=ext.gadget.rsw-util,mediawiki.cookie,jquery.client]|ReferenceTooltips.js|ReferenceTooltips.css
- fileDownload[ResourceLoader|type=general|hidden|default]|fileDownload.js
- batchupload[ResourceLoader|type=general|default|hidden|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|dependencies=mediawiki.Uri,mediawiki.util]|QDmodal.js|QuickDiff.js|QDmodal.css
- Message-names[ResourceLoader|rights=editinterface|type=general|dependencies=mediawiki.util]|Message-names.js
- oswf[ResourceLoader|type=general|targets=desktop,mobile|default|hidden]|oswf.js
- oswf-core[ResourceLoader|type=general|targets=desktop,mobile|dependencies=oojs-ui-core,oojs-ui.styles.icons-movement|hidden]|oswf-core.js
- ezcopy[ResourceLoader|type=general|targets=desktop]|ezcopy.js|ezcopy.css
- table-csv[ResourceLoader|type=general|targets=desktop]|table-csv.js
- 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
Other
- searchfocus[ResourceLoader]|searchfocus.js
- sigreminder[ResourceLoader|type=general|actions=edit|default]|sigreminder.js
- sigreminder-core[ResourceLoader|dependencies=ext.gadget.rsw-util|type=general|hidden]|sigreminder-core.js
- defaultsummaries[ResourceLoader|dependencies=oojs-ui-core|actions=edit]|defaultsummaries.js
- showAdvancedData[ResourceLoader|type=styles|targets=desktop,mobile]|showAdvancedData.css
- gadgetLinks[ResourceLoader|type=general]|gadgetLinks.js
- crob[ResourceLoader|actions=view|type=general|dependencies=ext.gadget.rsw-util]|crob.js|crob.css