Forums: Index Help desk Category Tree... making collapsed default

I am working with the categorytree and would like the natural state to be collapsed with the [+] next to it if the user wishes to open it. I can not figure out how to do it... Any help?

FireStarr 15:27, May 6, 2011 (UTC)

Looking at the documentation, it looks like adding depth=0 if you're using the tag syntax will do what you're looking for. For example, <categorytree depth=0>Templates</categorytree> results in
If you're using the parserfunction, the syntax is largely the same: {{#categorytree:Templates|depth=0}} resulting in
Hope this helps! ダイノガイ千?!? · Talk⇒Dinoguy1000 19:39, May 6, 2011 (UTC)
Perfect! Thank you!
Community content is available under CC-BY-SA unless otherwise noted.