Template:TOClimit: Difference between revisions

hw>Mlink-rodrigue
No edit summary
No edit summary
Tag: 2017 source edit
 
(5 intermediate revisions by the same user not shown)
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}} {{#ifeq:{{{inline|}}}|1|inline|}} {{#ifeq:{{{fontlarge|}}}|1|fontlarge}}">__TOC__</div></includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 11: Line 11:
"example": "2",
"example": "2",
"default": "4",
"default": "4",
"required": true
"required": true,
"label": {
"de": "Limit",
"en": "Limit"
}
},
},
"nonum": {
"nonum": {
Line 19: Line 23:
},
},
"description": {
"description": {
"en": "Removes numbering when set to 1",
"en": "Removes numbering",
"de": "Nummerierung wird nicht angezeigt bei Wert 1"
"de": "Nummerierung wird nicht angezeigt bei Wert 1"
},
},
"suggested": true
"suggested": true,
"type": "boolean",
"autovalue": "0"
},
},
"notitle": {
"notitle": {
Line 30: Line 36:
},
},
"description": {
"description": {
"en": "Removes title when set to 1",
"en": "Removes the heading",
"de": "Titel nicht angezeigt bei Wert 1 "
"de": "Titel entfernen"
},
},
"suggested": true
"suggested": true,
"type": "boolean",
"autovalue": "0"
},
},
"noborder": {
"noborder": {
Line 41: Line 49:
},
},
"description": {
"description": {
"en": "Removes border when set to 1",
"en": "Removes the border",
"de": "Rahmen wird nicht angezeigt bei Wert 1"
"de": "Rahmen entfernen"
},
},
"suggested": true
"suggested": true,
"type": "boolean",
"autovalue": "0"
},
},
"fontlarge": {
"fontlarge": {
Line 52: Line 62:
},
},
"description": {
"description": {
"en": "Sets size to match regular content size",
"en": "Sets size to match the regular content size",
"de": "Schriftgröße wird dem Seiteninhalt angepasst"
"de": "Schriftgröße wird dem Seiteninhalt angepasst"
},
},
"suggested": true
"suggested": true,
"type": "boolean",
"autovalue": "0"
},
"inline": {
"label": {
"en": "Display inline",
"de": "Inline"
},
"description": {
"en": "Aligns items in one row (only possible if limit is set to 1)",
"de": "Stellt die Überschriften in einer Reihe da (nur möglich, wenn das Limit auf 1 gesetzt ist)"
},
"type": "boolean",
"suggested": true,
"autovalue": "0"
}
}
},
},

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