Template:TOClimit: Difference between revisions

m (6 revisions imported)
hw>Mlink-rodrigue
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="TOClimit/styles.css" />
<includeonly><templatestyles src="TOClimit/styles.css" />
<div class="{{#if:{{{limit|}}}|toclimit-{{{limit|}}}}}">__TOC__</div></includeonly><noinclude>
<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>
<templatedata>
<templatedata>
{
{
Line 12: Line 12:
"default": "4",
"default": "4",
"required": true
"required": true
},
"nonum": {
"label": {
"en": "No numbering",
"de": "Keine Nummerierung"
},
"description": {
"en": "Removes numbering when set to 1",
"de": "Nummerierung wird nicht angezeigt bei Wert 1"
},
"suggested": true
},
"notitle": {
"label": {
"en": "No title",
"de": "Kein Titel"
},
"description": {
"en": "Removes title when set to 1",
"de": "Titel nicht angezeigt bei Wert 1 "
},
"suggested": true
},
"noborder": {
"label": {
"en": "No border",
"de": "Kein Rahmen"
},
"description": {
"en": "Removes border when set to 1",
"de": "Rahmen wird nicht angezeigt bei Wert 1"
},
"suggested": true
},
"fontlarge": {
"label": {
"en": "Larger font size",
"de": "Größere Schrift"
},
"description": {
"en": "Sets size to match regular content size",
"de": "Schriftgröße wird dem Seiteninhalt angepasst"
},
"suggested": true
}
}
},
},
"description": {
"description": {
"en": "TOClimit",
"en": "Customized TOC",
"de": "TOClimit"
"de": "Angepasstes Inhaltsverzeichnis"
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 08:25, 10 February 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