Template:TOC

From Handhelds Wiki
Revision as of 17:59, 10 May 2025 by HandheldWiki (talk | contribs)
Jump to navigationJump to search


This template inserts a custom-styled TOC and allows you to limit depth.

Usage: `

<style> /* Default max level is 3 unless specified */ .custom-toc .toclevel-3 ~ .toclevel-4, .custom-toc .toclevel-3 ~ .toclevel-5, .custom-toc .toclevel-3 ~ .toclevel-6 {

 display: none;

} </style>

<style>

 .custom-toc .toclevel-3 ~ .toclevel-4,
   .custom-toc .toclevel-3 ~ .toclevel-5,
   .custom-toc .toclevel-3 ~ .toclevel-6 { display: none; }
 
 </style>

` Supported limits: 2, 3, 4