I'm not at all familiar with the magic words handling stuff; I have a
desire to be able to hide lower level headings absolutely (toclimit-3
for example) so I can use level 5 or 6 headings for a particular UI
purpose without them showing up in the TOC.
According to a response on
https://secure.wikimedia.org/wikipedia/en/wiki/Template_talk:TOClimit#What_…
the effect is actually relative (i.e., a level 6 header directly
under a level 1 header counts as "2 deep" not 6) rather than absolute.
Wanting to see what's under the hood I downloaded 1.15.1 and started
wandering around trying to figure out the magic words parsing and am
immediately confused.
I know PHP acceptably well but this particular set of stuff is not
giving me a good place to start figuring out the TOC formatting. I
looked in ImagePage.php and at MediaWiki:Common.css and am not seeing
where to start particularly - just grepping for "TOC" in * and
following stuff down from there didn't help much so far.
Where do I need to start looking to understand how the TOC is actually produced?
--
-george william herbert
george.herbert(a)gmail.com