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

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

Statistics

Who is online? (0)

  • Number of characters:
  • Number of files: 1016
  • Number of pages: 670
  • Number of users: 57

Lists

Links to this page

No results found.

Data query

Subpages

My last visited pages

To see pages you have visited, please log in to your account

My watchlist

Watchlist cannot be displayed because no user is logged in

Visual formatting

Button

My page

Modal button

Google.com

Circled number

1 Preheat oven to 425°F

2 Mix all the ingredients

3 Bake for 40 minutes

4 Take out and let cool 30 mintes

5 Eat

PDF preview

Progress

Inspector

setting value description
Base count 5 number of items that are counted to reach 100%
Base item Is: prefix that specifies the progress item. If you do not provide a base item, the progress item could be to unspecific
Progress item closed item that will be counted towards the base count
Width 300 width in pixels

Output

100.0%


  • 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

Advantages Disadvantages
  • affordable
  • well-known
  • easily accessible
  • somewhat dated look and feel
  • not customizable
  • GDPR compliance unclear

Tip Message

This is a tip message.
No categories assignedEdit

Discussions