|
|
Line 1: |
Line 1: |
| <includeonly><div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div></includeonly><noinclude>
| | <div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div><noinclude> |
| | | {{documentation}} |
| This template inserts a Table of Contents which omits subheadings beyond a certain depth. The table obeys the same layout rules as the <nowiki>__TOC__</nowiki> magic word. Omitted sections still have section edit links in the article body; the main use for this template is situations where you want section edit links for ease of editing but don't want to clutter the table of contents.
| | </noinclude> |
| | |
| ==Usage==
| |
| Place the below code at the top of the page, replace # with heading level you want.
| |
| <nowiki>{{TOC limit|#}}</nowiki>
| |
| for example
| |
| <nowiki>{{TOC limit|3}}</nowiki>
| |
| Alternatively you can use:
| |
| <nowiki>{{TOC limit}}</nowiki>
| |
| which would assume the default level 3.
| |
| | |
| | |
| For additional info see full documentation of the original template [[w:Template:TOC_limit]]
| |
| | |
| [[Category:Templates]]</noinclude>
| |
Revision as of 09:59, 28 July 2015
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}