MediaWiki talk:Gadgets-definition

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Namespace-mediawiki.svgMediaWiki:Gadgets-definition forms part of the MediaWiki interface and can only be edited by administrators.
To request a change to MediaWiki:Gadgets-definition, add {{Edit request}} to this talk page, followed by a description of your request.
This interface message or skin may be documented on or TranslateWiki.
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 14 days.

Turn on MediaWiki:Gadget-CategoryAboveBelowImage.js[edit]


See discussion: Can someone please turn this on per default? --El Grafo (talk) 07:49, 17 June 2015 (UTC)[]

@El Grafo: Please file a request on phabricator:. This needs a integration in MediaWiki to avoid Jumping Content. --Steinsplitter (talk) 10:48, 17 June 2015 (UTC)[]
@Steinsplitter: thx → phab:T102776 --El Grafo (talk) 11:45, 17 June 2015 (UTC)[]


Would someone please:

Thank you —TheDJ (talkcontribs) 13:50, 23 January 2017 (UTC)[]

@TheDJ: I see you are importing stuff from which is a third party service, thus i have privacy concerns regarding that. The script is also importing stuff from your own userspace. If those two issues are resolved i am happy to crate the gadget. --Steinsplitter (talk) 13:53, 23 January 2017 (UTC)[]
if you have concerns about tracking that is happening at, you should report that with the foundation, since that kind of tracking would be illegal per the terms of usage of the labs infrastructure. If someone wants to copy those scripts into MediaWiki namespace to avoid having to import them from toollabs or from my user space, they are welcome to do so, but since that requires administrative powers, there is little assistance that I can provide in that area. Either is fine with me. —TheDJ (talkcontribs) 14:11, 23 January 2017 (UTC)[]


{{Edit request}}

Screenshot of MoreMenu script.png

Hello! I'd like to propose adding the MoreMenu gadget to Commons. For Vector users, it adds up to two dropdown menus ("Page" and "User") containing links to relevant logs, uploads, external tools, and admin/checkuser/oversight functions. There is an older script designed for Monobook but I'm not sure how well it would work here on Commons.

I feel this would be a nifty tool for many users, especially admins. If you'd like to test it out, you can add the following your vector.js:


The source of the gadget itself would the same, loading it from the English Wikipedia, that way you get all the updates.

Assuming the script will live at MediaWiki:Gadget-MoreMenu.js, the gadget definition would be along the lines of:

* MoreMenu[ResourceLoader|skins=vector|dependencies=mediawiki.api,mediawiki.util,user.options]|MoreMenu.js

And the description could be something like:

[[meta:MoreMenu|MoreMenu]]: add Page and User dropdown menus to the toolbar with links to common tasks, analytic tools and logs (Vector skin only)

linking to the documentation at meta:MoreMenu.

Thanks for your consideration MusikAnimal talk 02:11, 18 April 2017 (UTC)[]

I don't find the script useful for my admin-work. Anyway, @Steinsplitter: for more info. --Hedwig in Washington (mail?) 02:49, 9 May 2017 (UTC)[]
 Not done Not much interest from anybody else. --Hedwig in Washington (mail?) 03:39, 20 July 2017 (UTC)[]
I find this tool extremely helpful for my admin-work. I would support it as a Gadget if others were interested. For now, it lives in my vector.js ~riley (talk) 00:30, 15 November 2019 (UTC)[]

Dark-Vector skin[edit]

Hello, what do you think about to install the Dark-Vector skin⁉ PS: You can try out it on Commons Beta, seems not fully perfect but usable as opt-in. PPS: I mean it looks much better as the black skin installed on the EnWP. -- User: Perhelion 19:37, 19 October 2017 (UTC)[]

@Perhelion: Dark mode looks awesome! Would it be possible to make it a gadget? Masum Reza📞 00:59, 20 October 2019 (UTC)[]
Thanks, yes of course, but I think now it would be good to make a proposal first. -- User: Perhelion 09:04, 21 October 2019 (UTC)[]

I checked Wikipedia and found it has a black background gadget that can be enabled here:

See CSS and discussion:

Some vector wikis on Shoutwiki have a black skin. See discussion:

--Timeshifter (talk) 01:36, 23 October 2019 (UTC)[]

Adding a gadget to make all tables sortable?[edit]

Don't know if simply adding the "sortable" class to a table post-load is enough, or if scripts apply the sorting event handler once on page load, but I'd like to see an official interface gadget that allows users to make tables sortable that weren't explicitly declared unsortable or sortable. Apollolux (talk) 03:42, 27 November 2017 (UTC)[]

WikiMiniAtlas is down[edit]

