Is it change the location of the TOC 1) specific to a skin, 2) despite where
the user places __TOC__, 3) without using JavaScript, 4) without changing
the core code of MediaWiki, and 5) output it somewhere other then the
bodytext section.
Basically, I would like to have the rendered HTML output to be something
like this:
<div id="bodyContent">
<!-- Page Content goes here -->
</div>
<div id="sidebar">
<!-- TOC goes here -->
</div>
I see that in "includes/parser/parser.php" that Parser -> formatHeadings
takes care of creating the TOC but I do not want to change the actual core
code of MediaWiki (as this will affect other skins).
Any thoughts? Ideas?
Thanks all :)