Template:Category tree all
(Redirected from Template:Category tree)
To display all subcategories click on the "▶":
Category Category tree all not found
|
This documentation is transcluded from Template:Category tree all/doc.
Usage
[edit]This template displays a configurable showable list of subcategories, pages, images, or parent categories.
Syntax
[edit]- {{category tree all}} - basic form, uses the name of the category page it is placed on
- {{category tree all|
title
}} - usestitle
as the category page name - {{category tree all|mode=categories or pages or all or parents|depth=0, 1 or more|hideroot=on or off|showcount=on or off|header=user-defined header}} - uses more of the categorytree tag parameters (see http://www.mediawiki.org/wiki/Extension:CategoryTree for details):
- mode=pages displays only the pages in the category; mode=all displays subcategories, pages and images; mode=parents displays only the parent categories;
- depth=0 displays only the root node, depth=1 displays one level of the tree and so forth;
- hideroot=on hides the root category;
- showcount=on displays the number of sub-subcategories after each subcategory.
- header=a user-defined header to override the default, for example "click + to show pages"
- {{category tree all|alignright=yes}} - basic right-aligned form
- {{category tree all|mode=categories or pages or all or parents|alignright=yes}} - right-aligned form with mode parameter
Examples
[edit]- {{category tree all|
Films
}}
- will create this box:
To display all subcategories click on the "▶":
|
- {{category tree all|
Films
|showcount=off}}
- will create a box without numbers:
To display all subcategories click on the "▶": |
- {{category tree all|
Films by country
|depth=0}}
- will create a box initially showing the root only:
To display all subcategories click on the "▶":
|
- {{category tree all|
Films by country
|depth=1}}
- will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
Films of Armenia (5 F) Films of Kazakhstan (8 F) Films of Kenya (1 F) Films of Lithuania (8 F) Films of Mozambique (1 F) Films of Puerto Rico (1 F) Films of Sri Lanka (1 F) Films of Togo (5 F) Films of Zimbabwe (1 F) |
- {{category tree all|
Archaeoastronomy
|mode=categories|depth=2|hideroot=off|showcount=on}}
- will create a box initially showing the tree to a depth of two:
To display all subcategories click on the "▶":
Arkhyz - Astronomical circle (5 F) no subcategories Bochow circle (2 F) no subcategories Cahokia woodhenges (12 F) no subcategories Casa Rinconada (15 F) Casamero Pueblo (3 F) Chaco Canyon pictographs (2 F) Chacoan Stairway (5 F) Fajada Butte (23 F) Gallo Campground (4 F) Guadalupe Oulier (8 F) Hungo Pavi (29 F) Kin Bineola (6 F) Kin Kletso (8 F) Kin Ya'a (2 F) Nuevo Alto (3 F) Petroglyph Trail (16 F) Peñasco Blanco (10 F) Chaco pottery (12 F) Pueblo Alto (6 F) Pueblo Pintado (Chaco Canyon) (20 F) Una Vida (7 F) Wijiji (6 F) Chanquillo (8 F) no subcategories Gavi Gangadhareshwara Temple (18 F) no subcategories Globe of Matelica (8 F) no subcategories Goldscheibe von Moordorf (4 F) no subcategories Goseck circle (96 F) no subcategories Astroexpedition to Kokino (10 F) Kokino megalithic observatory (94 F) Menhirs in Zorats Karer (20 F) no subcategories Nabta Playa (6 F) no subcategories Fundort der Himmelsscheibe (50 F) Parque Arqueológico de Monquirá (1 P, 9 F) no subcategories no subcategories Portingbury Hills (1 F) no subcategories no subcategories Rocca Pizzicata (14 F) no subcategories Solvognen (1 P, 37 F) no subcategories Žemaičių Alkas (2 F) no subcategories |
- {{category tree all|
Astronomy
|mode=categories|depth=0|hideroot=off|showcount=on}}
- will create this box:
To display all subcategories click on the "▶":
|
- {{category tree all|
Astronomy
|mode=parents|depth=1|hideroot=on}}
- will create this box:
To display all parents click on the "▶": |
- {{category tree all|
Astronomy
|mode=parents|depth=0|hideroot=off|header=This is a user-defined header, click + to show parent categories:}}
- will create this box:
This is a user-defined header, click + to show parent categories: |
- {{category tree all|
Archaeoastronomy
|mode=categories|depth=2|hideroot=off|showcount=on|header=This is another user-defined header, click something|Astronomy education}}
- will create this box:
This is a user-defined header, click something
Arkhyz - Astronomical circle (5 F) no subcategories Bochow circle (2 F) no subcategories Cahokia woodhenges (12 F) no subcategories Casa Rinconada (15 F) Casamero Pueblo (3 F) Chaco Canyon pictographs (2 F) Chacoan Stairway (5 F) Fajada Butte (23 F) Gallo Campground (4 F) Guadalupe Oulier (8 F) Hungo Pavi (29 F) Kin Bineola (6 F) Kin Kletso (8 F) Kin Ya'a (2 F) Nuevo Alto (3 F) Petroglyph Trail (16 F) Peñasco Blanco (10 F) Chaco pottery (12 F) Pueblo Alto (6 F) Pueblo Pintado (Chaco Canyon) (20 F) Una Vida (7 F) Wijiji (6 F) Chanquillo (8 F) no subcategories Gavi Gangadhareshwara Temple (18 F) no subcategories Globe of Matelica (8 F) no subcategories Goldscheibe von Moordorf (4 F) no subcategories Goseck circle (96 F) no subcategories Astroexpedition to Kokino (10 F) Kokino megalithic observatory (94 F) Menhirs in Zorats Karer (20 F) no subcategories Nabta Playa (6 F) no subcategories Fundort der Himmelsscheibe (50 F) Parque Arqueológico de Monquirá (1 P, 9 F) no subcategories no subcategories Portingbury Hills (1 F) no subcategories no subcategories Rocca Pizzicata (14 F) no subcategories Solvognen (1 P, 37 F) no subcategories Žemaičių Alkas (2 F) no subcategories |
- {{category tree all|Astronomy|mode=parents|alignright=yes}}
{{category tree all|Astronomy}}
- will create these two boxes (next example uses {{Category tree both}} to do the same):
To display all parents click on the "▶": |
To display all subcategories click on the "▶":
|
- {{category tree both|Astronomy}}
- is an alternative way to create the same two boxes:
To display all parents click on the "▶": |
To display all subcategories click on the "▶":
|
See also
[edit]- {{Category tree both}} - includes both subcategories and parent categories
- {{Category tree}} - simpler template that shows subcategories only
- mw:Extension:CategoryTree
- en:Template:Category tree - similar template on the English Wikipedia