Last modified: 2014-10-27 13:52:17 UTC
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.
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...