跳转到内容

模板:C

来自天灾之下:危险连接资料站
wiki>Svartava2025年7月4日 (五) 11:12的版本 (Reverted edits by DB N 12345 (talk) to last version by ExE Boss)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

[[Special:MyLanguage/Category:{{{1}}}|{{{2}}}]][[:Category:{{{1}}}| ]]

模板文档

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.

模板参数[编辑模板数据]

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

参数描述类型状态
Category1

The name of the category (The “Category:” prefix may be omitted)

自动值
字符串必需
Displayed Text2

The displayed text

单行文本可选
Namespace?nsp

Whether to display the “Category:” namespace prefix, defaults to whether parameter 1 includes the “Category:” prefix.

推荐值
0 1 ¬
默认值
{{#ifeq:{{NAMESPACENUMBER:{{{1}}}|14|1|0}}}}
自动值
0
布尔可选

Examples

No |nsp= parameter
  • {{C|Foo}} → Foo
  • {{C|Category:Foo}} → Category:Foo
|nsp=0
  • {{C|Foo|nsp=0}} → Foo
  • {{C|Category:Foo|nsp=0}} → Foo
|nsp=1