Page MenuHomePhabricator

Allow configuration of the Minerva menu
Open, Stalled, MediumPublicFeature

Description

Currently the menu contains various links but is not customisable either via MediaWiki:Sidebar or LocalSettings.php

This is due to the limited space available in the menu (it was not designed as a dumping ground for links) and the fact that links are more complex than they are in Vector e.g. they feature an icon/are more limited in how they can be laid out.

It should also be possible for mobile versions of skins (for example ?useskin=vector&useformat=mobile) to invoke these menus if wished)


Version: unspecified
Severity: enhancement
URL: http://lists.wikimedia.org/pipermail/mobile-l/2014-April/006882.html
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=63419

related requests

https://m.mediawiki.org/wiki/Topic:Uiervvqroaxj4ya9

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Jdlrobson renamed this task from Allow configuration of the mobilefrontend menu and allow it to apply to any skin in mobile mode to Allow configuration of the Minerva menu.Nov 22 2017, 5:57 PM

I recommend looking into what BlueSky does, both for icons and customisability. Essentially you probably want to create a second navigation interface message structured like the sidebar with an extra |item for icon specifying, with a parser that functions similarly to a simplified version of the sidebar parser that outputs a standard portlet/set of portlets. This approach allows for onwiki customisation both for the rendered html (editing the mediawiki namespace interface message) and js overrides using the standard addportletlink etc functions, which work with pretty much anything following the expected structure.

...may also want to add a config variable so third party sites can just throw in their sidebar instead of having an entirely separate menu.

@ovasileva @Jdlrobson just came across this in the design backlog, wanted to call it out since it's something we've been talking about with Advanced Mobile Contributions.

Can you elaborate on the use case @Nirmos ? Why would you want to add a link via JavaScript?

IMO, there should be a way to customize this menu using user JavaScript files (common.js / minerva.js). Using userscripts is the only way I see for an individual user to customize this menu for his / her needs.

Can you elaborate on the use case @Nirmos ? Why would you want to add a link via JavaScript?

IMO, there should be a way to customize this menu using user JavaScript files (common.js / minerva.js). Using userscripts is the only way I see for an individual user to customize this menu for his / her needs.

Got it. This task is purely from the sysop perspective. Customising via JS gadgets is captured in another bug:

T231925: Minerva should support skin agnostic mw.util.addPortletLink or similar

Great idea, mw.util.addPortletLink can be used customize this menu.

I have no idea why this MW-1.27-release (WMF-deploy-2016-01-12_(1.27.0-wmf.10)) tag is still here.

I'd welcome the possibility to customise the mobile sidebar menu:

  1. To be able to translate the menu item (in nia.wp's case, the menu items are half in Indonesian and half Nias);
  2. To add basic community links (announcement, village pump, sandbox, community portal and help).

@Slaia: Hi. This task is only about making customization possible. Specific content in the sidebar of specific websites is off-topic for this task. Thanks.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:23 PM
Aklapper removed subscribers: Nirzar, wikibugs-l-list.

The task [Open] [Feature] T65459 Allow configuration of the Minerva menu was already resolved by Extension:MinervaMenu that worked like charm until MW 1.39 when the hook MobileMenu was depreciated. The task can be resolved again by updating the orphaned extension MinervaMenu in line with the current hooks.

@Interstellarity All updates can be found in their very task.

Jdlrobson-WMF changed the task status from Open to Stalled.May 18 2025, 5:55 PM
Jdlrobson-WMF subscribed.

This is actually supported now. https://www.mediawiki.org/wiki/Skin:Minerva_Neue#Configuration_of_menus

The only thing missing here is the ability to extend the navigation sidebar menu, which is not a Minerva issue - MediaWiki:Sidebar doesn't support defining icons - which is outside the scope of this bug.

MediaWiki:Sidebar's syntax is weird legacy syntax that isn't flexibly customisable because it isn't full wikitext. It needs replacing with something fit-for-purpose.

@Bugreporter2 Sure, and that comment is off-topic in this task. Please provide patches in a separate task.

Question for you: If I got a consensus to add something like WP:Contents to the sidebar in mobile view, would you now be able to do that?