Hi, I constantly find myself fighting the wiki syntax. Today the problem is that I want a TableOfContents that does NOT include the page title. To be honest, I do not understand why the page title (level 1) is included in the TOC, and why it does not appear in the head-title (<head><title>). I found with Google that there is a syntax like: [[TableOfContents(4,2)]] instead of [[TableOfContents(2)]] Probably I am using it wrong, can some one help me with: http://wiki.centos.org/HowTos/Laptops/IBM/Thinkpad-T43 Thanks, -- -- dag wieers, dag at wieers.com, http://dag.wieers.com/ -- [Any errors in spelling, tact or fact are transmission errors]
On Nov 30, 2007 9:51 AM, Dag Wieers <dag at wieers.com> wrote:> > I constantly find myself fighting the wiki syntax. Today the problem is > that I want a TableOfContents that does NOT include the page title. > > To be honest, I do not understand why the page title (level 1) is included > in the TOC, and why it does not appear in the head-title (<head><title>). > > I found with Google that there is a syntax like: > > [[TableOfContents(4,2)]] > > instead of > > [[TableOfContents(2)]] > > Probably I am using it wrong, can some one help me with: > > http://wiki.centos.org/HowTos/Laptops/IBM/Thinkpad-T43I've fixed it on that page. The number for the TableOfContents macro is the number of levels shown in the TOC, not the start level. (As far as I understand it). The start the TOC on a lower level add this to the page : #pragma section-numbers 2 This apparently means that the TOC starts from level 2. Regards, Tim -- Tim Verhoeven - tim.verhoeven.be at gmail.com - 0479 / 88 11 83 Hoping the problem magically goes away by ignoring it is the "microsoft approach to programming" and should never be allowed. (Linus Torvalds)
Dag Wieers wrote:> I found with Google that there is a syntax like: > > [[TableOfContents(4,2)]] > > instead of > > [[TableOfContents(2)]]Try [[TableOfContents(2,3)]] (from depth to depth). But thanks for pointing that out.> Probably I am using it wrong, can some one help me with: > > http://wiki.centos.org/HowTos/Laptops/IBM/Thinkpad-T43Done :) Cheers, Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos-docs/attachments/20071130/bfe55d6b/attachment.sig>