Just insert " __TOC__ " at the desired location. (__NOTOC__ removes a TOC
displayed by default).
Also take a look at your personal settings, there you can include an option to generate a
TOC automatically
HTH
Oliver
=========================================================================
Oliver Burgert
Institut für Rechnerentwurf Phone: ++49-(0)721-608-4261
und Fehlertoleranz (IRF) Fax: ++49-(0)721-608-8270
Haid-und-Neu-Str. 7 Email: burgert(a)ira.uka.de
D-76131 Karlsruhe
http://wwwiaim.ira.uka.de/users/burgert
-----Ursprüngliche Nachricht-----
Von: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-
bounces(a)Wikimedia.org] Im Auftrag von pm823
Gesendet: Donnerstag, 18. November 2004 10:05
An: mediawiki-l(a)Wikimedia.org
Betreff: [Mediawiki-l] Help with "Tables Contents"
Dear all,
I am a beginner with PHP and Javascripts, I have interested in MediaWiki
. I want to build it for sharing linux knowledge.
But I do not know to build the "Table contents" of each page. For
example:
*Contents* [showhide <javascript:toggleToc()>]
1 Overview and history of mathematics
<http://en.wikipedia.org/wiki/Mathematics#Overview_and_history_of_mathemat
ics>
2 Topics in mathematics
<http://en.wikipedia.org/wiki/Mathematics#Topics_in_mathematics>
2.1 Quantity <http://en.wikipedia.org/wiki/Mathematics#Quantity>
2.2 Change <http://en.wikipedia.org/wiki/Mathematics#Change>
2.3 Structure <http://en.wikipedia.org/wiki/Mathematics#Structure>
2.4 Space <http://en.wikipedia.org/wiki/Mathematics#Space>
2.5 Discrete mathematics
<http://en.wikipedia.org/wiki/Mathematics#Discrete_mathematics>
I have found all of information, but there is no more information about
it. I only know "Table contents" are some javascripts. I have found the
MediaWiki (wiki) page source, there is not include any javascrtips code.
How can I insert these code in my "wiki" page ? Anybody could give
me some tips or information ? Thank you very much. :-)
Thanks a lot,
Pete Fong
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l