Template:Category tree all/doc

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history

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|title}} - uses 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]

will create this box:
To display all subcategories click on the "▶":
Researchers(10 C, 511 P)
will create a box without numbers:
To display all subcategories click on the "▶":
will create a box initially showing the root only:
To display all subcategories click on the "▶":
will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
will create a box initially showing the tree to a depth of two:
To display all subcategories click on the "▶":
Body systems(9 C, 90 P)
Anatomy(2 C, 34 P)
Blood components(1 C, 13 P)
Body systems(9 C, 90 P)
Blood components(1 C, 13 P)
Immune cells(13 P)
Energy system(8 C, 37 P)
Beta-oxidation(1 P)
Channelopathy(19 P)
Metabolism(6 C, 23 P)
Mitochondria(24 P)
PPAR modulators(4 P)
Immunology(15 C, 107 P)
Antibodies(23 P)
Autoantibodies(1 P)
Cytokines(2 C, 70 P)
Glycoproteins(1 C, 20 P)
Immune cells(13 P)
Immunomodulators(1 C, 30 P)
Immunostimulants(1 C, 15 P)
Infectious agents(9 C, 53 P)
Infectious diseases(3 C, 30 P)
Interferons(14 P)
Vaccines(5 P)
Reproductive system(1 C, 2 P)
Sex hormones(1 C, 3 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 "▶":
Signs and symptoms(24 C, 245 P)
will create this box:
To display all parents click on the "▶":
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
Supplements(11 C, 208 P)
B vitamins(17 P)
no subcategories
Electrolytes(7 P)
no subcategories
no subcategories
no subcategories
Herbs(77 P)
no subcategories
Medicinal foods(39 P)
no subcategories
Minerals(1 C, 16 P)
Electrolytes(7 P)
no subcategories
Adaptogens(10 P)
Vitamins(1 C, 16 P)
B vitamins(17 P)

{{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 "▶":
Nutrients(3 C, 40 P)
is an alternative way to create the same two boxes:
To display all parents click on the "▶":
To display all subcategories click on the "▶":
Nutrients(3 C, 40 P)

See also[edit source]

{{category tree both}} - includes both subcategories and parent categories

{{category tree}} - simpler template that shows subcategories only