Manual:$wgMaxTocLevel

Details
Maximum indent level of the toc>Special:MyLanguage/Manual:Table of contents|table of contents.