Board Thread:Support Requests - Designing Your Wikia/@comment-24942359-20140516155556/@comment-856287-20140516202147

Instead of transcluding the doc page directly with, use the documentation template, like this:

That will transclude the /doc page automagically, along with some nice formatting and instructions/help.

Then at the end of the template code, just add " " and nothing else. No categories should be on the template page itself, unless the template is supposed to put the pages it appears on into those categories. So for example, a "mark for deletion" template that puts pages into a "Marked for Deletion" category would have  at the bottom of the template page.

To put your template into a category (and not the pages the template is used on), add the categories to the tempalte's documentation page. So the bottom of the /doc page would look like this:

That puts the template into "General wiki templates" and the documentation into "Template documentation."