Manual:Extension/ContentDroplets/Examples and Template:TOClimit: Difference between pages

(Difference between pages)
No edit summary
 
No edit summary
Tag: 2017 source edit
 
Line 1: Line 1:
{{TOClimit|limit=1|nonum=1|notitle=1}}
<includeonly><templatestyles src="TOClimit/styles.css" />
<div class="sectionflex col3 background">
<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>
<div>
<templatedata>
== Statistics ==
{
<bs:whoisonlinepopup /> (<bs:whoisonlinecount />)
"params": {
* Number of characters: <bs:countcharacters mode="chars" />
"limit": {
* Number of files: <bs:countfiles />
"description": {
* Number of pages: <bs:countarticles />
"en": "Limits heading levels (up to level 4). If value is 2, the TOC is 2 levels deep",
* Number of users: <bs:countusers />
"de": "Ermöglicht die Tiefe des Inhaltsverzeichnisses zu bestimmen (bis Level 4)"
</div>
},
</div>
"example": "2",
==Lists==
"default": "4",
<div class="sectionflex col3 frame">
"required": true,
<div>
"label": {
===Booklist===
"de": "Limit",
<bs:booklist filter="author1:Margit Link-Rodrigue" />
"en": "Limit"
</div>
}
<div>
},
===Links to this page===
"nonum": {
<whatlinkshere count="5" period="-" sort="time" showns="0" />
"label": {
</div>
"en": "No numbering",
<div>
"de": "Keine Nummerierung"
===Members in group===
},
<bs:userlist groups="sysop" count="10" />
"description": {
</div>
"en": "Removes numbering",
<div>
"de": "Nummerierung wird nicht angezeigt bei Wert 1"
===Most visited pages===
},
<bs:toplist count="6" period="-" />
"suggested": true,
</div>
"type": "boolean",
<div>
"autovalue": "0"
===Data query===
},
 
"notitle": {
</div>
"label": {
<div>
"en": "No title",
===Recent Changes===
"de": "Kein Titel"
<recentchanges count="6" period="-" sort="time" showns="0" />
},
</div>
"description": {
<div>
"en": "Removes the heading",
===Subpages===
"de": "Titel entfernen"
{{Subpages|parentnamespace=Manual|parentpage=Extension/ContentDroplets|cols=no|bullets=yes}}
},
</div>
"suggested": true,
<div>
"type": "boolean",
===My last visited pages===
"autovalue": "0"
<bs:pagesvisited count="6" maxtitlelength="30" order="time" />
},
</div>
"noborder": {
<div>
"label": {
===My watchlist===
"en": "No border",
<bs:watchlist count="6" maxtitlelength="30" order="time" />
"de": "Kein Rahmen"
</div>
},
</div>
"description": {
==Visual formatting==
"en": "Removes the border",
<div class="sectionflex col3 frame">
"de": "Rahmen entfernen"
<div>
},
===Button===
"suggested": true,
{{ButtonLink|external=no|target=Main Page|label=My page|format=blue}}
"type": "boolean",
</div>
"autovalue": "0"
<div>
},
===Modal button===
"fontlarge": {
{{ModalDialog|title=Legal notice|btnLabel=Google.com|body=You are leaving this website. We are not responsible for any content beyond this point.
"label": {
 
"en": "Larger font size",
[https://google.com Visit google.com]|bgcolor=blue|footer=}}
"de": "Größere Schrift"
</div>
},
<div>
"description": {
===Circled number===
"en": "Sets size to match the regular content size",
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=1}} Preheat oven to 425°F
"de": "Schriftgröße wird dem Seiteninhalt angepasst"
 
},
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=2}} Mix all the ingredients
"suggested": true,
 
"type": "boolean",
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=3}} Bake for 40 minutes
"autovalue": "0"
 
},
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=4}} Take out and let cool 30 mintes
"inline": {
 
"label": {
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=5}} Eat
"en": "Display inline",
</div>
"de": "Inline"
</div>
},
 
"description": {
===PDF preview===
"en": "Aligns items in one row (only possible if limit is set to 1)",
===Progress===
"de": "Stellt die Überschriften in einer Reihe da (nur möglich, wenn das Limit auf 1 gesetzt ist)"
Inspector
},
{| class="wikitable"
"type": "boolean",
!setting
"suggested": true,
!value
"autovalue": "0"
!description
}
|-
},
|Base count
"description": {
|5
"en": "Customized TOC",
|number of items that are counted to reach 100%
"de": "Angepasstes Inhaltsverzeichnis"
|-
}
|Base item
}
|Is:
</templatedata>
|prefix that specifies the progress item. If you do not provide a base item, the progress item could be to unspecific
</noinclude>
|-
|Progress item
|closed
|item that will be counted towards the base count
|-
|Width
|300
|width in pixels
|}'''Output'''<div><bs:statistics:progress basecount="5" progressitem="closed" width="300" baseitem="Statecheck:" /></div><br />
*This is my topic 1 (Statecheck:open)
*This is my topic 2 (Statecheck:closed)
*This is my topic 3 (Statecheck:closed)
*This is my topic 4 (Statecheck:closed)
*This is my topic 5 (Statecheck:closed)
===Pros and cons===
{{ProConList|title-advantages=Advantages|title-disadvantages=Disadvantages|advantages=* affordable
* well-known
* easily accessible|disadvantages=* somewhat dated look and feel
* not customizable
* GDPR compliance unclear}}
===Tip Message===
{{Textbox|boxtype=tip|header=|text=This is a tip message.|icon=yes}}

Revision as of 08:48, 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

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




To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions