Last edited 8 months ago
by Demo writer

Template:TOClimit: Difference between revisions

hw>Mlink-rodrigue
No edit summary
 
No edit summary
Tag: 2017 source edit
 
(4 intermediate revisions by 2 users not shown)
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  {{#ifeq:{{{inline|}}}|1|inline}}  {{#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
},
"inline": {
"label": "Inline anzeigen",
"example": "0,1",
"default": "0",
"autovalue": "0",
"suggested": true
}
}
},
},
"description": {
"description": {
"en": "TOClimit",
"en": "Customized TOC",
"de": "TOClimit"
"de": "Angepasstes Inhaltsverzeichnis"
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 14:49, 6 March 2024

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
Inline anzeigeninline

no description

Default
0
Example
0,1
Auto value
0
Unknownsuggested