Template:Category tree all/doc: Difference between revisions
Template page
More actions
m remove confusing null parameter |
m 10 revisions imported |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 49: | Line 49: | ||
{{-}} | {{-}} | ||
* {{tlx|category tree all|<code>Astronomy</code>|3=mode=categories| | * {{tlx|category tree all|<code>Astronomy</code>|3=mode=categories|4=depth=0|5=hideroot=off|6=showcount=on}} | ||
:will create this box: | :will create this box: | ||
{{category tree all|Astronomy|mode=categories|depth=0|hideroot=off|showcount=on}} | {{category tree all|Astronomy|mode=categories|depth=0|hideroot=off|showcount=on}} | ||
| Line 67: | Line 67: | ||
{{-}} | {{-}} | ||
* {{tlx|category tree all|<code>Archaeoastronomy</code>|3=mode=categories|4=depth=2|5=hideroot=off|6=showcount=on|7=header=''This is another user-defined header, click something''| | * {{tlx|category tree all|<code>Archaeoastronomy</code>|3=mode=categories|4=depth=2|5=hideroot=off|6=showcount=on|7=header=''This is another user-defined header, click something''|8=Astronomy education}} | ||
:will create this box: | :will create this box: | ||
{{category tree all|Archaeoastronomy|mode=categories|depth=2|hideroot=off|showcount=on|header=This is a user-defined header, click something}} | {{category tree all|Archaeoastronomy|mode=categories|depth=2|hideroot=off|showcount=on|header=This is a user-defined header, click something}} | ||
| Line 75: | Line 75: | ||
* {{tlx|category tree all|2=Astronomy|3=mode=parents|8=alignright=yes}} | * {{tlx|category tree all|2=Astronomy|3=mode=parents|8=alignright=yes}} | ||
{{tlx|category tree all|2=Astronomy}} | {{tlx|category tree all|2=Astronomy}} | ||
:will create these two boxes: | :will create these two boxes (next example uses {{tl|category tree both}} to do the same): | ||
{{category tree all|Astronomy|mode=parents|alignright=yes}} | {{category tree all|Astronomy|mode=parents|alignright=yes}} | ||
{{category tree all|Astronomy}} | {{category tree all|Astronomy}} | ||
{{clear}}{{-}} | |||
* {{tlx|category tree both|2=Astronomy}} | |||
:is an alternative way to create the same two boxes: | |||
{{category tree both|Astronomy}} | |||
{{clear}}{{-}} | {{clear}}{{-}} | ||
=== See also === | === See also === | ||
* {{tl|category tree both}} - includes both subcategories and parent categories | |||
* {{tl|category tree}} - simpler template that shows subcategories only | * {{tl|category tree}} - simpler template that shows subcategories only | ||
* [[mw:Extension:CategoryTree]] | * [[mw:Extension:CategoryTree]] | ||