Template:SimpleTOC/doc

This is an attempt to create a TOC template system that is as stripped-down as possible. It is intended to use for very long tables of contents or indexes, to try and keep them under the template expansion limit.
 * SimpleTOC/s
 * SimpleTOC line
 * SimpleTOC/e

How to use

 * 1) Start the TOC with SimpleTOC/s
 * 2) Each line of the TOC will use SimpleTOC line, which has two parameters:
 * 3) the text that goes on the left (i.e. the chapter title)
 * 4) the text that goes on the right (i.e. the page number)
 * 5) End the TOC with SimpleTOC/e

For example:

This gives the following result:

Styling
This template deliberately avoids parameters for inline CSS (which will make the template too unwieldy for long tables). Instead, use TemplateStyles and Index-specific style sheets to control the layout and appearance of this template.

You can use the parameters  and   to add a CSS class to the chapter or page fields respectively, that can be targeted by your style sheets.

The following classes are included in this template:


 * - removes the dot leaders

Note to template editors
You may be tempted to expand this template to support more complex tables of contents. While this is a desirable aim, please ensure that the templates remain as small as possible or else you may break some very long indices that are already using this template.