MediaWiki talk:Gadgets-definition

MediaWiki: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 mediawiki.org or translatewiki.net.
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 14 days.

Turn on MediaWiki:Gadget-CategoryAboveBelowImage.js edit

{{Editprotected}}

See discussion: Can someone please turn this on per default? --El Grafo (talk) 07:49, 17 June 2015 (UTC)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
@Steinsplitter: thx → phab:T102776 --El Grafo (talk) 11:45, 17 June 2015 (UTC)Reply

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

tabularImportExport edit

Would someone please:

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

@TheDJ: I see you are importing stuff from tools-static.wmflabs.org 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
if you have concerns about tracking that is happening at wmflabs.org, 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

MoreMenu edit

{{Edit request}}

 

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:

mw.loader.load('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-dropdown-menus-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

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

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

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

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

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

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

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

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

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

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
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
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
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
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
@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
I have not. I'll take a look at it. ···日本穣 Talk to Nihonjoe 17:46, 24 May 2022 (UTC)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
@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
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

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

Promote Userscript 3D-Models User Script as a gadget on Commons edit

 
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.

Lucas Werkmeister

During the Wikimania Hackathon, a significant amount of 3D content was identified on Wikimedia Commons. However, many users remain unaware of this resource. As a solution, there was a discussion about developing a gadget that would introduce a dedicated "3D Models" section alongside the existing "Images" and "Videos" sections. This enhancement aims to facilitate user access to the extensive collection of 3D models available on Wikimedia Commons.

A user script has been created to implement this feature. It strategically places a "3D Models" button next to the "Videos" section on Wikimedia Commons. This button would serve as a direct link for users to explore the repository of 3D models hosted on the platform. Therefore, we would like to request support for promoting this user script to a fully-fledged gadget, making it more visible and accessible to users interested in 3D content on Wikimedia Commons.

Link to the script: https://www.mediawiki.org/wiki/User:Gopavasanth/UserScripts#1._3DModels.js

cc: @Fuzheado

Regards, Gopavasanth (talk) 07:03, 16 August 2023 (UTC)Reply

Why not just submit this as a patch to the Special:MediaSearch code? It sounds like a great addition which would be translatable and supported there? Jdforrester (WMF) (talk) 07:15, 16 August 2023 (UTC)Reply
I’m inclined to agree; @Gopavasanth how do you feel about that suggestion? (For one thing, the button should be easier to translate in the extension.) Lucas Werkmeister (talk) 22:49, 3 November 2023 (UTC)Reply
@Gopavasanth reminder :) Lucas Werkmeister (talk) 18:05, 2 March 2024 (UTC)Reply
I added {{Edit request}} above because this seems like one. If not, please feel free to remove the template. whym (talk) 14:31, 16 August 2023 (UTC)Reply
Return to "Gadgets-definition" page.