[MediaWiki-l] how to make mediawiki make TOC with less than 4 sections ?

shirish shirish at hamaralinux.org
Wed Oct 14 14:44:15 UTC 2015

Hi all,

A temporary way to generate Table of Contents (TOC) is to write 
__FORCETOC__ or _TOC_ before starting the page but what if we don't want 
that. Let's say we want to have all and any pages that has more than 2 
sections should have a TOC. Is there a way to do it ?

By default in mediawiki installation it needs 4 sections.

 From https://en.wikipedia.org/wiki/Help:Section#Table_of_contents_.28TOC.29

Shirish Agarwal,
Community Lead,

More information about the MediaWiki-l mailing list