Difference between revisions of "Template:Category tree all/doc"
Jump to navigation
Jump to search
imported>KH-1 m (Reverted edits by 170.251.175.165 (talk) to last version by 103.232.241.5) |
|||
| Line 20: | Line 20: | ||
{{category tree all|Health|mode=all}} | {{category tree all|Health|mode=all}} | ||
| − | |||
| − | |||
=== See also === | === See also === | ||
Revision as of 13:18, 17 June 2017
| File:Edit-copy green.svg | This is a documentation subpage for Template:Category tree all. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
This template displays a configurable showable list of subcategories, pages, images, or parent categories.
Syntax
{{category tree all}}– basic form, uses the name of the category page it is placed on{{category tree all|– usestitle}}titleas 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; mode is categories by default.
- depth=1 displays one level of the tree; depth=2 displays two levels of the tree, and so forth; depth is 0 by default.
- hideroot=on hides the root category; hideroot is off by default.
- showcount=off disables the (category, page, file) count after each category in the tree; showcount is on by default.
- header=a user-defined header to override the default, for example "click + to show pages"
Examples
| To display all subcategories click on the "►": |
|---|
| To display all pages, subcategories and images click on the "►": |
|---|
See also
- {{category tree}}
- mw:Extension:CategoryTree
- commons:Template:Category tree all - {{category tree all}} ported to Wikimedia Commons
- commons:Template:Category tree