Community
Participate
Working Groups
The magic word __TOC__ (http://en.wikipedia.org/wiki/Help:Magic_words) has not been implemented in WikiText, though WikiText is quite capable of producing a table of contents in HTML. Please make this available in WikiText.
@__TOC__@ has been implemented. A table of contents is now emitted providing that the @__TOC__@ appears alone on a line of text. MediaWiki supports generating a table of contents even when @__TOC__@ appears in the middle of a line. If that's important to you please reopen this bug.
Created attachment 168064 [details] mylyn/context/zip
Thank you, David. I tested it now and it looks nice: http://www.eclipse.org/cdo/documentation/relnotes_30/index.php I'm not sure why you told to use @__TOC__@. For me it worked with __TOC__, i.e. without the "@"s.
(In reply to comment #3) > Thank you, David. I tested it now and it looks nice: > http://www.eclipse.org/cdo/documentation/relnotes_30/index.php > > I'm not sure why you told to use @__TOC__@. For me it worked with __TOC__, i.e. > without the "@"s. Funny, you should use Mylyn and WikiText to read the bugs :-) "@__TOC__@" is rendered as code block "__TOC__", i.e. David really meant "__TOC__", while the "@"s were just WikiText formatting instructions.
That's funny. And a bit dangerous ;-)