When a category has many pages, place this template near the top of the category page:

{{Collapsible large category TOC}}

There are no optional parameters.