Template:Category tree all

From Wikimedia Commons, the free media repository
(Redirected from Template:Category tree)
Jump to navigation Jump to search
To display all subcategories click on the "▶":
Category Category tree all not found
Template documentationview · edit · history · purge ]
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}} - 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|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]
will create this box:
To display all subcategories click on the "▶":
Films (60 C, 1278 F)
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 "▶":
Films of Algeria (3 C, 2 F)
Films of Argentina (75 C, 173 F)
Films of Azerbaijan (4 C, 17 F)
Films of Belarus (5 C, 7 F)
Films of Belgium (14 C, 1 F)
Films of Brazil (7 C, 2 F)
Films of Bulgaria (12 C, 11 F)
Films of Canada (22 C, 1 P, 211 F)
Films of Chile (11 C, 23 F)
Films of China (57 C, 2 P, 103 F)
Films of Colombia (10 C, 6 F)
Films of Croatia (7 C, 4 F)
Films of Denmark (23 C, 7 F)
Films of Egypt (10 C, 55 F)
Films of Estonia (3 C, 6 F)
Films of Uruguay (2 C, 3 F)
Films of Finland (11 C, 17 F)
Films of France (18 C, 127 F)
Films of Georgia (8 C, 7 F)
Films of Germany (30 C, 78 F)
Films of Greece (6 C, 1 F)
Films of Guatemala (2 C, 2 F)
Films of Hungary (12 C, 59 F)
Films of Iceland (9 C, 77 F)
Films of India (32 C, 45 F)
Films of Indonesia (74 C, 2 F)
Films of Iran (16 C, 7 F)
Films of Ireland (26 C, 2 F)
Films of Israel (75 C, 16 F)
Films of Italy (35 C, 98 F)
Films of Japan (54 C, 48 F)
Films of Korea (1 C, 3 F)
Films of Latvia (3 C, 2 F)
Films of Luxembourg (17 C, 2 F)
Films of Mali (1 C, 3 F)
Films of Mexico (35 C, 25 F)
Films of Moldova (1 C, 34 F)
Films of Nepal (4 C, 1 F)
Films of Nigeria (2 C, 6 F)
Films of Norway (27 C, 22 F)
Films of Pakistan (4 C, 4 F)
Films of Paraguay (1 C, 1 F)
Films of Peru (7 C, 14 F)
Films of Poland (23 C, 55 F)
Films of Portugal (23 C, 16 F)
Films of Romania (14 C, 6 F)
Films of Senegal (2 C, 2 F)
Films of Serbia (8 C, 8 F)
Films of Singapore (4 C, 10 F)
Films of Slovakia (5 C, 1 F)
Films of Slovenia (20 C, 6 F)
Films of South Korea (10 C, 12 F)
Films of Spain (24 C, 24 F)
Films of Sweden (39 C, 27 F)
Films of Switzerland (48 C, 27 F)
Films of Taiwan (24 C, 11 F)
Films of Thailand (11 C, 2 P, 10 F)
Films of Tunisia (3 C, 3 F)
Films of Turkey (15 C, 7 F)
Films of Ukraine (17 C, 14 F)
Films of Vietnam (6 C, 3 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 "▶":
Archaeoastronomy (27 C, 40 F)
no subcategories
Belchen-System (4 C, 3 F)
Ballon d'Alsace (10 C, 98 F)
Belchen (6 C, 51 F)
Belchenflue (1 C, 28 F)
Petit Ballon (2 C, 25 F)
no subcategories
no subcategories
Chanquillo (8 F)
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
Nebra sky disk (2 C, 48 F)
no subcategories
no subcategories
no subcategories
no subcategories
Solvognen (1 P, 40 F)
no subcategories
no subcategories
will create this box:
To display all subcategories click on the "▶":
Astronomy (54 C, 99 F)
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
Archaeoastronomy (27 C, 40 F)
no subcategories
Belchen-System (4 C, 3 F)
Ballon d'Alsace (10 C, 98 F)
Belchen (6 C, 51 F)
Belchenflue (1 C, 28 F)
Petit Ballon (2 C, 25 F)
no subcategories
no subcategories
Chanquillo (8 F)
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
no subcategories
Nebra sky disk (2 C, 48 F)
no subcategories
no subcategories
no subcategories
no subcategories
Solvognen (1 P, 40 F)
no subcategories
no subcategories

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

See also

[edit]