|
|
第1行: |
第1行: |
− | <includeonly>{{#categorytree:{{{name|{{{1|Meshal Lite}}}}}}|mode=pages|hideprefix={{{hideprefix|{{{3|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
| + | |
− | *3或hideprefix:是否隐藏内容的名字前缀。可选参数:never、always(默认)、auto、categories
| + | |
− | | + | |
− | === 使用 ===
| + | |
− | <source lang="text">
| + | |
− | {{categorytree|<font color=red>要查找的分类名称</font>}} | + | |
− | </source>
| + | |
− | </noinclude> | + | |