Template:CompactTOC8/doc

Purpose
This Table of Contents replacement for alphabetical lists provides all the features of Template:CompactTOC7, plus ones from Template:CompactTOC2, etc. that #7 doesn't have (the "Top" "0-9" sections, optionally), and allows you to select what other sections you want. Even the centering is optional, and you can have the "Contents" heading on the top (default) or the side.

Usage
Typical:

For alphabetical only (no number or symbol entries):

For maximum number of features and centered placement (leave off a parameter or change it to blank or "no" to disable a feature'''

or

Parameters

 * &mdash; change the heading to an alternative name instead of "Contents", or hide it completely by entering
 * &mdash; put the "Contents" heading on the left side with a colon, instead of the top without one
 * &mdash; center to ToC in the horizontal middle of the page, instead of floated left
 * &mdash; align the ToC horizontally to the right of the page (may require  after it, depending on page layout), instead of floated left (this parameter is mutually exclusive with the "center" option above, and should be used sparingly and with good reason)
 * &mdash; sets the alignment of the links inside the table; default is left; use,   or
 * &mdash; no linebreak between the A-B-C-etc. stuff and the See also/References/etc. stuff (note: does not affect the heading; use  for that)
 * &mdash; enable the "Top" link; this is only useful if this copy of the ToC is at the bottom (or middle, theoretically) of the page, as a secondary ToC (every rendered page has a hidden  above the sitenotice which makes this link work without having to do anything but enable it in the template)
 * &mdash; enable the "!$@" link for symbolic entries section
 * &mdash; enable the "0–9" link for numeric entries section (note that it is "–", the en-dash, not "-", the hyphen-minus at upper right of most keyboards)
 * &mdash; enable the "!–9" link for combined symbolic and numeric entries section (note that it is "–" not "-", and that the preceding two options are mutually exclusive with this one)
 * ,  and   &mdash; add up to 3 extra "custom" sections at the end of the list (alternatively  )
 * &mdash; enable link to the "See also" section
 * &mdash; enable link to the "References" section (note that it is plural)
 * &mdash; enable link to the "Notes" section (note that it is plural)
 * &mdash; enable link to the "Notes" section, but placed before "References"; do not use with  (note that it is plural)
 * &mdash; enable link to the "External links" section

Letters
Any letter can be deleted by adding it as a lowercase blank parameter, or replaced with an unlinked letter by using that letter:

With a little more work, one can create range links:

(or  etc.)

Shorthand
For quicker referencing common usage,  can be entered as the first parameter (before  ):

Examples
