Template:Category tree both
From Wikipedia, the free encyclopedia
More information To display all parents click on the "►": ...
To display all parents click on the "►": |
---|
Category Category tree both not found |
Close
More information To display all subcategories click on the "►": ...
To display all subcategories click on the "►": |
---|
Category Category tree both not found |
Close
This navigation template displays two showable lists: subcategories at the left and parent categories at the right.
Usage
- namespace = category
- placement = lower, just above categories
- usage-notes = This template takes one unnamed optional parameter (1). By default parameter 1 is "{{PAGENAME}}", which expands to the current page.
Syntax
{{category tree both}}
- basic form, uses the name of the category page it is placed on{{category tree both|
- usestitle
}}title
as the category page name
- Parameter 1 = optional (default is name of the category page it is placed on), name of root category for both trees. By default the name of the category page it is placed on is used. For example,
{{Category tree both|Astronomy}}
will make the browser render the template as two boxes, the left side showing subcategories of Astronomy, the right showing parents of Astronomy.
See also
- {{category tree all}} - displays a configurable showable list of subcategories, pages, images, or parent categories
- {{category tree}} - simpler template that shows subcategories only
- mw:Extension:CategoryTree
- Commons:Template:Category tree both - original version from Wikimedia Commons
The above documentation is transcluded from Template:Category tree both/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.