A checkbox, greyed out when there are more than 2 headings(?), setting:
<meta property="mw:PageProp/forcetoc">
Version: unspecified
Severity: enhancement
A checkbox, greyed out when there are more than 2 headings(?), setting:
<meta property="mw:PageProp/forcetoc">
Version: unspecified
Severity: enhancement
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdforrester-WMF | T58865 VisualEditor: Allow users to set/edit behaviour flags in the page metadata panel (tracker) | |||
Resolved | Jdforrester-WMF | T58867 VisualEditor: Allow users to set/edit __FORCETOC__ status in the page metadata panel |
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:
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:
[WIP] Let users set #REDIRECT, NOTOC, & FORCETOC