Template:Category tree all

To display all subcategories click on the "▶":
Category tree all(empty)
Documentation icon Documentation[view] [edit] [history] [purge]

This documentation is transcluded from Template:Category tree all/doc.


UsageEdit

This template displays a configurable showable list of subcategories, pages, images, or parent categories.

SyntaxEdit

  • {{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

ExamplesEdit

  • {{category tree all|Films}}
will create this box:
To display all subcategories click on the "▶":
Films(43 C, 650 F)


  • {{category tree all|Films|showcount=off}}
will create a box without numbers:
To display all subcategories click on the "▶":
Films


  • {{category tree all|Films by country|depth=0}}
will create a box initially showing the root only:
To display all subcategories click on the "▶":
Films by country(63 C)


  • {{category tree all|Films by country|depth=1}}
will create a box initially showing the tree to a depth of one:
To display all subcategories click on the "▶":
Films by country(63 C)
Films of Argentina(18 C, 63 F)
Films of Australia(18 C, 14 F)
Films of Austria(26 C, 20 F)
Films of Azerbaijan(11 F)
Films of Belarus(2 C, 10 F)
Films of Belgium(7 C, 6 F)
Films of Brazil(3 C, 6 F)
Films of Bulgaria(1 C, 1 F)
Films of Canada(16 C, 1 P, 24 F)
Films of Chile(9 F)
Films of China(8 C, 2 P, 53 F)
Films of Colombia(2 C, 1 F)
Films of Croatia(1 C)
Films of the Czech Republic(6 C, 7 F)
Films of Denmark(7 C, 1 F)
Films of Egypt(2 C, 46 F)
Films of Estonia(4 F)
Films of Finland(1 C, 1 F)
Films of France(102 C, 1 P, 200 F)
Films of Georgia(6 C, 1 F)
Films of Germany(74 C, 75 F)
Films of Hong Kong(4 C, 1 P, 32 F)
Films of Hungary(4 C)
Films of India(27 C, 24 F)
Films of Indonesia(10 C, 1 F)
Films of Iran(2 C, 1 F)
Films of Ireland(2 C)
Films of Israel(30 C, 1 F)
Films of Italy(70 C, 104 F)
Films of Japan(90 C, 125 F)
Films of Korea(1 C, 1 F)
Films of Latvia(1 C)
Films of Libya(1 C, 1 F)
Films of Lithuania(6 F)
Films of Luxembourg(3 C, 2 F)
Films of Mexico(2 C, 5 F)
Films of Morocco(1 C)
Films of Nepal(1 C, 1 F)
Films of the Netherlands(16 C, 1 P, 31 F)
Films of New Zealand(5 C, 1 F)
Films of Norway(5 C, 8 F)
Films of Pakistan(1 C)
Films of Paraguay(1 C)
Films of Poland(17 C, 55 F)
Films of Portugal(1 C, 10 F)
Films of Romania(3 C, 5 F)
Films of Russia(26 C, 3 F)
Films of Serbia(3 C, 8 F)
Films of Singapore(3 C, 2 F)
Films of Slovakia(2 C)
Films of Spain(8 C, 15 F)
Films of Sweden(14 C, 44 F)
Films of Switzerland(3 C, 3 F)
Films of Thailand(3 P, 7 F)
Films of Turkey(1 C)
Films of Ukraine(5 C, 4 F)
Films of the United Kingdom(87 C, 87 F)
Films of the United States(2209 C, 22 P, 303 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(13 C, 44 F)
Aryabhata(2 C, 6 F)
Aryabhata (crater)(2 F)
Cahokia woodhenges(6 F)
no subcategories
Fajada Butte(6 F)
Peñasco Blanco(9 F)
Pueblo Alto(2 F)
Pueblo Bonito(23 F)
Pueblo del Arroyo(6 F)
no subcategories
Goseck circle(71 F)
no subcategories
Kokino(17 F)
no subcategories
no subcategories
Nabta Playa(4 F)
no subcategories
Nebra sky disk(1 C, 25 F)
Arche Nebra(6 F)
Newgrange(94 F)
no subcategories
Solvognen(1 P, 12 F)
no subcategories


  • {{category tree all|Astronomy|mode=categories|hideroot=off|showcount=on}}
will create this box:
To display all subcategories click on the "▶":
Astronomy(33 C, 4 P, 286 F)


  • {{category tree all|Astronomy|mode=parents|depth=1|hideroot=on}}
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|Astronomy education}}
will create this box:
This is a user-defined header, click something
Archaeoastronomy(13 C, 44 F)
Aryabhata(2 C, 6 F)
Aryabhata (crater)(2 F)
Cahokia woodhenges(6 F)
no subcategories
Fajada Butte(6 F)
Peñasco Blanco(9 F)
Pueblo Alto(2 F)
Pueblo Bonito(23 F)
Pueblo del Arroyo(6 F)
no subcategories
Goseck circle(71 F)
no subcategories
Kokino(17 F)
no subcategories
no subcategories
Nabta Playa(4 F)
no subcategories
Nebra sky disk(1 C, 25 F)
Arche Nebra(6 F)
Newgrange(94 F)
no subcategories
Solvognen(1 P, 12 F)
no subcategories


  • {{category tree all|Astronomy|mode=parents|alignright=yes}}

{{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(33 C, 4 P, 286 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(33 C, 4 P, 286 F)

See alsoEdit


Last modified on 2 December 2013, at 19:50