Last modified: 2014-01-05 10:59:29 UTC
A checkbox, greyed out when there are more than 2 headings(?), setting: <meta property="mw:PageProp/forcetoc">
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: [WIP] Let users set #REDIRECT, __NOTOC__, & __FORCETOC__ https://gerrit.wikimedia.org/r/95103
Change 95103 merged by jenkins-bot: Let users set __NOTOC__ & __FORCETOC__ status https://gerrit.wikimedia.org/r/95103