MediaWiki:Tog-showtoc/qqq

Special:Preferences, tab 'Misc'. Offers user to show a table of contents automatically if a page has more than 3 headings (= 4 or more headings).