VisualEditor: Allow users to set/edit __FORCETOC__ status in the page metadata panel
Closed, ResolvedPublic


A checkbox, greyed out when there are more than 2 headings(?), setting:

<meta property="mw:PageProp/forcetoc">

Version: unspecified
Severity: enhancement

Perhaps better than this and bug 56866 would be a radio button/dropdown with three options for TOC:
Include an automatic table of contents on this page:

  • Never
  • When there are three or more headings (default)
  • Always

If different wikis (can) have different settings for the number of headings before a TOC then the middle option will need to read that setting.

I say "automatic" above as manual TOC templates such as [[template:Compact ToC]] should always override this setting.

Change 95103 had a related patch set uploaded by Jforrester:

Change 95103 merged by jenkins-bot:
Let users set NOTOC & FORCETOC status

Add Comment