MediaWiki:Gadgets-definition: Difference between revisions

no edit summary
(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. 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...")
 
No edit summary
Tag: Reverted
Line 1:
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 mw.pages, it may be a good idea to propose it on the [[Forum:Redwood Grove|Redwood Grove]] first.
 
==Core==
* rsw-mw.util[ResourceLoader|dependencies=mediawiki.mw.util|type=general|default|hidden]|rsw-mw.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-mw.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-mw.util,oojs-ui-core|type=general|hidden]|exchangePages-core.js
* GECharts[ResourceLoader|type=general|default]|GECharts.js
* GECharts-core[ResourceLoader|dependencies=ext.gadget.rsw-mw.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-mw.util,oojs-ui-core,oojs-ui-windows|type=general|skins=vector|hidden]|compare-core.js|compare.css
<!-- * youtube[ResourceLoader|dependencies=ext.gadget.rsw-mw.util|type=general|hidden]|youtube.js --> <!-- disabled since embedding youtube is not allowed in CSP -->
* autosort[ResourceLoader|dependencies=ext.gadget.rsw-mw.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-mw.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-mw.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-mw.util|hidden]|checkboxList-core.js|checkboxList.css
* Charts[ResourceLoader|type=general|default]|Charts.js
* Charts-core[ResourceLoader|type=general|hidden|dependencies=ext.gadget.rsw-mw.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-mw.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.mw.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-mw.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-mw.util,oojs-ui-core,mediawiki.widgets|type=general|hidden]|calc-core.js|calc.css
* infoboxQty[ResourceLoader|dependencies=ext.gadget.rsw-mw.util|type=general|skins=vector|default|hidden]|infoboxQty.js
* calculatorNS[ResourceLoader|dependencies=mediawiki.mw.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-mw.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
Line 57:
 
==User==
* autowelcome[ResourceLoader|actions=edit|dependencies=ext.gadget.rsw-mw.util|type=general|skins=vector]|autowelcome.js
* contributions[ResourceLoader|type=general|skins=vector|default|dependencies=ext.gadget.rsw-mw.util]|contributions.js
* editCount[ResourceLoader|type=general|skins=vector|dependencies=ext.gadget.rsw-mw.util]|editCount.js
* code-snippets[ResourceLoader|actions=edit|type=general|skins=vector|dependencies=mediawiki.mw.util|default]|code-snippets.js
 
==Appearance==
* skinTogglesNew[ResourceLoader|dependencies=mediawiki.mw.util,ext.gadget.rsw-mw.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.mw.util|skins=minerva|default|hidden]|skinTogglesMobile.js|skinTogglesMobile.css
* utcclock[ResourceLoader|type=general|skins=vector|dependencies=mediawiki.mw.util,ext.gadget.skinTogglesNew|default]|utcclock.js|utcclock.css
* relativetime[ResourceLoader|actions=edit,view|dependencies=mediawiki.mw.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
Line 86:
* 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.mw.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.mw.util,mediawiki.api|default]|dropdown.js
* newPage[ResourceLoader|default|type=general|skins=vector|dependencies=ext.gadget.rsw-mw.util|rights=createpage]|newPage.js
* purge[ResourceLoader|default|type=general|skins=vector|dependencies=ext.gadget.rsw-mw.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.mw.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.mw.util]|QDmodal.js|QuickDiff.js|QDmodal.css
* Message-names[ResourceLoader|rights=editinterface|type=general|skins=vector|dependencies=mediawiki.mw.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
Line 112:
* 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-mw.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-mw.util]|crob.js|crob.css
* clippy[ResourceLoader|type=general|skins=vector]|clippy.js|clippy.css
* switch-infobox-sandbox[ResourceLoader|dependencies=ext.gadget.rsw-mw.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-mw.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-mw.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