个人工具

模板:Categorytree

出自Meshal Lite

跳转到: 导航, 搜索
(1个修订)
 
第1行: 第1行:
<includeonly>{{#categorytree:{{{name|{{{1|Meshal Lite}}}}}}|mode=pages|hideprefix=always|showcount={{{count|{{{2|off}}}}}} }}</includeonly><noinclude>[[category:模板]][[category:编辑]]
+
<includeonly>{{#categorytree:{{{name|{{{1|Meshal Lite}}}}}}|mode=categories|hideprefix=never|showcount={{#switch:{{{count|{{{2|off}}}}}}|on=on|y=on|off=off|n=off|#default=off}}}}</includeonly><noinclude>{{tpl_helpdoc}}</noinclude>
 
+
== 模板说明 ==
+
{{!}}
+
这个模板用来生成1个树状结构的视图, 囊括了指定分类下的所有子分类和页面. 它用来做资料的分类索引时非常有用.
+
 
+
=== 参数 ===
+
{{!}}
+
*1或name: 要显示的根分类, 填写的分类名称就会被视作这个树状结构的根节点. 默认为Meshal Lite.
+
*2或count: 是否在每个分类后面标注分类下的内容数量, 可以填写on或off. 默认为off
+
|}
+
 
+
=== 使用 ===
+
{{!}}
+
<nowiki>{{categorytree|</nowiki><font color=red>要查找的分类名称</font><nowiki>}}</nowiki>
+
|}
+
 
+
|}
+
</noinclude>
+

在2019年11月3日 (日) 03:02的最新修订版本