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(59 C, 1238 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(121 C)
will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
Films by country(121 C)
Film posters by country(60 C, 2 F)
Films of Algeria(2 C, 3 F)
Films of Argentina(70 C, 171 F)
Films of Australia(28 C, 24 F)
Films of Austria(95 C, 18 F)
Films of Azerbaijan(3 C, 15 F)
Films of Bangladesh(3 C, 2 F)
Films of Belarus(5 C, 6 F)
Films of Belgium(39 C, 22 F)
Films of Brazil(8 C, 5 F)
Films of Bulgaria(10 C, 10 F)
Films of Burkina Faso(1 C, 3 F)
Films of Canada(74 C, 1 P, 216 F)
Films of Chile(8 C, 23 F)
Films of China(56 C, 2 P, 103 F)
Films of Colombia(9 C, 4 F)
Films of Croatia(6 C, 4 F)
Films of Denmark(16 C, 6 F)
Films of Egypt(10 C, 53 F)
Films of Estonia(7 C, 11 F)
Films of Finland(7 C, 13 F)
Films of France(25 C, 255 F)
Films of Georgia(4 C, 7 F)
Films of Germany(32 C, 94 F)
Films of Greece(5 C)
Films of Guatemala(1 C, 2 F)
Films of Guinea(1 C)
Films of Hungary(10 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(22 C, 19 F)
Films of Ireland(21 C, 2 F)
Films of Israel(72 C, 18 F)
Films of Italy(22 C, 119 F)
Films of Japan(99 C, 51 F)
Films of Kenya(1 F)
Films of Korea(2 C, 5 F)
Films of Latvia(3 C, 1 F)
Films of Libya(1 C)
Films of Luxembourg(16 C, 2 F)
Films of Mali(3 F)
Films of Mexico(29 C, 26 F)
Films of Moldova(1 C, 26 F)
Films of Monaco(2 C)
Films of Morocco(5 C, 1 F)
Films of Nepal(2 C, 1 F)
Films of the Netherlands(92 C, 51 F)
Films of New Zealand(9 C, 16 F)
Films of Nigeria(2 C, 6 F)
Films of Norway(17 C, 22 F)
Films of Pakistan(3 C, 4 F)
Films of Paraguay(1 C, 1 F)
Films of Peru(4 C, 11 F)
Films of Poland(20 C, 54 F)
Films of Portugal(17 C, 16 F)
Films of Romania(6 C, 11 F)
Films of Russia(11 C)
Films of Rwanda(1 C)
Films of Senegal(1 C, 2 F)
Films of Serbia(8 C, 8 F)
Films of Singapore(4 C, 10 F)
Films of Slovakia(4 C, 1 F)
Films of Slovenia(18 C, 6 F)
Films of South Africa(4 C, 1 F)
Films of South Korea(3 C, 11 F)
Films of the Soviet Union(8 C, 3 P, 2 F)
Films of Spain(49 C, 63 F)
Films of Sweden(34 C, 28 F)
Films of Switzerland(44 C, 26 F)
Films of Taiwan(9 C, 10 F)
Films of Thailand(10 C, 2 P, 8 F)
Films of Togo(5 F)
Films of Turkey(12 C, 7 F)
Films of Ukraine(13 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, 41 F)
Argimusco(3 C, 74 F)
no subcategories
Aryabhata(3 C, 22 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(95 F)
no subcategories
no subcategories
Nabta Playa(6 F)
no subcategories
Nebra sky disk(2 C, 45 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(45 C, 427 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, 41 F)
Argimusco(3 C, 74 F)
no subcategories
Aryabhata(3 C, 22 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(95 F)
no subcategories
no subcategories
Nabta Playa(6 F)
no subcategories
Nebra sky disk(2 C, 45 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(45 C, 427 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(45 C, 427 F)

See also[edit]