Feature summary
On action=info, the generated page shall be equipped with a TOC.
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.