Difference between revisions of "Template:Category tree"

From blackwiki
Jump to navigation Jump to search
(to match Category tree all)
imported>Edokter
m (Reverted edits by 195.147.31.104 (talk) to last version by 198.102.153.2)
Line 1: Line 1:
{| class="toc" style="{{#if:{{{alignright|}}}|float:right;}}"
+
{| class="toc" {{#ifeq:{{{alignright|}}}|yes|align="right"}}
!style="padding-left:0.5em;padding-right:0.5em;"| Click the "►" to see {{#if:{{{1|}}} |Category:{{{1}}} |this category}}'s subcategories
+
! Click the "►" below to see all subcategories:
 
|-
 
|-
|style="padding-left:0.5em;padding-right:0.5em;"| {{#tag:categorytree |{{{1|{{PAGENAME}}}}} |depth={{{depth|0}}} }}
+
| {{#tag: categorytree| {{{1|{{PAGENAME}}}}}|depth={{{depth|0}}}}}
|}<noinclude>{{Documentation}}</noinclude>
+
|}<noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude>

Revision as of 21:56, 22 February 2015

Click the "►" below to see all subcategories:

Usage

Note that this template does not work as expected on either the mobile site or if users do not have JavaScript enabled. This affects about half of the readers at the English Wikipedia (as of 2016).

Syntax

Examples

{{Category tree|Films}} will create this box:

Click the "►" below to see all subcategories:
Films

{{Category tree|Films about cats|depth=1}} will create this box:

Click the "►" below to see all subcategories:
no subcategories

See also