Difference between revisions of "CatTree example"

From Organic Design wiki
(Change source-code blocks to standard format)
m
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
The following wikitext syntax,
 
The following wikitext syntax,
 
<source>
 
<source>
{{CatTree|Organisations}}
+
{{CatTree|Images}}
 
</source>
 
</source>
  
 
yields the following tree,
 
yields the following tree,
{{CatTree|Organisations}}
+
{{CatTree|Images}}
 
[[Category:Examples]]
 
[[Category:Examples]]

Latest revision as of 14:42, 10 July 2015

Template:CatTree accepts a category name for its single parameter and renders a two-level tree of it's sub-categories and sub-sub-categories. For example. Note: the CatTree template requires TreeView4 since the old version did not allow trees to be included in templates for transclusion.

The following wikitext syntax,

{{CatTree|Images}}

yields the following tree,