Template:Category TOC custom/doc

Usage
For example,  generates: