[go: up one dir, main page]

Page MenuHomePhabricator

Allow the ToC to be defined as collapsed or expanded
Open, MediumPublicSpike

Description

Background

In T317818: [L] [SPIKE] Add configurability options for table of contents, we investigated the possibility to set the table of contents as collapsed or expanded based on a given page via a magic word or other methods. This task will be for the development of this functionality

Acceptance criteria

  • Build out a way for the table of contents to be set to collapsed or expanded based on a given page

Event Timeline

ovasileva triaged this task as Medium priority.Mar 24 2023, 4:18 PM
ovasileva created this task.
ovasileva moved this task from Incoming to Current Quarter on the Web-Team-Backlog board.

(Sprint 2 is the current sprint and locked and this doesn't seem urgent so I'm assuming this was an accident - please correct me if I'm missing something!)

(Sprint 2 is the current sprint and locked and this doesn't seem urgent so I'm assuming this was an accident - please correct me if I'm missing something!)

My bad, I meant sprint 3. Thank you!

Moving to sprint 5 as we haven't done the prep-work necessary for this kind of change.

We don't just need the ability to set the TOC as fully collapsed or fully expanded, we need the ability to cause TOC sections to expand one level at a time, as described here: [https://www.mediawiki.org/wiki/Talk:Reading/Web/Desktop_Improvements/Archive8#Could_we_default_to_(or_at_least_allow)_default_collapsing_of_level_3+_headers_in_TOCs?]

This is a priority for very large disambiguation pages in particular (e.g.: Flash), but will be useful on normal articles too. If its out of the scope of this ticket, I'd be happy to create a separate one. Cheers!

Did I miss something? Why is T317818 closed? "a way for the table of contents to be set to collapsed or expanded based on a given page" is pretty far from "adding configurability options". Also no findings are summarized on the other ticket. Regards