Template:CustomTocCollapse/doc

This template makes a section collapsible in the table of contents. To use it, put it right below the corresponding header. It can also cancel the effect of Template:FullTocCollapse for specific sections. This template can be used in conjunction with the Collapsible div class, to render both the Table of Contents and the section itself collapsible.

Example:

2
Also uncollapsible

Collapsible section
''The two outlined div classes MUST be used in that order, above and below the target text. must go BETWEEN the target heading and the 2nd div tag. Any body text must go BELOW the 2nd div tag.''

1
is used here as well, to hide 2 in the Table of Contents.