Difference between revisions of "Template:Toclimit/doc"
From EVE University Wiki
(Deprecated; use Template:TOC) |
m (Rewrite doc.) |
||
Line 1: | Line 1: | ||
− | + | ; Description | |
− | ;Description | + | : This limits the level of heading displayed in the table of contents(TOC). |
− | :This limits the level of heading displayed in the TOC | ||
− | ; | + | ; Dependencies |
+ | :; Uses | ||
+ | :: {{T|TOC}} | ||
− | : | + | ; Syntax |
− | : | + | : {{T|Toclimit|limit}} |
− | :. | + | :; Parameters |
− | + | ::; limit : Number indicating the highest heading level to show in the table of contents. The lower, the fewer heading levels are shown. Note that in articles, the main level for headings starts at 2 (the article title is H1). Valid values 2 till 6. Defaults to 2. | |
− | + | <!-- | |
− | + | ; Required CSS | |
− | :toclevel- | + | : .toclimit-2 .toclevel-1 ul, |
+ | : .toclimit-3 .toclevel-2 ul, | ||
+ | : .toclimit-4 .toclevel-3 ul, | ||
+ | : .toclimit-5 .toclevel-4 ul, | ||
+ | : .toclimit-6 .toclevel-5 ul, | ||
+ | :.toclimit-7 .toclevel-6 ul { display: none; } | ||
− | + | : toclevel-# is standard in all TOCs. toclimit-# is not; it is a div encasing the TOC when this template is used.--> | |
− | : | ||
− | + | <includeonly>[[Category:Link templates]]</includeonly> | |
− | [[Category:Template documentation]]</noinclude> | + | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 17:35, 28 May 2023
- Description
- This limits the level of heading displayed in the table of contents(TOC).
- Dependencies
-
- Uses
- {{TOC}}
- Syntax
- {{Toclimit|<limit>}}
- Parameters
-
- limit
- Number indicating the highest heading level to show in the table of contents. The lower, the fewer heading levels are shown. Note that in articles, the main level for headings starts at 2 (the article title is H1). Valid values 2 till 6. Defaults to 2.