Board Thread:Support Requests - Getting Technical/@comment-35301431-20160910022008/@comment-1757994-20160910195105

Hmm, while the missing  was a problem, it wasn't the problem.

I see now what's happening. You're using the template to categorize the pages that transclude it. Unfortunately, that also means it categorizes its documentation page, which is re-transcluded back into the template page (of course), which then categorizes the template.

So two things:

First, it's usually a best-practice to put template categories in the documentation page, like so: 

Second, you need to make yet another template, sometimes called Mainonly, for categorizing (Main) pages that transclude the template: 

(Strictly speaking, it's simple enough it doesn't have to be a separate template, but you'll probably use it enough that it'll pay for the effort.)

In your case, in  you would put something like: 