[Mediawiki-l] Extensions and the TOC

Paul Jones shagreel at gmail.com
Thu Jun 15 19:45:29 UTC 2006


I have written some extensions which output headers at the top of some text.

For example:
<h2>My title</h2>
My text goes here.

The titles never show up in the table of contents.

I have tried outputting "==My title==" which just shows the equals signs.
I have tried $wgOut->parse("==My title==") which looks nice but still does
not show up in the TOC.
I have tried "<h2>My title</h2>" which again looks nice but does not show up
in the TOC.

Is there a way to make the output of an extension show up in the TOC?

Thank you for any help.
Paul



More information about the MediaWiki-l mailing list