Template:Horizontal TOC/doc: Difference between revisions

From DMARC Wiki
Jump to navigation Jump to search
 
No edit summary
Line 2: Line 2:
<!-- Categories and interwikis go at the bottom of this page. -->
<!-- Categories and interwikis go at the bottom of this page. -->


This template lays out the table of contents in a [[WP:HLIST|horizontal list]] rather than a vertical one.
This template lays out the table of contents in a horizontal list rather than a vertical one.


== Usage ==
== Usage ==
Line 29: Line 29:
{{horizontal TOC|align=center}}
{{horizontal TOC|align=center}}
</pre>
</pre>
== See also ==
* {{tl|List TOC}}
* {{tl|List TOC Letters}}


<includeonly>
<includeonly>

Revision as of 04:38, 1 July 2014

Template:Mbox

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.

To hide the generated heading numbers, use:

{{horizontal TOC|nonum=yes}}

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

{{horizontal TOC|limit=2}}

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

{{horizontal TOC|align=center}}