Page MenuHomePhabricator

?action=info should have a Table of Contents
Open, Needs TriagePublicFeature

Description

Feature summary
Page analysis by action=info should have a table of contents at the top when there are enough sections to warrant it. This could also be helpful on Special:Version.

Use case(s)
Visit "Page information" for any page to validate information for the page.

Benefits
Meanwhile many of the resulting pages became rather long.

  • It does need some scrolling to reach the bottom.
  • This is not good for mobile devices.
  • It is even worse for accessibility.

Challenge
The TOC is not static.

  • LINT errors may occur and trigger an additional section.
  • If a page does not exist, there is a pageinfo but no history section.
  • Further issues might occur in future.
  • Site generated content might provide headlines, as in pageinfo-footer (example) or even pageinfo-header and could depend upon namespace, page existence etc.

A dynamic <h2> collection mechanism, grabbing the id= already present is required. Look for id="Logb.C3.BCcher" here.

Event Timeline

Another thing that is missing in the task desc: https://en.wikipedia.org/w/index.php?title=Kazan&action=info has a self-made ToC (generated by https://en.wikipedia.org/wiki/MediaWiki:Pageinfo-header). Other wikis might’ve copied this. This would also cease to be needed if this was implemented.