Template:CategoryContents
From LongJump Support Wiki
Revision as of 20:42, 2 May 2011 by imported>Aeric
Transclude this template into a category-content page to create a TOC listing of the corresponding category.
- Usage
- {{CategoryContents}}
- Optionally
- Include in a single table to indent the list:
- ::{|
- {{CategoryContents}}
- |}
- Example
- In the Settings page, include this template to create a listing of [{Category:Settings]] entries.
- Motivation
- Each category listing contains two elements: A redirect to the corresponding content-page, and a declaration of the containing category:
Category:Settings #REDIRECT [[Settings]] [[Category:Help]]
The redirect causes the content to be displayed when you click an entry in the category tree, rather than the category page (which defines the hierarchy). When the content page is large, that's all you want. But when the content is very small, you can use this template to pad it out.