Difference between revisions of "Template:CategoryContents"

From AgileApps Support Wiki
imported>Aeric
 
imported>Aeric
 
Line 8: Line 8:
::<tt><nowiki>{{CategoryContents}}</nowiki></tt>
::<tt><nowiki>{{CategoryContents}}</nowiki></tt>
::<tt><nowiki>|}</nowiki></tt>
::<tt><nowiki>|}</nowiki></tt>
;Example: In the [[Settings]] page, include this template to create a listing of [{Category:Settings]] entries.
;Example: The Settings page used to 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:
;Motivation: Each category listing contains two elements: A redirect to the corresponding content-page, and a declaration of the containing category:
<pre>
<pre>

Latest revision as of 22:53, 28 January 2013


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
The Settings page used to 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.