[pmwiki-users] Re: (:toc) on another page

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 29 19:44:52 CST 2005


On Wed, Mar 30, 2005 at 01:27:38PM +1200, John Rankin wrote:
> Yes, I dithered over which way to go. I eventually plumped for
> (:toc-page PageName:) over (:toc page=PageName:) for these reasons:
> - other directives, such as include and redirect are of the form
>   (:directive PageName:) so I followed this convention, although
>   I suspect there are exceptions
>[...]

FWIW, I dithered over the same issue(s) for the latest (:attachlist:)
markup, and I ultimately came to the conclusion that followng the
include/redirect convention would indicate

   (:toc PageName:)

over either (:toc page=PageName:) or (:toc-page PageName:).  Using
ParseArgs(), one can now handle spaces with something like

   (:directive "Page Name":)

And I also thought of allowing both (:directive PageName:) and
(:directive page=PageName:), but decided to skip that for the time
being and perhaps come back to it later.

Pm



More information about the pmwiki-users mailing list