Template:Horizontal TOC

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.

For example,

produces: