Templates Wiki
Advertisement
Forums: Index Help desk Category Tree... making collapsed default
Note: This topic has been unedited for 13 years. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


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!
Advertisement