Last modified: 2014-05-07 14:22:18 UTC
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
Change 131766 had a related patch set uploaded by Gerrit Patch Uploader: Load required modules from messages in parseText() https://gerrit.wikimedia.org/r/131766