In order to insert the template in an article, you have to copy the following source text at the top of the article:
{{TOC}}