Template:TOClimit: Difference between revisions

m (1 revision imported)
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}} {{#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}} {{#if:{{{inline|}}}|inline|}} {{#ifeq:{{{fontlarge|}}}|1|fontlarge}}">__TOC__</div></includeonly><noinclude>
<templatedata>
<templatedata>
{
{

Revision as of 07:34, 16 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 when set to 1

Unknownsuggested
No titlenotitle

Removes title when set to 1

Unknownsuggested
No bordernoborder

Removes border when set to 1

Unknownsuggested
Larger font sizefontlarge

Sets size to match regular content size

Unknownsuggested