Difference between revisions of "Template:TOClimit"

From SpiralKnights

Jump to: navigation, search
(as far as I can tell we don't have this yet? hope this isn't copyrighted, it shouldn't be.)
 
m (easier usage (test))
Line 1: Line 1:
<div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div><noinclude>{{Documentation}}[[Category:TOC templates]]</noinclude>
+
<div class="toclimit-{{{1|3}}}">__TOC__</div><noinclude>{{Documentation}}[[Category:TOC templates]]</noinclude>

Revision as of 17:38, 22 March 2015

[edit] [purge] Template documentation

Usage

To limit the number of nesting page sections visible in the Table of Contents.

Ideal for reducing clutter, but use sparingly as it can hinder easy navigation and linking.

Code

{{TOClimit|}}

Parameters

1 (no "=" required for input)
Can be a number greater than or equal to 2 (since on this wiki we do not use single "=" ToC)

Examples

{{TOClimit|2}}
Produces

Notes

Ideal for reducing clutter, but use sparingly as it can hinder easy navigation and linking.

Higher numbers can be used, but if the article has more than 4 nesting sections, the article is likely in need of better formatting instead of this template.

This template will also determine the location of the ToC on the page.

What the Numbers Do

What defines a nesting section:

"=?=" in the page code automatically divides pages into sections, like so:

=ToC Subsection Title 1= (not used on this wiki)

==ToC Subsection Title 2==

===ToC Subsection Title 3===

====ToC Subsection Title 4=====

=====ToC Subsection Title 5=====

Where the number of "=" is equal to the number used in this ToC visibility limiting template.

Personal tools