{{Sudo}} Hi commons admins. meta:WikiMiniAtlas is down due to phab:T185797; I suggest disabling the default load of

WikiMiniAtlas [ResourceLoader|default]|WikiMiniAtlas.js
To prevent readers from ending in an error screen when clicking on the icons until this can be repaired. — xaosflux Talk 16:27, 27 January 2018 (UTC)[]

Make gallery gadget not default[edit]

I'm sure the gadget has some advanced features that are missing in MultimediaViewer, but it seems very confusing that every page has two slideshow experiences by default. We should keep this gadget as an option for users that prefer it, but by default the MultimediaViewer slideshow seems more than sufficient. ed g2stalk 13:35, 28 March 2019 (UTC)[]

Make EditRequest available to template editors[edit]


Please change * EditRequest [ResourceLoader|rights=delete to * EditRequest [ResourceLoader|rights=templateeditor (rest of the line should not be touched) to make this gadget available to template editors as well. It’s just as useful for this group; it’s a silly thing anyways to use delete, which has nothing to do edit requests. Thanks in advance, —Tacsipacsi (talk) 17:21, 28 July 2019 (UTC)[]

✓ Done Awesome! Thank you! Zhuyifei1999 (talk) 00:17, 29 July 2019 (UTC)[]

Please remove the DeepCat gadget[edit]

The gadget is not supported anymore and was replaced by the implementation of the deepcategroy: keyword in Cirrus. The underlying CatGraph service is also not available anymore and will be completely sun-setted at the end of the month. Please do also remove MediaWiki:Gadget-DeepCatExt.js.

See also T243101 and the request to remove the source on German Wikipedia.

Thanks Christoph Jauera (WMDE) (talk) 18:45, 23 January 2020 (UTC)[]

@Christoph Jauera (WMDE): ✓ Done, thanks for the notification. Jean-Fred (talk) 22:42, 23 January 2020 (UTC)[]

Revision Counter[edit]

Is it possible to integrate this helpful tool here? It's a gadget on deWP and shows if resp. how often you edited the page. --Stepro (talk) 23:10, 26 July 2020 (UTC)[]

Cat-a-lot is Vector-only?[edit]

Info non-talk.svg
It is requested that an edit or modification be made to this protected page. Administrators: Please apply <nowiki> or {{Tl}} to the tag after the request is fulfilled.

EGardner (WMF)

Is Cat-a-lot a Vector-only gadget? I believe it shouldn't be, but it doesn't seem to work with other skins like Timeless. If it's not easy to fix that, then I think the gadget should be marked with |skins=vector. whym (talk) 11:15, 3 November 2020 (UTC)[]

Remove hard "jquery.ui" dependency from AjaxQuickDelete and Slideshow[edit]

The AjaxQuickDelete and Slideshow gadgets get loaded on all pages, including Special pages. Both of these gadgets list jquery.ui as a "hard" dependency here using the [ResourceLoader|dependencies=jquery.ui|default|type=general] format. As far as I can tell, this should not be necessary; both gadgets already treat the jquery.ui library as a "soft" dependency with mw.loader.using in their source code. I was able to determine that these two gadgets were loading jquery.ui on Commons special pages by using mw.inspect() and mw.inspect.getDependencyGraph() from my browser console.

jQuery UI is a large library (~350KB uncompressed). If we can avoid loading it in places where we aren't using it, some users would likely see a noticeable performance improvement.

My suggestion is to remove the jquery.ui dependency from these two gadget definitions. If something unexpected were to break, this change can be reverted and we could investigate further.

---EGardner (WMF) (talk) 23:21, 19 January 2021 (UTC)[]

@EGardner, Done! --Krinkle 22:51, 9 July 2021 (UTC)[]
Great, thanks! EGardner (WMF) (talk) 23:34, 13 July 2021 (UTC)[]

switching off MediaWiki:Gadget-userRightsManager.js[edit]

I propose switching this gadget off: it seems to be not maintained as @Mdaniels5757 isn't so active now. At the same time it has some issues described here: it is not always assigning rights as it is intended. I think there is some issue with tokens while performing API-action. rubin16 (talk) 15:56, 9 July 2021 (UTC)[]

JS error in the Move & Replace function[edit]

@Krinkle Hi, I am not sure if your latest edits to MediaWiki:Gadgets-definition result into a new JS error in the Move & Replace function:

Uncaught TypeError: $(...).append(...).dialog is not a function


Could you check please? Thanks a lot. Raymond 09:10, 10 July 2021 (UTC)[]

@Raymond, Fixed in edit. --Krinkle (talk) 17:46, 10 July 2021 (UTC)[]
@Krinkle Thank's a lot. Move & replace works again. Raymond 17:52, 10 July 2021 (UTC)[]