Page MenuHomePhabricator

FORCENOTOC : more granular toc control for transclusion
Open, LowPublicFeature

Description

Currently, the first TOC to appear in a page overrules any NOTOC as well as the implicit table of contents rendering above the first section.

When transcluding a number of pages, which may themselves contain such directives, it becomes useful for the parent page to be able to force layout details of the resulting text + transclusions.

For this purpose, a FORCENOTOC directive would be useful, which would lock the page into a NOTOC mode even if TOC directives appeared later in the page. A TOC placed at the top of the page could still lock the page into TOC mode, if desired.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=13090

Details

Reference
bz18508

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:33 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz18508.
bzimport added a subscriber: Unknown Object (MLST).

See also #13090 for related ideas of supporting aggregated TOCs without transclusion.

Is there a specific public page where this problem is exposed?
Wondering how common this situation is...

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.