Stardew
全站通知:

模板:Toclimit

来自星露谷物语
跳到导航 跳到搜索
模板文档 [ 模板文档页面 ](*提醒:部分模板可能不会输出任何内容)
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-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.
Syntax
<toclimit|limit>
limit is the highest level to display. It can be either the first parameter or the limit parameter.