Page MenuHomePhabricator

"CategoryAboveAll.js" gadget on enwp: "Place the category box above all other content" affects section anchors
Closed, InvalidPublic

Description

When "Place the category box above all other content" is checked under Preferences > Gadgets, the category box is moved to the top of the screen, which makes categories more accessible, etc. However, if this is checked when the editor arrives via an anchor/section link, the category box often moves after the browser view has navigated to the section, offsetting the the link or visual anchor by the height of the category box such that the link/visual anchor is no longer at the top of the editor's window.

https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)/Archive_158#.22Place_the_category_box_above_all_other_content.22_and_section_anchors

Potential solution might be to have the browser re-navigate to the anchor after the category box moves, as part of the gadget.

Not sure who maintains the gadget but wanted to at least file the issue, as it has affected me at least once a day for years now

Event Timeline

czar created this task.Sep 8 2017, 2:50 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 8 2017, 2:50 AM
Legoktm closed this task as Invalid.Sep 8 2017, 5:22 AM
Legoktm added a subscriber: Legoktm.

We don't track issues with on-wiki gadgets on Phabricator, you could try at https://en.wikipedia.org/wiki/Wikipedia_talk:Gadget or WP:VPT again? Sorry about that.

czar added a comment.Sep 8 2017, 5:24 AM

@Legoktm even when they're built into enwp's preferences panel? It isn't an external gadget—I thought it was part of Mediawiki

@Legoktm even when they're built into enwp's preferences panel? It isn't an external gadget—I thought it was part of Mediawiki

Gadgets are fully controlled on-wiki, you can see the code of this gadget is at https://en.wikipedia.org/wiki/MediaWiki:Gadget-CategoryAboveAll.js.

Aklapper renamed this task from "Place the category box above all other content" affects section anchors to "CategoryAboveAll.js" gadget on enwp: "Place the category box above all other content" affects section anchors.Sep 8 2017, 7:24 AM