The module mediawiki.toc gets not loaded when __TOC__ is only in a message.
Steps to reproduce:
- Create [[MediaWiki:Editnotice-0]] with the content
__TOC__ == H2 ==
- Save the page
- the module mediawiki.toc get loaded and the toc is hideable.
- Edit a page in namespace 0
- The content of MediaWiki:Editnotice-0 is shown before the edit box.
- The toc is not hideable because the module mediawiki.toc is not loaded.
You only see the missing module mediawiki.toc when it is not loaded by the dependency to mediawiki.util. This dependency gets removed in https://gerrit.wikimedia.org/r/131260
Version: 1.24rc
Severity: minor
See Also:
T41049: SyntaxHighlight-Geshi CSS not included in special pages ([[Special:Cite]], [[Special:ExpandTemplates]])