Template:Template categories/doc
< Template:Template categories
Revision as of 07:15, 26 April 2020 by Wikipedia>DePiep (redundant now, deprecation to be considered)
| This is a documentation subpage for Template:Template categories. It contains usage information, categories and other content that is not part of the original template page. |
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
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.