Template:Flattoc/Documentation

This template is for making a more horizontal ToC on guide pages that have numerous headings and for which the automatic ToC is extremely long.

Usage
These parameters must be in this order. It is not necessary to put  on the page first.
 * 1) position (start, middle, end): This is a keyword for where in the ToC this heading goes. For the first  use start, for any of the middle headings use middle, and for the last heading in the ToC use end.
 * 2) *width= (#px): This is the only named parameter. Only use it with the start position. It is the minimum width of the ToC, so that the "show/hide" link doesn't overlap the heading title when its content is hidden. If any links in the list have a space in them, you can use this to force the ToC bigger so the links don't wrap to another line and look bad.
 * 3) columns (1-10): The number of columns (maximum of 10) under the heading. This will set what percentage of the overall ToC is given to each column, so if you say "5" here, it expects 5 lists and alots 20% width to each one.
 * 4) heading name: This is the name of the  under which you want to create a list split into multiple columns.
 * 5) list: This is where a  delimited list of   goes. Put as many of these in as the number specified for columns, up to 10.


 * One heading
 * Three plus headings
 * Three plus headings
 * Three plus headings
 * Three plus headings