打开/关闭菜单
Toggle preferences menu
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:本分类所有页面

来自医林拾薪
Cirno.9讨论 | 贡献2023年5月24日 (三) 06:24的版本 (创建页面,内容为“{{#if: {{{indent|}}}|:}}{{#categorytree:{{{category|医学心理学本科题库}}}|{{#if: {{{hideroot|}}}|hideroot}}|{{{hideprefix|always}}}|mode={{{mode|pages}}}}} <noinclude> <templatedata> { "params": { "indent": { "aliases": [ "缩进" ], "description": "默认开启,填写任意值即可关闭", "example": "true", "type": "boolean", "default": "空", "autovalue": "空" }, "category": { "aliases": [ "分类名" ]…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
找不到分类“医学心理学本科题库”


本模板使用了categories tree 的功能,可以列举相应分类下的所有页面

[编辑模板数据]

模板参数

此模板首选参数不换行的行内格式。

参数描述类型状态
indentindent缩进

默认开启,填写任意值即可关闭

默认值
示例值
true
自动值
布尔可选
categorycategory分类名

需要显示的分类的名称

示例值
医学心理学本科题库
自动值
医学心理学本科题库
未知必需
hideroothideroot是否显示根名称

默认开启,填写任意值即可关闭

示例值
true
未知可选
hideprefixhideprefix是否隐藏名字空间前缀,如“题库:”

是否隐藏名字空间前缀,如“题库:”

默认值
always
示例值
1. always: always hide the prefix. Should be used only if all pages come from the same namespace (configuration constant 10).

2. never: never hide the namespace prefix, not even for categories (configuration constant 0). 3. auto: hide the namespace of categories if only categories are shown, as with mode="categories" (configuration constant 30). This is equivalent to the old default behavior (before Jun 2008).

4. categories: always hide the namespace of categories, but show all other prefixes (configuration constant 20).
未知可选
modemode列举模式

无描述

默认值
pages
示例值
1. categories: show subcategories only (configuration constant 0)

2. pages: show subcategories and pages, except images (configuration constant 10), limited to 200 pages 3. all: show all pages, subcategories, images, etc. (configuration constant 20)

4: parents: list parent categories instead of subcategories (configuration constant 100). This puts CategoryTree into "inverse" operation (supported since r36892, July 2008).
未知必需