Thanks. I took a quick look, that seems to be a good place to start understanding it.
On Fri, Sep 4, 2009 at 11:33 PM, Dmitriy Sintsov<[email protected]> wrote: > * George Herbert <[email protected]> [Fri, 4 Sep 2009 20:03:03 > -0700]: >> 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_am_I_doing_wrong.3F >> 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? >> > I remember that when I've been parsed the page, some javascript was > insterted into it to generate the TOC. > Perhaps that code would help: > skins/common/prefs.js > // generate toc from prefs form, fold sections > // XXX: needs testing on IE/Mac and safari > // more comments to follow > function tabbedprefs() { > ... > > > this is taken from 1.14.1 > > Dmitriy > > _______________________________________________ > Wikitech-l mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > -- -george william herbert [email protected] _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
