Difference between revisions of "Template:Category tree"

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

Revision as of 21:57, 1 February 2015

Click the "►" to see this category's subcategories
Template documentation[view] [edit] [history] [purge]

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 "►" to see Category:Films's subcategories
Films

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

Click the "►" to see Category:Films about cats's subcategories
no subcategories

See also