Template:Horizontal TOC/doc

This template lays out the table of contents in a horizontal list rather than a vertical one.

Usage
There is no need to specify : this template handles that automatically.
 * See example

To hide the generated heading numbers, use:


 * See example

To suppress the parentheses around subsection lists, use:

To limit the depth of the generated headings to the first headings only, use:


 * See example

To float the table of contents to the center of the page, use:


 * See example

For country and state lists with flag icons, see these examples: Legality of cannabis by country. And: Legality of cannabis by U.S. jurisdiction.

Limitations
Since the Vector 2022 skin forces the table of contents into a sidebar or a pop-up menu, this template does not control the placement of the TOC in that skin.