Wikipedia:Template messages/Compact tables of contents

This page lists ways to create several kinds of compact tables of contents (TOC). Please note that a normal compact TOC will not work when put on Category pages; this page contains a separate section instructing you how to put a compact TOC on Category pages.

Non-Category pages
These should work on pages whose title does not begin with "Category:".

Category pages
Use one of these on pages whose title begins with "Category:".