close
Jump to content

Wikibooks:Reading room/Proposals

Add topic
Page move-protected
From Wikibooks, open books for an open world
Latest comment: 13 days ago by Codename Noreste in topic New gadget to browse subpages
BERJAYAArchivesWikibooks Discussion Rooms
Discussions Assistance Requests
General | Proposals | Projects | Featured books Administrative | Technical Deletion | Undeletion | Import | Upload | Permissions

Welcome to the Proposals reading room. On this page, Wikibookians are free to talk about suggestions for improving Wikibooks.


New gadget to browse subpages

[edit | edit source]

Hi all! I developed a gadget to easily browse subpages through a collapsible menu, that I think might be useful in Wikibooks. Here's a little demo video:

To test it yourself, add the following to your common.js:

mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-Subpages' );

If you find it useful, I can enable it as a gadget to make it generally available from the preferences. Thoughts? Cheers! Sophivorus (discusscontribs) 16:02, 2 July 2026 (UTC)Reply

Wikibooks relies heavily on subpages, so this is a nice addition. Merci. ―Justin (koavf)TCM 16:43, 2 July 2026 (UTC)Reply
This could be extremely useful for books here!! I'll note, though, that it doesn't work quite right with the vector legacy skin (what I use). —Kittycataclysm (discusscontribs) 01:20, 3 July 2026 (UTC)Reply
@Sophivorus I will be the one in charge installing this as a gadget since there is no objection, but what dependecies does this gadget need to use? You might also want to read Kittycataclysm's suggestion above. Muchos saludos. Codename Noreste (discusscontribs) 23:08, 9 July 2026 (UTC)Reply
@Codename Noreste Hi! I just fixed the issue with Vector legacy and also for other skins. Regarding dependencies, this gadget requires mediawiki.api and @wikimedia/codex. If you want to take care of the installation, please do not copy-paste the source code, but rather load the global version using mw.loader.load( '//www.mediawiki.org/w/load.php?modules=ext.gadget.Global-Subpages' );, like other global gadgets. Thanks! Sophivorus (discusscontribs) 14:22, 22 July 2026 (UTC)Reply
I put the code on the gadgets definition page @Sophivorus, but feel free to fix what I placed. Codename Noreste (discusscontribs) 21:45, 22 July 2026 (UTC)Reply