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

(Difference between pages)
No edit summary
Tag: 2017 source edit
 
No edit summary
 
Line 1: Line 1:
<includeonly><templatestyles src="TOClimit/styles.css" />
{{TOClimit|limit=1|nonum=0|notitle=1}}
<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>
"autovalue": "0"
<div>
},
===Data query===
"notitle": {
 
"label": {
</div>
"en": "No title",
<div>
"de": "Kein Titel"
===Recent Changes===
},
<recentchanges count="6" period="-" sort="time" showns="0" />
"description": {
</div>
"en": "Removes the heading",
<div>
"de": "Titel entfernen"
===Subpages===
},
{{Subpages|parentnamespace=Manual|parentpage=Extension/ContentDroplets|cols=no|bullets=yes}}
"suggested": true,
</div>
"type": "boolean",
<div>
"autovalue": "0"
===My last visited pages===
},
<bs:pagesvisited count="6" maxtitlelength="30" order="time" />
"noborder": {
</div>
"label": {
<div>
"en": "No border",
===My watchlist===
"de": "Kein Rahmen"
<bs:watchlist count="6" maxtitlelength="30" order="time" />
},
</div>
"description": {
</div>
"en": "Removes the border",
==Visual formatting==
"de": "Rahmen entfernen"
<div class="sectionflex col3 frame">
},
<div>
"suggested": true,
===Button===
"type": "boolean",
{{ButtonLink|external=no|target=Main Page|label=My page|format=blue}}
"autovalue": "0"
</div>
},
<div>
"fontlarge": {
===Modal button===
"label": {
{{ModalDialog|title=Legal notice|btnLabel=Google.com|body=You are leaving this website. We are not responsible for any content beyond this point.
"en": "Larger font size",
 
"de": "Größere Schrift"
[https://google.com Visit google.com]|bgcolor=blue|footer=}}
},
</div>
"description": {
<div>
"en": "Sets size to match the regular content size",
===Circled number===
"de": "Schriftgröße wird dem Seiteninhalt angepasst"
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=1}} Preheat oven to 425°F
},
 
"suggested": true,
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=2}} Mix all the ingredients
"type": "boolean",
 
"autovalue": "0"
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=3}} Bake for 40 minutes
},
 
"inline": {
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=4}} Take out and let cool 30 mintes
"label": {
 
"en": "Display inline",
{{CircledNumber|bgColor=#3e5389|fgColor=white|number=5}} Eat
"de": "Inline"
</div>
},
</div>
"description": {
 
"en": "Aligns items in one row (only possible if limit is set to 1)",
===PDF preview===
"de": "Stellt die Überschriften in einer Reihe da (nur möglich, wenn das Limit auf 1 gesetzt ist)"
===Progress===
},
Inspector
"type": "boolean",
{| class="wikitable"
"suggested": true,
!setting
"autovalue": "0"
!value
}
!description
},
|-
"description": {
|Base count
"en": "Customized TOC",
|5
"de": "Angepasstes Inhaltsverzeichnis"
|number of items that are counted to reach 100%
}
|-
}
|Base item
</templatedata>
|Is:
</noinclude>
|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 07:48, 16 August 2023

Statistics

Who is online? (0)

  • Number of characters:
  • Number of files: 1006
  • Number of pages: 665
  • Number of users: 56

Lists

Links to this page

No results found.

Most visited pages

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