Topic on Project:Support desk

Jump to navigation Jump to search
Onmiy (talkcontribs)


is it possible to create a table of content with collapsible headings?

Gib Senf dazu! (talkcontribs)

Basically yes, but Iam not sure whether we have an easy configuration option to ensure collapsed TOC from beginning.

Via JavaScript you may equip the TOC element with class=mw-collapsible mw-collapsed" and need to request: mw.loader.load("jquery.makeCollapsible");

Please see Manual:Collapsible elements and ResourceLoader/Core modules.

Reply to "TOC"