Template:Category tree
From Wikipedia, the free encyclopedia
More information Click on "►" below to display subcategories: ...
Click on "►" below to display subcategories: |
---|
Category Category tree not found |
Close
Usage
Note that this template does not work as expected on either the mobile site or if users do not have JavaScript enabled. This affects about half of the readers at the English Wikipedia (as of 2016).
Syntax
{{Category tree}}
– basic form, uses the name of the category page it is placed on{{Category tree|title}}
– uses the unnamed parametertitle
as the category name to be displayed{{Category tree|alignright=yes}}
– align to the right{{Category tree|depth=2}}
– display the tree already opened to 2 levels (2 is the maximum){{Category tree|help=no}}
– hide the help text about clicking on "►".
Examples
{{Category tree|Films}}
will create this box:
More information Click on "►" below to display subcategories: ...
Click on "►" below to display subcategories: |
---|
Close
{{Category tree|Films about cats|depth=1}}
will create this box:
More information Click on "►" below to display subcategories: ...
Click on "►" below to display subcategories: |
---|
Close
See also
- {{Category tree all}} – version that lets the user configure the appearance
- {{Category tree both}} – displays two showable lists: subcategories at the left and parent categories at the right
- mw:Extension:CategoryTree
- commons:Template:Category tree
The above documentation is transcluded from Template:Category tree/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.