Jump to content

Do not begin to migrate content here, it may be wiped without notice. More info.

Template:TOC: Difference between revisions

From Debian Wiki
Created page with "<pre><onlyinclude>{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|<div class="noautonum">}}{{#if:{{{Min|}}}|<div class="tocmin-{{{Min}}}">}}{{#if:{{{Limit|}}}|<div class="toclimit-{{{Limit}}}">}} __TOC___ {{#if:{{{Limit|}}}|</div>}}{{#if:{{{Min|}}}|</div>}}{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|</div>}} </onlyinclude></pre> <templatedata> { "description": "Table of Contents", "params": { "SectionNumbers": { "type": "boolean..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<pre><onlyinclude>{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|<div class="noautonum">}}{{#if:{{{Min|}}}|<div class="tocmin-{{{Min}}}">}}{{#if:{{{Limit|}}}|<div class="toclimit-{{{Limit}}}">}}
<pre><onlyinclude>{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|<div class="noautonum">}}{{#if:{{{Min|}}}|<div class="tocmin-{{{Min}}}">}}{{#if:{{{Limit|}}}|<div class="toclimit-{{{Limit}}}">}}
__TOC___
__TOC__
{{#if:{{{Limit|}}}|</div>}}{{#if:{{{Min|}}}|</div>}}{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|</div>}}
{{#if:{{{Limit|}}}|</div>}}{{#if:{{{Min|}}}|</div>}}{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|</div>}}
</onlyinclude></pre>
</onlyinclude></pre>

Latest revision as of 19:53, 21 February 2026

<onlyinclude>{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|<div class="noautonum">}}{{#if:{{{Min|}}}|<div class="tocmin-{{{Min}}}">}}{{#if:{{{Limit|}}}|<div class="toclimit-{{{Limit}}}">}}
__TOC__
{{#if:{{{Limit|}}}|</div>}}{{#if:{{{Min|}}}|</div>}}{{#ifeq:{{SanitiseBoolean|{{{SectionNumbers|1}}}}}|0|</div>}}
</onlyinclude>

Table of Contents

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
SectionNumbersSectionNumbers

Use a numbered list

Default
true
Booleanoptional
MinMin

Ignore TOC items above this level

Numberoptional
LimitLimit

Ignore TOC items below this level

Numberoptional