Template:Category tree all: Difference between revisions
Template page
More actions
mNo edit summary |
No logical explanation provided for splitting up the template |
||
| Line 1: | Line 1: | ||
{|role="presentation" border="0" cellspacing="0" cellpadding="0 | {|role="presentation" border="0" cellspacing="0" cellpadding="0" style="margin:2px 0;background:#F7F8FF;color:#202122;border:1px solid #AAA;border-collapse:collapse;padding:2px 5px;line-height:normal" {{#ifeq:{{{alignright|}}}|yes|align="right"}} | ||
|- | |- | ||
|style="padding:1px 5px"| {{{header|<small>{{LangSwitch | |style="padding:1px 5px"| {{{header|<small>{{LangSwitch | ||
| Line 5: | Line 5: | ||
|de = <em>Um alle {{#switch:{{{mode|}}}|#default=Unterkategorien|all=Unterkategorien, Seiten und Bilder|pages=Seiten|parents=Eltern}} zu sehen, klicke auf</em> „▶“. | |de = <em>Um alle {{#switch:{{{mode|}}}|#default=Unterkategorien|all=Unterkategorien, Seiten und Bilder|pages=Seiten|parents=Eltern}} zu sehen, klicke auf</em> „▶“. | ||
|de-formal = <em>Um alle {{#switch:{{{mode|}}}|#default=Unterkategorien|all=Unterkategorien, Seiten und Bilder|pages=Seiten|parents=Eltern}} zu sehen, klicken Sie auf</em> „▶“. | |de-formal = <em>Um alle {{#switch:{{{mode|}}}|#default=Unterkategorien|all=Unterkategorien, Seiten und Bilder|pages=Seiten|parents=Eltern}} zu sehen, klicken Sie auf</em> „▶“. | ||
|en = <em>To display all {{#switch:{{{mode|}}}|#default=subcategories|all=subcategories, pages and images|pages=pages|parents= | |en = <em>To display all {{#switch:{{{mode|}}}|#default=subcategories|all=subcategories, pages and images|pages=pages|parents=parents}}, click on</em> “▶”. | ||
|eo = <em>Por ekvidi ĉiujn {{#switch:{{{mode|}}}|#default=subkategoriojn|all=subkategoriojn, paĝojn kaj bildojn|pages=paĝojn|parents=gepatrojn}}, alklaku la</em> “▶”. | |eo = <em>Por ekvidi ĉiujn {{#switch:{{{mode|}}}|#default=subkategoriojn|all=subkategoriojn, paĝojn kaj bildojn|pages=paĝojn|parents=gepatrojn}}, alklaku la</em> “▶”. | ||
|es = <em>Para ver todas las {{#switch:{{{mode|}}}|#default=subcategorías|all=subcategorías, páginas e imágenes|pages=páginas|parents=categorías madre}}, presione </em> «▶». | |es = <em>Para ver todas las {{#switch:{{{mode|}}}|#default=subcategorías|all=subcategorías, páginas e imágenes|pages=páginas|parents=categorías madre}}, presione </em> «▶». | ||
| Line 13: | Line 13: | ||
|ko = <!--no em-->모든 {{#switch:{{{mode|}}}|#default=하위 분류를|all=하위 범주, 페이지 및 이미지를|pages=페이지를|parents=어머니 범주를}} 보려면 「▶」를 클릭하십시오. | |ko = <!--no em-->모든 {{#switch:{{{mode|}}}|#default=하위 분류를|all=하위 범주, 페이지 및 이미지를|pages=페이지를|parents=어머니 범주를}} 보려면 「▶」를 클릭하십시오. | ||
|mk = <em>За да ги видите сите {{#switch:{{{mode|}}}|#default=подкатегории|all=подкатегории, страници и слики|pages=страници|parents=категории на мајка}}, стиснете на</em> „▶“. | |mk = <em>За да ги видите сите {{#switch:{{{mode|}}}|#default=подкатегории|all=подкатегории, страници и слики|pages=страници|parents=категории на мајка}}, стиснете на</em> „▶“. | ||
|my = <em> | <!-- | ||
|nds= <em>Dat du all {{#switch:{{{mode|}}}|#default=Ünnerkategorien|all=Ünnerkategorien, | |my = <em>ကဏ္ဍခွဲများအားလုံးကိုပြသစေရန် “▶” သင်္ကေတကို ကလစ်ခေါက်ပါ။</em> | ||
|nds= <em>Dat du all {{#switch:{{{mode|}}}|#default=Ünnerkategorien|all=Ünnerkategorien, pages and images|pages=pages|parents=parents}} sehn kannst, klick op dat</em> „▶“. | |||
--> | |||
|nl = <em>Om alle {{#switch:{{{mode|}}}|#default=subcategorieën|all=subcategorieën, pagina’s en afbeeldingen|pages=pagina’s|parents=moedercategorieën}} weer te geven, klik op “▶”. | |nl = <em>Om alle {{#switch:{{{mode|}}}|#default=subcategorieën|all=subcategorieën, pagina’s en afbeeldingen|pages=pagina’s|parents=moedercategorieën}} weer te geven, klik op “▶”. | ||
|pl = <em>Aby wyświetlić wszystkie {{#switch:{{{mode|}}}|#default=podkategorie|all=podkategorie, strony i obrazy|pages=strony|parents=kategorie matek}}, kliknij na</em> “▶”. | |pl = <em>Aby wyświetlić wszystkie {{#switch:{{{mode|}}}|#default=podkategorie|all=podkategorie, strony i obrazy|pages=strony|parents=kategorie matek}}, kliknij na</em> “▶”. | ||
| Line 21: | Line 23: | ||
|sv = <em>För att visa alla {{#switch:{{{mode|}}}|#default=underkategorier|all=underkategorier, sidor och bilder|pages=sidor|parents=moderkategorier}}, klicka på</em> “▶”. | |sv = <em>För att visa alla {{#switch:{{{mode|}}}|#default=underkategorier|all=underkategorier, sidor och bilder|pages=sidor|parents=moderkategorier}}, klicka på</em> “▶”. | ||
|zh-hans = < !--no em-- >要显示所有{{#switch:{{{mode|}}}|#default=子类别|all=子类别、页面和图像|pages=页面|parents=母亲类别}},请单击「▶」。 | |zh-hans = < !--no em-- >要显示所有{{#switch:{{{mode|}}}|#default=子类别|all=子类别、页面和图像|pages=页面|parents=母亲类别}},请单击「▶」。 | ||
}}</small>}}} | }}</small>}}} | ||
{{#tag:categorytree|{{#if:{{{1|}}}|{{{1|}}}|{{PAGENAME}}}}|mode={{#switch:{{{mode|}}}|#default=categories|all|pages|parents={{{mode|}}}}}|depth={{#if:{{{depth|}}}|{{{depth|}}}|0 }}|hideroot={{#if:{{{hideroot|}}}|{{{hideroot|}}}|off}}|showcount={{#if:{{{showcount|}}}|{{{showcount|}}}|on}}}} | |||
}} | |||
|}<noinclude>{{Documentation}} | |}<noinclude>{{Documentation}} | ||
[[Category:Category navigational templates]] | [[Category:Category navigational templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 06:16, 22 June 2023
| To display all subcategories, click on “▶”.
Category Category tree all not found
|
This documentation is transcluded from Template:Category tree all/doc.
Usage
This template displays a configurable showable list of subcategories, pages, images, or parent categories.
Syntax
- {{category tree all}} - basic form, uses the name of the category page it is placed on
- {{category tree all|
title}} - usestitleas 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
- {{category tree all|
Films}}
- will create this box:
| To display all subcategories, click on “▶”.
Category Films not found
|
- {{category tree all|
Films|showcount=off}}
- will create a box without numbers:
| To display all subcategories, click on “▶”.
Category Films not found
|
- {{category tree all|
Films by country|depth=0}}
- will create a box initially showing the root only:
| To display all subcategories, click on “▶”.
Category Films by country not found
|
- {{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 “▶”.
Category Films by country not found
|
- {{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 “▶”.
Category Archaeoastronomy not found
|
- {{category tree all|
Astronomy|mode=categories|depth=0|hideroot=off|showcount=on}}
- will create this box:
| To display all subcategories, click on “▶”.
Category Astronomy not found
|
- {{category tree all|
Astronomy|mode=parents|depth=1|hideroot=on}}
- will create this box:
| To display all parents, click on “▶”.
Category Astronomy not found
|
- {{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 Astronomy not found
|
- {{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
Category Archaeoastronomy not found
|
- {{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 “▶”.
Category Astronomy not found
|
| To display all subcategories, click on “▶”.
Category Astronomy not found
|
- {{category tree both|Astronomy}}
- is an alternative way to create the same two boxes:
See also
- {{Category tree both}} - includes both subcategories and parent categories
- {{Category tree}} - simpler template that shows subcategories only
- mw:Extension:CategoryTree
- en:Template:Category tree - similar template on the English Wikipedia