Template:TOC limit: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
m (delete noinclude tags)
(add category)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div>
<includeonly><div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div></includeonly><noinclude>
==Usage==
<nowiki>{{TOC limit}}</nowiki>

The template defaults to including only the first- and second-level headings, e.g. those numbered "1" and "1.1" in the TOC.
You can specify a different limit by adding a header level:

<nowiki>{{TOC limit|4}}</nowiki>

4 allows for third-level headings, e.g. "1.1.1", but omits any subheadings below that from the TOC.
[[Category:TOC templates|{{PAGENAME}}]]
</noinclude>

Latest revision as of 12:37, 4 June 2016

Usage

{{TOC limit}}

The template defaults to including only the first- and second-level headings, e.g. those numbered "1" and "1.1" in the TOC. You can specify a different limit by adding a header level:

{{TOC limit|4}}

4 allows for third-level headings, e.g. "1.1.1", but omits any subheadings below that from the TOC.