Page MenuHomePhabricator

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

Description

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

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

Version: unspecified
Severity: enhancement

Details

Reference
bz56867

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:26 AM
bzimport set Reference to bz56867.

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