Template:Category tree both

From Wikimedia Commons, the free media repository
Jump to: navigation, search
To display all parents click on the "▶":
To display all subcategories click on the "▶":
Category tree both(empty)
Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Category tree both/doc.

This navigation template displays two showable lists: subcategories at the left and parent categories at the right.

Usage

{{Category tree both |1= }}

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|title}} - uses title as the category page name

Template parameters

Parameter Description Default Status
1 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. name of the category page it is placed on optional

Additional information

The template is intended to be used in the following namespaces: the Category namespace

The template is intended to be used by the following user groups: all users

Placement:

lower, just above categories

Relies on:
Category tree all

Example

{{Category tree both|Astronomy}}

renders as:

To display all parents click on the "▶":
To display all subcategories click on the "▶":
Astronomy(37 C, 5 P, 353 F)

See also