On 21/01/06, Vasiliadis, Thomas T.Vasiliadis@schlemmerblock.de wrote:
I realised, that my MediaWiki 1.5.3 shows only a TOC if the article has more than 3 (sub)headlines. Why that? How can I change it?
Because for anything less than that, a TOC isn't really necessary or useful. To force a TOC on a particular page, add __FORCETOC__ anywhere in the page, or __TOC__ at the point you want the TOC to appear. (To force a page *not* to have a TOC, you can add __NOTOC__).
If you want to change the threshold for *all* pages on your wiki, you need to hack includes/Parser.php, function formatHeadings():
# if there are fewer than 4 headlines in the article, do not show TOC if( $numMatches < 4 ) { $doShowToc = false; }
-- Rowan Collins BSc [IMSoP]