Last edited 8 months ago
by Demo writer

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="{{#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>
{
{
    "params": {
"params": {
        "limit": {
"limit": {
            "description": {
"description": {
                "en": "Limits heading levels (up to level 4). If value is 2, the TOC is 2 levels deep",
"en": "Limits heading levels (up to level 4). If value is 2, the TOC is 2 levels deep",
                "de": "Ermöglicht die Tiefe des Inhaltsverzeichnisses zu bestimmen (bis Level 4)"
"de": "Ermöglicht die Tiefe des Inhaltsverzeichnisses zu bestimmen (bis Level 4)"
            },
},
            "example": "2",
"example": "2",
            "default": "4",
"default": "4",
            "required": true
"required": true
        }
},
    },
"nonum": {
    "description": {
"label": {
        "en": "TOClimit",
"en": "No numbering",
        "de": "TOClimit"
"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": {
"en": "Customized TOC",
"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