MediaWiki talk:Gadgets-definition

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

MoreMenu gadget[edit]

Screenshot of MoreMenu script.png

Hello! I'd like to propose adding the MoreMenu gadget to Meta. If there is better way to propose gadgets please enlighten me :)

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

I feel this would be a nifty tool for many users, especially admins and stewards. 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:

[[en:WP: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 en:WP:MOREMENU. If you think it is better, I could copy the documentation to Meta, as MoreMenu is also used on at least one other wiki.

Thanks for your consideration — MusikAnimal talk 02:24, 18 April 2017 (UTC)

Hi, I've started a discussion at Babel to treat this request. Regards.--Syum90 (talk) 09:02, 21 April 2017 (UTC)
@MusikAnimal: Hi, as there have been no objections I've added the gadget. I suggest you to replace the "Wikipedia:" links in the gadget's source per "Project:" in order to make this gadget more useful here at Meta as well as in other projects not being wikipedias. Regards.--Syum90 (talk) 11:24, 29 April 2017 (UTC)
@Syum90: Thanks! I have added metawiki support for "Requests for ..." pages, per your suggestion. E.g. try your own userpage and you should see "User" > "RfXs..." > "RfAs". Similarly you'll see links for Requests for bureaucratship, translation adminship, etc., if applicable. Best — MusikAnimal talk 18:28, 30 April 2017 (UTC)
@Syum90: I have migrated the documentation to Meta. Could you update the link in MediaWiki:Gadget-MoreMenu to point to MoreMenu? Thanks! — MusikAnimal talk 22:30, 30 April 2017 (UTC)
Yes check.svg Done 01:18, 1 May 2017 (UTC)

Dependencies for MediaWiki:Gadget-CurIDLink.js[edit]

The gadget MediaWiki:Gadget-CurIDLink.js fails with TypeError: mw.util is undefined. The dependency to module mediawiki.util is missing:

* CurIDLink[ResourceLoader|default|dependencies=mediawiki.util]|CurIDLink.js

--Fomafix (talk) 12:46, 1 May 2017 (UTC)

It worked for me (perhaps cache), but Yes check.svg fixed. Is it better? --Base (talk) 13:04, 1 May 2017 (UTC)

{{editprotected}} Please, do the same thing for markBlocked:

markblocked[ResourceLoader|dependencies=mediawiki.util]|markblocked.js

Matěj Suchánek (talk) 08:44, 3 May 2017 (UTC)

Done, thanks. —MarcoAurelio 10:49, 3 May 2017 (UTC)