Difference between revisions of "Template:CatTree"

From Organic Design wiki
(formatting)
m
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>{{#tree:
{{#tree:openlevels=1|
 
 
*'''[[:Category:{{{1}}}|{{{1}}}]]'''
 
*'''[[:Category:{{{1}}}|{{{1}}}]]'''
{{#dpl:
+
{{#dpl:debug=1
 +
|allowcachedresults=false
 
  |category={{{1}}}
 
  |category={{{1}}}
 
  |namespace=Category
 
  |namespace=Category
  |format=,**[[%PAGE%|%TITLE%]]\n²{SubCatTree¦%PAGE%¦%TITLE%}²\n,,
+
  |format=,**[[%PAGE%|%TITLE%]]\n²{SubCatTree¦%PAGE%¦%TITLE%}²,,
 
}}}}</includeonly>
 
}}}}</includeonly>
 
<noinclude>Make a two-level tree of the specified category.
 
<noinclude>Make a two-level tree of the specified category.
 
== Usage ==
 
== Usage ==
{{code|<pre>{{CatTree|MyCategory}}</pre>}}
+
<source>
 +
{{CatTree|MyCategory}}
 +
</source>
 
[[Category:Formatting templates]]</noinclude>
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 14:41, 10 July 2015

Make a two-level tree of the specified category.

Usage

{{CatTree|MyCategory}}