模板:C/doc:修订间差异
外观
< 模板:C
wiki>ENeRZet text editing |
小 导入1个版本 |
(没有差异)
| |
2025年12月16日 (二) 16:40的最新版本
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:C. It contains usage information, categories and other content that is not part of the original 模板 page. |
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Category link
Creates a link to a category in the user’s language.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Category | 1 | The name of the category (The “Category:” prefix may be omitted)
| 字符串 | 必需 |
| Displayed Text | 2 | The displayed text | 单行文本 | 可选 |
| Namespace? | nsp | Whether to display the “Category:” namespace prefix, defaults to whether parameter 1 includes the “Category:” prefix.
| 布尔 | 可选 |
Examples
- No
|nsp=parameter -
- {{C|Foo}} → Foo
- {{C|Category:Foo}} → Category:Foo
|nsp=1-
- {{C|Foo|nsp=1}} → Category:Foo
- {{C|Category:Foo|nsp=1}} → Category:Foo