VOOZH about

URL: https://minecraft.wiki/w/Forum:Fixing_broken_Navbox_functionality_on_mobile

⇱ Forum:Fixing broken Navbox functionality on mobile – Minecraft Wiki


Forum:Fixing broken Navbox functionality on mobile

From Minecraft Wiki
Latest comment: 22 December 2023 by MarkusRost in topic Fixing broken Navbox functionality on mobile
Jump to navigation Jump to search

Fixing broken Navbox functionality on mobile

Latest comment: 22 December 20232 comments2 people in discussion
The following discussion is closed. Please do not modify it.

I'm not sure where to put this whether it goes in Admin Noticeboard, Community Portal, or in Talk:SimpleNavbox, so I am putting it here.

There is currently an issue with navboxes being uncollapsible on mobile, meaning that they are always shown and they do not have collapse buttons on mobile. This can pose a problem with larger navboxes as on mobile they can take up space and they cannot be hidden under current functionality.

(Test case User:Delvin4519/Sandbox2 - open on mobile)

I did some testing and this issue seems to be caused by the use of "mw-collapsible" and "mw-collapsed" tags in Template:SimpleNavbox, which is admin protected. Use of "mw-collapsible" tags seems to be unavailable on mobile, but regular "collapsible" tags work fine on mobile. I've tested a fix in my userspace by removing "mw-" prefix from the simplenavbox code, and testing a navbox with the test code, and the navbox seems to work fine, but that any "mw-" tags must be have the "mw-" prefix removed.

In order to implement this fix, an admin is required to update Template:SimpleNavbox and remove the "mw-" prefix. However, immediately after this update, a bot must go through all instances of {{SimpleNavbox and change any mw-collaps and mw-expanded to collaps and expanded to avoid breaking any navboxes in the process.

Aside from this change, this fix does not require any other major changes, as it can be done standalone. However, it will signficantly improve the mobile experience by allowing navboxes to be collapsed on mobile across all our articles, which is currently broken at the moment.

Thoughts on this fix? If there are no problems, then the only other issue is getting an admin and bot to coordinate this fix back to back. I'm not aware of if it's possible for "mw-collapsible" to work properly on mobile. Delvin4519 (talk) 19:38, 20 December 2023 (UTC)

As this required an action by an admin and not a discussion, the admin noticeboard would have been the better place for this request. The default "mw-collapsible" class does indeed not work on the mobile skin (phab:T111565), however our custom "collapsible" class does. I have fixed Template:SimpleNavbox and all pages using the template. -- 👁 Image
MarkusRost (talk) 15:08, 22 December 2023 (UTC)
Retrieved from "https://minecraft.wiki/w/Forum:Fixing_broken_Navbox_functionality_on_mobile?oldid=2777100"

Navigation menu