Template:Category tree all
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
To display all subcategories click on the "▶":
Category Category tree all not found
|
Usage[edit source]
This template displays a configurable showable list of subcategories, pages, images, or parent categories.
Syntax[edit source]
{{category tree all}}
- basic form, uses the name of the category page it is placed on{{category tree all|
- usestitle
}}title
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}}
- uses more of the categorytree tag parameters (see http://me-pedia.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}}
- basic right-aligned form{{category tree all|mode=categories or pages or all or parents}}
- right-aligned form with mode parameter
Examples[edit source]
{{category tree all|
Researchers
}}
- will create this box:
To display all subcategories click on the "▶":
|
{{category tree all|
Researchers
|showcount=off}}
- will create a box without numbers:
To display all subcategories click on the "▶": |
{{category tree all|
Researchers by country
|depth=0}}
- will create a box initially showing the root only:
To display all subcategories click on the "▶":
|
{{category tree all|
Researchers by country
|depth=1}}
- will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
Australia researchers (38 P) Belarus researchers (1 P) Belgium researchers (11 P) Bulgaria researchers (1 P) Chile researchers (1 P) Colombian researchers (1 P) Croatia researchers (1 P) Denmark researchers (4 P) Finland researchers (2 P) France researchers (2 P) Germany researchers (14 P) Greece researchers (1 P) Hungary researchers (1 P) Iceland researchers (1 P) Ireland researchers (2 P) Israel researchers (1 P) Italy researchers (6 P) Japan researchers (3 P) Latvia researchers (3 P) Netherlands researchers (20 P) New Zealand researchers (7 P) Nigeria researchers (1 P) Norway researchers (14 P) Portugal researchers (1 P) Romanian researchers (1 P) Serbia researchers (1 P) Slovenia researchers (empty) South Korea researchers (1 P) Spain researchers (6 P) Sweden researchers (8 P) Thailand researchers (1 P) UK researchers (139 P) US researchers (213 P) |
{{category tree all|
Body systems
|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 "▶":
Immune cells (13 P) Cardiac signs and symptoms (28 P) Gut flora bacteria (3 P) Anaerobic respiration (3 P) Beta-oxidation (1 P) Cellular respiration (7 P) Channelopathy (19 P) Metabolic pathways (6 P) Mitochondria (24 P) PPAR modulators (4 P) Antibodies (23 P) Autoantibodies (1 P) Clusters of differentiation (5 P) Immune cells (13 P) Interferons (14 P) Toll-like receptors (19 P) Vaccines (5 P) |
{{category tree all|
Signs and symptoms
|mode=categories|depth=0|hideroot=off|showcount=on}}
- will create this box:
To display all subcategories click on the "▶":
|
{{category tree all|
Adrenal glands
|mode=parents|depth=1|hideroot=on}}
- will create this box:
To display all parents click on the "▶": |
{{category tree all|
Researchers
|mode=parents|depth=0|hideroot=off}}
- will create this box:
This is a user-defined header, click + to show parent categories: |
{{category tree all|
Dietary Supplements
|mode=categories|depth=2|hideroot=off|showcount=on|header=This is another user-defined header, click something|Supplements}}
- will create this box:
This is a user-defined header, click something
B vitamins (17 P) no subcategories Electrolytes (7 P) no subcategories Free fatty acids (2 P) Glycophospholipids (1 P) Polyunsaturated fatty acids (9 P) Prostaglandins (2 P) Free fatty acids (2 P) no subcategories Glycophospholipids (1 P) no subcategories Herbs (77 P) no subcategories Medicinal foods (39 P) no subcategories Electrolytes (7 P) Polyunsaturated fatty acids (9 P) no subcategories Adaptogens (10 P) B vitamins (17 P) |
{{category tree all|Nutrients|mode=parents}}
{{category tree all|Nutrients}}
- will create these two boxes (next example uses {{category tree both}}
{{category tree both}} to do the same):
To display all parents click on the "▶": |
To display all subcategories click on the "▶":
|
{{category tree both|Nutrients}}
- 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 source]
{{category tree both}} - includes both subcategories and parent categories
- {{category tree}}
{{category tree}} - simpler template that shows subcategories only
The above documentation is transcluded from Template:Category tree all/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
display list of subcategories, pages, images, or parent categories
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | category page name
| Unknown | suggested |
alignright | alignright | no description
| Unknown | suggested |
header | header | user-defined header, e.g. Click + to show pages | Unknown | suggested |
mode | mode | pages - only pages; all - subcategories, pages and images; parents - only the parent categories
| Unknown | suggested |
depth | depth | 0 - displays only the root, 1 - limit to depth of 1, etc
| Unknown | suggested |
hideroot | hideroot | no description | Unknown | suggested |
showcount | showcount | set to off to hide number of pages or subcategories
| Unknown | suggested |