Currently, when adding the {articletoc} tag to an article, every header from h1 to h4 is gathered and displayed. However, sometimes we add titles extensively to ease the flow of the article. While it is nice, it may impair the readability of the table of content.
In my most recent case, the only titles worth appearing in the table of content were h1, but I also had many h2's and the articletoc was way too big for what needed to be actually displayed. Although a workaround exists, it is quite tedious to make in every article.
My suggestion is to add to the articletoc tag an optional parameter to specify how deep one wants to go in the header hierarchy. It may look like [articletoc:1] to only display h1 titles, [articletoc:2] for including h2 and so on...
This would allow better control of the layout, and how the table of content is displayed in articles. And I believe, though I may be wrong, that it shouldn't be too heavy development-wise.
Let me know what you think!
+1 for Jubliana's comment. There are problems with articletoc already, such as the statblocks using header formatting and consequently showing up in the table of contents - any improvements can only be good.
Some customization is needed here so that the TOC for well-structured articles is readable. The options shouldn't make you choose between readable article or readable TOC.
Off-setting coins added below.
In the meantime, for anyone looking for a solution, you can filter out certain tiers of header with CSS. Under the design options on your article edit add this: .user-css .article-toc-indent-1 { display:none; } Swapping indent-1 out will target different header sizes. -0 hides h1, -1 hides h2, -2 hides h3, and so on.
Would be useful to remove minor sidebar headings as well, as I sometimes put the sidebar into the main content field for extra flexibility!