Template:TOClimit: Difference between revisions

No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
<includeonly><templatestyles src="TOClimit/styles.css" />
<includeonly><templatestyles src="TOClimit/styles.css" />
<div class="customtoc {{#if:{{{limit|}}}|toclimit-{{{limit|}}}}} {{#ifeq:{{{nonum|}}}|1|nonum}} {{#ifeq:{{{notitle|}}}|1|notitle}} {{#ifeq:{{{noborder|}}}|1|noborder}} {{#if:{{{inline|}}}|inline|}} {{#ifeq:{{{fontlarge|}}}|1|fontlarge}}">__TOC__</div></includeonly><noinclude>
<div class="customtoc {{#if:{{{limit|}}}|toclimit-{{{limit|}}}}} {{#ifeq:{{{nonum|}}}|1|nonum}} {{#ifeq:{{{notitle|}}}|1|notitle}} {{#ifeq:{{{noborder|}}}|1|noborder}} {{#ifeq:{{{inline|}}}|1|inline|}} {{#ifeq:{{{fontlarge|}}}|1|fontlarge}}">__TOC__</div></includeonly><noinclude>
<templatedata>
<templatedata>
{
{

Latest revision as of 12:40, 17 August 2023

Customized TOC

Template parameters

ParameterDescriptionTypeStatus
Limitlimit

Limits heading levels (up to level 4). If value is 2, the TOC is 2 levels deep

Default
4
Example
2
Unknownrequired
No numberingnonum

Removes numbering

Auto value
0
Booleansuggested
No titlenotitle

Removes the heading

Auto value
0
Booleansuggested
No bordernoborder

Removes the border

Auto value
0
Booleansuggested
Larger font sizefontlarge

Sets size to match the regular content size

Auto value
0
Booleansuggested
Display inlineinline

Aligns items in one row (only possible if limit is set to 1)

Auto value
0
Booleansuggested