AW: [Mediawiki-l] Help with "Tables Contents"
Burgert, Oliver
burgert at ira.uka.de
Thu Nov 18 09:57:10 UTC 2004
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 at ira.uka.de
D-76131 Karlsruhe http://wwwiaim.ira.uka.de/users/burgert
> -----Ursprüngliche Nachricht-----
> Von: mediawiki-l-bounces at Wikimedia.org [mailto:mediawiki-l-
> bounces at Wikimedia.org] Im Auftrag von pm823
> Gesendet: Donnerstag, 18. November 2004 10:05
> An: mediawiki-l at 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 at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list