Template:Template categories
From Historical Hastings
This is a wrapper for template categories, which are placed to the template's documentation page. Unlike the legacy code with the {{sandbox other}} template, this wrapper also suppresses incorrect categorization of a doc page that transcludes another doc page.
Usage[edit]
Put the following code to the end of a template documentation page:
{{Template categories|
[[Category:Cat1]]
[[Category:Cat2]]
...
}}
Unless the transcluding page is a /doc or /sandbox subpage, it will be placed into the specified categories. Surrounding the code with <includeonly> tags is not necessary, but it will not harm.
| The above documentation is transcluded from Template:Template categories/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |