Template:TOC: Difference between revisions

From Handhelds Wiki
Jump to navigationJump to search
m 1 revision imported
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{limit|}}}|<templatestyles src="TOC/limit-styles.css"/>}}<div style="{{#if:{{{clear|}}}{{{align|}}}| clear: {{{clear|both}}}; }} margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2em; | <!-- align=none --> }} }} width: {{{width|auto}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}>__TOC__</div><noinclude>
<onlyinclude>
{{doc}}
<templatestyles src="Template:TOC/styles.css" />
[[Category:Utility templates|{{PAGENAME}}]]
<div class="custom-toc limit-{{{limit|3}}}">
  __TOC__
</div>
</onlyinclude>
 
<noinclude>
This template generates a dynamic Table of Contents with a limit for the depth of the TOC.
Usage: `{{TOC|limit=3}}`
Supported limits: 1, 2, 3, 4
</noinclude>
</noinclude>

Latest revision as of 18:07, 10 May 2025


This template generates a dynamic Table of Contents with a limit for the depth of the TOC. Usage: `

` Supported limits: 1, 2, 3, 4