FTL: Faster Than Light Wiki
FTL: Faster Than Light Wiki
Template documentation (for the above template, sometimes hidden or invisible)

{{CategoryTemplate|<category>}} is for use in other templates, when they want to add their host pages to a category. It takes the <category> argument and adds the host page to that category on the condition the host page is not a Template page itself.

This lets you use {{CategoryTemplate|<category>}} in the template, and then use the template itself in its own documentation without adding both to the category.

To use, type

 {{CategoryTemplate|<category>}}

In the calling template.

Examples

 In Template:Meta:
   {{CategoryTemplate|Meta Pages}}

Adds all pages that contain {{Meta}} to Category:Meta Pages but doesn't add Template:Meta or Template:Meta/doc to this category, even if they contain {{Meta}} examples.

Source

Copied template code from [1]