Template documentation
Usage
{{CompactTOC10|sections={{CompactTOC10s|section=Section 1|sub=}}
{{CompactTOC10s|section=Section 2|sub=_2}}
{{CompactTOC10s|section=Section 3|sub=_3}}
... ''more if needed''
}}
See Wikipedia:WikiProject Mathematics/List of mathematics categories for how this table of contents is used.