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(58 C, 1279 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(133 C)
will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
Films by country(133 C)
Films by country by year(139 C, 1 P)
Film posters by country(67 C, 1 F)
Films of Algeria(2 C, 2 F)
Films of Argentina(75 C, 170 F)
Films of Austria(11 C)
Films of Azerbaijan(4 C, 20 F)
Films of Bangladesh(3 C, 2 F)
Films of Belarus(5 C, 6 F)
Films of Belgium(10 C, 1 F)
Films of Bhutan(1 C)
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(16 C, 1 P, 212 F)
Films of Chile(9 C, 23 F)
Films of China(57 C, 2 P, 106 F)
Films of Colombia(10 C, 6 F)
Films of Croatia(6 C, 4 F)
Films of Denmark(21 C, 7 F)
Films of Egypt(10 C, 54 F)
Films of Estonia(3 C, 6 F)
Films of Uruguay(2 C, 3 F)
Films of Finland(10 C, 16 F)
Films of France(26 C, 149 F)
Films of Georgia(6 C, 7 F)
Films of Germany(28 C, 90 F)
Films of Greece(6 C)
Films of Guatemala(2 C, 2 F)
Films of Guinea(1 C)
Films of Hungary(10 C, 59 F)
Films of Iceland(9 C, 77 F)
Films of India(44 C, 51 F)
Films of Indonesia(73 C, 2 F)
Films of Iran(15 C, 8 F)
Films of Ireland(25 C, 2 F)
Films of Israel(73 C, 16 F)
Films of Italy(26 C, 113 F)
Films of Japan(85 C, 49 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, 25 F)
Films of Moldova(1 C, 34 F)
Films of Monaco(2 C)
Films of Morocco(6 C, 1 F)
Films of Nepal(3 C, 1 F)
Films of the Netherlands(92 C, 52 F)
Films of New Zealand(8 C, 4 F)
Films of Nigeria(2 C, 6 F)
Films of Norway(25 C, 22 F)
Films of Pakistan(3 C, 4 F)
Films of Paraguay(1 C, 1 F)
Films of Peru(6 C, 12 F)
Films of Poland(20 C, 58 F)
Films of Portugal(22 C, 16 F)
Films of Qatar(2 C)
Films of Romania(13 C, 6 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(5 C, 1 F)
Films of South Korea(7 C, 12 F)
Films of the Soviet Union(9 C, 3 P, 2 F)
Films of Spain(15 C, 48 F)
Films of Sweden(38 C, 28 F)
Films of Switzerland(46 C, 27 F)
Films of Taiwan(25 C, 11 F)
Films of Thailand(11 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, 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(26 C, 40 F)
Argimusco(3 C, 82 F)
no subcategories
Aryabhata(3 C, 1 P, 24 F)
Belchen-System(4 C, 3 F)
Ballon d'Alsace(11 C, 83 F)
Belchen(6 C, 51 F)
Belchenflue(43 F)
Petit Ballon(2 C, 17 F)
Bochow circle(2 F)
no subcategories
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, 48 F)
Arche Nebra(1 C, 13 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(55 C, 153 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(26 C, 40 F)
Argimusco(3 C, 82 F)
no subcategories
Aryabhata(3 C, 1 P, 24 F)
Belchen-System(4 C, 3 F)
Ballon d'Alsace(11 C, 83 F)
Belchen(6 C, 51 F)
Belchenflue(43 F)
Petit Ballon(2 C, 17 F)
Bochow circle(2 F)
no subcategories
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, 48 F)
Arche Nebra(1 C, 13 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(55 C, 153 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(55 C, 153 F)

See also

[edit]