MediaWiki talk:Gadgets-definition

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
MediaWiki Namespace.svgMediaWiki:Gadgets-definition forms part of the MediaWiki interface and can only be edited by administrators, stewards and interface editors.
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
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 14 days.


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

@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)Reply[reply]
@Steinsplitter: thx → phab:T102776 --El Grafo (talk) 11:45, 17 June 2015 (UTC)Reply[reply]

Yes Piyaphart (talk) 11:41, 2 January 2022 (UTC)Reply[reply]


Would someone please:

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

@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)Reply[reply]
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)Reply[reply]


{{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)Reply[reply]

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)Reply[reply]
 Not done Not much interest from anybody else. --Hedwig in Washington (mail?) 03:39, 20 July 2017 (UTC)Reply[reply]
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)Reply[reply]

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)Reply[reply]

@Perhelion: Dark mode looks awesome! Would it be possible to make it a gadget? Masum Reza📞 00:59, 20 October 2019 (UTC)Reply[reply]
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)Reply[reply]

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)Reply[reply]

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)Reply[reply]

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)Reply[reply]

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)Reply[reply]

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)Reply[reply]

New gadget suggestion: BatchRename[edit]

I've been working a lot in categories like Category:Images with meaningless prefixes and Category:Files of Japan with bad file names. These (and other categories like them) often have large batches of images and other files that are all named similarly, and need the same similar change made to the file name. If there was a way to select a bunch of them, then batch rename them using a pattern of some sort, that would be incredibly useful and save all sort of time. It would probably need some sort of limiter to prevent it from doing too much at the same time.

As an example, in Category:Images with meaningless prefixes, I've been working through a bunch where I'm simply moving the date from the start of the file name to the end. There are hundreds of this particular pattern, and I've run into others like these.

Thoughts? ···日本穣 Talk to Nihonjoe 20:00, 17 May 2022 (UTC)Reply[reply]

  • So somewhat analogous to VFC, but affecting the filename rather than the wikitext. Probably could cannibalize a lot of VFC. - Jmabel ! talk 15:34, 18 May 2022 (UTC)Reply[reply]
moving File:(2019) ปราสาทหินวัดสระกำแพงน้อย 23 DSCN0254.jpg to File:ปราสาทหินวัดสระกำแพงน้อย 23 DSCN0254 (2019).jpg is not good. files should not be moved for cosmetic changes. RZuo (talk) 12:47, 21 May 2022 (UTC)Reply[reply]
i see these files were added into Category:Images with meaningless prefixes by User:Watchduck. a year is not a meaningless prefix. RZuo (talk) 12:50, 21 May 2022 (UTC)Reply[reply]
Yes, renaming files for cosmetic reasons is generally bad. And a year is not technically a meaningless prefix. But some users have the extremely annoying habit to use prefixes to get the "best places" in categories. If this kind of nonsense were tolerated, we would sooner or later get names like File:(Paris) Eiffel tower.jpg. This is not essentially about the cosmetics of file names. It is about discouraging a SEO approach to file names. Watchduck (quack) 19:46, 21 May 2022 (UTC)Reply[reply]
I beg to differ. If all uploaders would start the filename with the date, all photos in every category would be proper sorted by date. --Stepro (talk) 21:45, 21 May 2022 (UTC)Reply[reply]
I doubt that will ever happen, so we'll have to work with what we have. Regardless of that (which is a clarification discussion for somewhere else), this kind of gadget would be extremely useful when moving multiple similarly named files like I've been doing for several hundred photos of a flood in Japan. Whoever originally uploaded them gave them sequentially numbered names, but the names were not helpful in identifying the contents of the photos. Instead of spending days slowly plodding through all of them, a gadget like I describe would have allowed them to be moved within an hour or two. ···日本穣 Talk to Nihonjoe 01:06, 24 May 2022 (UTC)Reply[reply]
@Nihonjoe: Have you tried User:Jeff G./massrename.js as copied from User:Perhelion/massrename.js with doc at User:Jeff G./massrename?   — Jeff G. please ping or talk to me 01:21, 24 May 2022 (UTC)Reply[reply]
I have not. I'll take a look at it. ···日本穣 Talk to Nihonjoe 17:46, 24 May 2022 (UTC)Reply[reply]
@Jeff G.: Okay, I tried it out and it worked well for a batch of about 50 images. Would there be a way to have it also have the option of removing or adding a category (I mostly need the removing part) as part of the moving? All the images were moved fine, but I'll have to manually remove the Category:Files of Japan with bad file names from each one. Being able to do it while moving the file would be much more convenient. Perhaps code could be taken from the regular move request template to do that? ···日本穣 Talk to Nihonjoe 17:40, 25 May 2022 (UTC)Reply[reply]
@Nihonjoe: Maybe, but sadly I can barely read js, let alone write it. Feel free to snag a copy for your own userspace and work on it there. Links to free online tutorials gladly accepted. Note, the cat removal can be done by Cat-a-lot, COM:AWB, COM:JWB, or COM:VFC.   — Jeff G. please ping or talk to me 17:46, 25 May 2022 (UTC)Reply[reply]
I'll try out Cat-a-lot. It looks like the simplest tool to use for what I'm doing. ···日本穣 Talk to Nihonjoe 18:31, 25 May 2022 (UTC)Reply[reply]

Support for Proveit[edit]

It seems that Help:Gadget-ProveIt is "hidden":

  • ProveIt [ResourceLoader|dependencies=mediawiki.api,jquery.cookie,jquery.textSelection,jquery.ui|hidden]|ProveIt.js|ProveIt.css

Would it be possible to enable it on Commons?

(see also this ongoing discussion) A455bcd9 (talk) 08:24, 11 December 2022 (UTC)Reply[reply]