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(56 C, 1282 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 "▶":
Films by country(131 C)
will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
Films by country(131 C)
Films by country by year(139 C, 1 P)
Film posters by country(66 C, 1 F)
Films of Algeria(2 C, 2 F)
Films of Argentina(74 C, 171 F)
Films of Austria(11 C)
Films of Azerbaijan(3 C, 15 F)
Films of Bangladesh(3 C, 2 F)
Films of Belarus(5 C, 6 F)
Films of Belgium(6 C, 1 F)
Films of Brazil(9 C, 4 F)
Films of Bulgaria(12 C, 11 F)
Films of Burkina Faso(1 C, 3 F)
Films of Canada(82 C, 1 P, 214 F)
Films of Chile(8 C, 23 F)
Films of China(57 C, 2 P, 102 F)
Films of Colombia(10 C, 6 F)
Films of Croatia(6 C, 4 F)
Films of Denmark(16 C, 8 F)
Films of Egypt(10 C, 54 F)
Films of Estonia(3 C, 5 F)
Films of Uruguay(2 C, 3 F)
Films of Finland(10 C, 16 F)
Films of France(28 C, 245 F)
Films of Georgia(6 C, 7 F)
Films of Germany(30 C, 96 F)
Films of Greece(5 C)
Films of Guatemala(2 C, 2 F)
Films of Guinea(1 C)
Films of Hungary(9 C, 63 F)
Films of Iceland(8 C, 77 F)
Films of India(76 C, 53 F)
Films of Indonesia(73 C, 2 F)
Films of Iran(14 C, 8 F)
Films of Ireland(24 C, 2 F)
Films of Israel(74 C, 16 F)
Films of Italy(26 C, 117 F)
Films of Japan(92 C, 51 F)
Films of Kenya(1 F)
Films of Korea(2 C, 6 F)
Films of Latvia(3 C, 2 F)
Films of Libya(1 C)
Films of Luxembourg(17 C, 2 F)
Films of Mali(1 C, 3 F)
Films of Mexico(32 C, 27 F)
Films of Moldova(1 C, 34 F)
Films of Monaco(2 C)
Films of Morocco(5 C, 3 F)
Films of Nepal(3 C, 1 F)
Films of the Netherlands(92 C, 52 F)
Films of New Zealand(9 C, 4 F)
Films of Nigeria(2 C, 6 F)
Films of Norway(24 C, 22 F)
Films of Pakistan(3 C, 4 F)
Films of Paraguay(1 C, 1 F)
Films of Peru(5 C, 12 F)
Films of Poland(19 C, 60 F)
Films of Portugal(22 C, 16 F)
Films of Qatar(1 C)
Films of Romania(9 C, 7 F)
Films of Russia(12 C)
Films of Rwanda(1 C)
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 Africa(4 C, 1 F)
Films of South Korea(6 C, 12 F)
Films of the Soviet Union(9 C, 3 P, 2 F)
Films of Spain(17 C, 49 F)
Films of Sweden(37 C, 28 F)
Films of Switzerland(45 C, 27 F)
Films of Taiwan(24 C, 11 F)
Films of Thailand(10 C, 2 P, 9 F)
Films of Togo(5 F)
Films of Tunisia(2 C, 3 F)
Films of Turkey(15 C, 6 F)
Films of Ukraine(15 C, 13 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(25 C, 40 F)
Argimusco(3 C, 74 F)
no subcategories
Aryabhata(3 C, 1 P, 23 F)
Belchen-System(4 C, 3 F)
Ballon d'Alsace(11 C, 83 F)
Belchen(6 C, 50 F)
Belchenflue(43 F)
Petit Ballon(1 C, 19 F)
no subcategories
Chanquillo(8 F)
no subcategories
no subcategories
no subcategories
no subcategories
Goseck circle(96 F)
no subcategories
no subcategories
Nabta Playa(6 F)
no subcategories
Nebra sky disk(2 C, 46 F)
Arche Nebra(1 C, 11 F)
no subcategories
no subcategories
no subcategories
Rocca Pizzicata(14 F)
no subcategories
Solvognen(1 P, 37 F)
no subcategories
no subcategories
will create this box:
To display all subcategories click on the "▶":
Astronomy(54 C, 189 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(25 C, 40 F)
Argimusco(3 C, 74 F)
no subcategories
Aryabhata(3 C, 1 P, 23 F)
Belchen-System(4 C, 3 F)
Ballon d'Alsace(11 C, 83 F)
Belchen(6 C, 50 F)
Belchenflue(43 F)
Petit Ballon(1 C, 19 F)
no subcategories
Chanquillo(8 F)
no subcategories
no subcategories
no subcategories
no subcategories
Goseck circle(96 F)
no subcategories
no subcategories
Nabta Playa(6 F)
no subcategories
Nebra sky disk(2 C, 46 F)
Arche Nebra(1 C, 11 F)
no subcategories
no subcategories
no subcategories
Rocca Pizzicata(14 F)
no subcategories
Solvognen(1 P, 37 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, 189 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, 189 F)

See also[edit]