Template:Toclimit

From MegaGlest
Revision as of 23:10, 7 August 2009 by Yoshord (talk) (pseudo-copied from wikipedia:Template:TOClimit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template documentation (for the above template)[view] [edit] [purge]
Description
This limits the level of heading displayed in the TOC. This uses __TOC__, so the TOC will appear where the heading is.
Required CSS
.toclimit-2 .toclevel-2,
.toclimit-3 .toclevel-3,
.toclimit-4 .toclevel-4,
.toclimit-5 .toclevel-5,
.toclimit-6 .toclevel-6,
.toclimit-7 .toclevel-7 { display: none; }
toclevel-# is standard in all TOCs. toclimit-# is not; it is a div encasing the TOC when this template is used.
Syntax
{{toclimit|limit}}
limit is the highest level to display. It can be either the first parameter of the limit parameter.