模板:TOC limit
跳转到导航
跳转到搜索
This template inserts a Table of Contents which omits subheadings beyond a certain depth. The table obeys the same layout rules as the magic word.
This template can be used by inserting the following into a page:
{{TOC limit}}
The template defaults to including only the first-level headings, e.g. those numbered "1", "2", etc. will still show but those numbered "1.1", "1.1.1", etc. will be hidden.
You can specify a different limit by adding a header level:
{{TOC limit|3}}
This includes the first- and second-level headings, e.g. those numbered "1", "2", "1.1", etc. will show but those numbered "1.1.1", etc. will be hidden.
This template was taken from Wikipedia's similar template.