Difference between revisions of "Template:TOClimit"
Jump to navigation
Jump to search
(Initial version.) |
|||
Line 1: | Line 1: | ||
− | <div class="toclimit- | + | <div class="toclimit-{{{limit|3}}}">__TOC__</div> |
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
− | "params": {}, | + | "params": { |
+ | "limit": { | ||
+ | "description": "Input from which heading level it should limit", | ||
+ | "example": "2 - 7. 2 = Only the first levels of headingwill be shown, 3 = the first 2 etc.", | ||
+ | "type": "number", | ||
+ | "default": "3", | ||
+ | "autovalue": "3", | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
"description": "This template inserts a Table of Contents which omits subheadings beyond a certain depth. 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." | "description": "This template inserts a Table of Contents which omits subheadings beyond a certain depth. 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." | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 07:04, 4 November 2019
This template inserts a Table of Contents which omits subheadings beyond a certain depth. 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Limit | limit | Input from which heading level it should limit
| Number | required |