Difference between revisions of "Template:TOC"

m
(Tag: 2017 source edit)
m
(Tag: 2017 source edit)
 

Allows to specify how deep the TOC levels go (up to level 4)

no description
empty
empty
optional

Template parameters

Parameter Description Type Status
Limit limit

Limits heading levels. If value is 2, the TOC is 2 levels deep

Default
4
Example
2
Auto value
empty
Unknown required
<div class="{{#if:{{{limit|}}}|toclimit-{{{limit|}}}}}">__TOC__</div>
        
        
        <noinclude>
        
        
        <templatedata>
        
        {
        
        	"params": {
        
        		"limit": {
            
            			"description": "Limits heading levels. If value is 2, the TOC is 2 levels deep",
            
            			"example": "2",
            
            			"default": "4",
            
            			"required": true
            
            		}
        
        	},
        
        	"description": "Allows to specify how deep the TOC levels go (up to level 4)"
        
        }
        
        
        </templatedata>
        
        
        </noinclude>
(10 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
{
 
{
 
"params": {
 
"params": {
"limit": {}
+
"limit": {
 +
"description": "Limits heading levels. If value is 2, the TOC is 2 levels deep",
 +
"example": "2",
 +
"default": "4",
 +
"required": true
 +
}
 
},
 
},
 
"description": "Allows to specify how deep the TOC levels go (up to level 4)"
 
"description": "Allows to specify how deep the TOC levels go (up to level 4)"

Attachments

Discussions