Difference between revisions of "Template:Category tree all/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
|||
| (8 intermediate revisions by 5 users not shown) | |||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
=== Usage === | === Usage === | ||
| − | + | ||
This template displays a configurable showable list of subcategories, pages, images, or parent categories. | This template displays a configurable showable list of subcategories, pages, images, or parent categories. | ||
| Line 11: | Line 11: | ||
** '''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. | ** '''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. | ** '''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. | ** '''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" | ** '''header='''a user-defined header to override the default, for example "click '''+''' to show pages" | ||
====Examples==== | ====Examples==== | ||
| + | =====Subcategories, pages and images===== | ||
| + | Code: <nowiki>{{category tree all|Health|mode=all}}</nowiki> | ||
| + | {{category tree all|Health|mode=all}} | ||
| + | |||
| + | =====Subcategories===== | ||
| + | Code: <nowiki>{{category tree all|Health}}</nowiki> | ||
| + | {{category tree all|Health}} | ||
| + | |||
| + | =====Parent categories===== | ||
| + | Code: <nowiki>{{category tree all|Health|mode=parents}}</nowiki> | ||
| + | {{category tree all|Health|mode=parents}} | ||
| − | {{category tree all| | + | =====Header===== |
| + | Code: <nowiki>{{category tree all|Health|mode=parents|header=Breadcrumb (start point)} | ||
| + | ... | ||
| + | {{category tree all|Health|mode=parents|header=Breadcrumb (finish point)}</nowiki> | ||
| − | {{category tree all| | + | >|{{category tree all|Health|mode=parents|header=Breadcrumb (start point)}} |
| + | |-You are here: "[[Health]]" | ||
| + | {{category tree all|Health|header=Breadcrumb (finish point)}} | ||
| + | |> | ||
=== See also === | === See also === | ||
* {{tl|category tree}} | * {{tl|category tree}} | ||
| + | * {{tl|Category tree both}} | ||
* [[mw:Extension:CategoryTree]] | * [[mw:Extension:CategoryTree]] | ||
* [[commons:Template:Category tree all]] - {{tl|category tree all}} ported to Wikimedia Commons | * [[commons:Template:Category tree all]] - {{tl|category tree all}} ported to Wikimedia Commons | ||
* [[commons:Template:Category tree]] | * [[commons:Template:Category tree]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Category namespace templates]] | [[Category:Category namespace templates]] | ||
| Line 33: | Line 51: | ||
[[pt:Predefinição:Árvore de todas categorias]] | [[pt:Predefinição:Árvore de todas categorias]] | ||
[[ur:سانچہ:Category tree all]] | [[ur:سانچہ:Category tree all]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 00:59, 24 April 2020
| 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
Subcategories, pages and images
Code: {{category tree all|Health|mode=all}}
| To display all pages, subcategories and images click on the "►": |
|---|
Subcategories
Code: {{category tree all|Health}}
| To display all subcategories click on the "►": |
|---|
Parent categories
Code: {{category tree all|Health|mode=parents}}
| To display all parents click on the "►": |
|---|
► Health |
Header
Code: {{category tree all|Health|mode=parents|header=Breadcrumb (start point)} ... {{category tree all|Health|mode=parents|header=Breadcrumb (finish point)}
>|
| Breadcrumb (start point) |
|---|
► Health |
|-You are here: "Health"
| Breadcrumb (finish point) |
|---|
|>
See also
- {{category tree}}
- {{Category tree both}}
- mw:Extension:CategoryTree
- commons:Template:Category tree all - {{category tree all}} ported to Wikimedia Commons
- commons:Template:Category tree