Template:Index toc/doc

[?action=purge purge cache]

Usage
In the Index namespace, the call can be written left to right only. On other pages, such as a sandbox, it can be vertical on the left and have spaces. In both cases, only variables with content are written, and empty sections appear also.