Topic on Project:Support desk/Flow

omitting a heading from the TOC

1
Evolution and evolvability (talkcontribs)

Is it possible to mark a heading to be either:

  • Omitted entirely fro the TOC
  • Not numbered in the TOC (example)

Currently even headings that are hidden with a <h2 class="onlymobile"></h2> tag are included in the TOC on desktop view.

Something in the form of: <h2 class="notoc">heading</h2> along with omitting the counter-increment from that class of h2?

I assume that something would need to be added to mediawiki:common.css since there's some counter working behind the scenes?

Any advice appreciated!

Reply to "omitting a heading from the TOC"