Permanently protected template

Template:Horizontal TOC

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Contents

Template documentation[view] [edit] [history] [purge]

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

Usage

{{horizontal TOC}}

There is no need to specify __NOTOC__: this template handles that automatically.

  • See example

To hide the generated heading numbers, use:

{{horizontal TOC|nonum=yes}}
  • See example

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

{{horizontal TOC|limit=2}}
  • See example

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

{{horizontal TOC|align=center}}
  • 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,

{{horizontal TOC}}

produces:

See also

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Horizontal_TOC&oldid=858023539"
This content was retrieved from Wikipedia : http://en.wikipedia.org/wiki/Template:Horizontal_TOC
This page is based on the copyrighted Wikipedia article "Template:Horizontal TOC"; it is used under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC-BY-SA). You may redistribute it, verbatim or modified, providing that you comply with the terms of the CC-BY-SA