[cloned from http://mindwiki.de/wikka_toc/] =====mindWiki TOC===== **status:** proposed, works fine with mindWiki i'm not sure if all the features provided by the toc action are useful but i wanted a flexible routine that works even with document structures which are for some reason not formed as usually expected, i.e. it will work with samples like the following: =====level 1===== ===level 3=== ====level 2==== the final version may drop one feature or the other to cut down size of code and processing time. but the action should at least support references to other pages (i.e. a toc can be placed in a page of its own, maybe together with more toc actions listing several wikipages at once, one for each chapter of a large documentation). this is not implemented yet. the table of contents will list all headlines that //follow the line of the table itself// as long as they are on the same or a deeper level as the first headline that matched. it is possible to place more than one toc in one page and thus give several sections its own tocs. each toc follows its own logic ant thus may list a headline twice. it's up to the author to set meaningful boundaries as listed below to avoid interferences when more than one toc is used related to the same wikipage. the action provides following parameters: - **format="string"** - determines the type of list for the toc. each level can have its own format, the format identifier then are delimited by spaces. if the document has more heading levels than formats are specified, the last format will be used for all following levels. default is a bulleted list. for example format="num bullet alpha" will use numbers for the first //used// level (that may not nessecarily be

!), bullets for the second level and capitals for the third, and - if present - for the fourth level. following formats are available: - indent - no bullets, no numbering - bullet - an