Page MenuHomePhabricator

Find way to include subheader in WPX icon-based table of contents
Open, MediumPublic

Description

The MediaWiki table of contents will list sections and subsections and so on and so forth. CollaborationKit, which relies on icons, links only to main sections, with no feasible way to include links to subsections. Is there a design approach that will let us link to subsections?

Event Timeline

Harej assigned this task to Isarra.
Harej raised the priority of this task from to Medium.
Harej updated the task description. (Show Details)
Harej moved this task from Needs Triage to Bugs/Improvements on the WikiProject-X board.
Harej added subscribers: Isarra, Aklapper, Harej.

May need to figure out how we're handling the page content content types first. That being said, this could be as simple as using the headers out of that content:

  1. If it's a list with headers in, those headers could be the subsections
  2. If wikitext with sections, again, those sections would be subsections
  3. ...
  4. Profit!

Sure @Isarra but how would those subsections be included in the table of contents?

By prodding the content of each section (subpage) with a stick and demanding the information on pain of death.

I'm mostly serious. Basically the same way we get the content/headers already, just with more complicatedness.

Yes, but what would it look like?

Maybe dropdowns. Or maybe just list them underneath. Or maaaaaybe... owls. The owls are not what they seem.

I dunno, but if we put them on the page first, I should be able to come up with whatever's least bad by trial and error. And possibly screaming.