User:Allyn~mediawikiwiki/Sandbox

The &lt;categorytree&gt; tag
The custom tag is called &lt;categorytree&gt;. For example, if you put &lt;categorytree&gt;Foo&lt;/categorytree&gt; on a wiki page, it will show the contents of category Foo as a dynamic tree on that page (see example to the right). The tag accepts the following attributes, using a HTML-like syntax:

The special page is called Special:CategoryTree; there you can enter the name of a category and then browse its content. The CategoryTree extension also adds a tab for this special page to every category page.
 * mode: can be "categories", "pages" or "all" - see the Modes section below for the meaning of each. The default for this attribute is controlled by $wgCategoryTreeDefaultMode, and is initially set to CT_MODE_CATEGORIES, the equivalent of setting the mode attribute to "categories".
 * depth: determines how many levels of the tree are shown initially. Default is 1, 0 means only the root node. The maximum value depends on the mode specified, and on the $wgCategoryTreeMaxDepth option. (introduced between r20410 and 20840, Mar 30 2007) - note: depth values greater than 1 do not (yet) work with $wgCategoryTreeDynamicTag enabled!
 * onlyroot: set this to "on" to only show the "root" node of the tree initially. Equivalent to depth="0". (introduced in 20385, March 13 2007)
 * hideroot: set this to "on" to hide the "root" node of the tree, i.e. the mention of category Foo from the example.
 * style: can be used to specify any CSS styles you would like for the tree.

I can't see how this part automatically indents each child.

http://godhatesfags.com