本模板用于表示一个模板已经停用。如果将本模板放在其他的模板里,需要用<noinclude>...</noinclude>
包围;也可以直接放在模板的文档页。
参数
模板链接:{{Deprecated template|旧模板名称|新模板名称}}
所有参数都是可选的。
new
:未过时的模板。date
:被废弃的时间,必须是ISO格式,如2024-06-3。historical
:是否是由于历史原因保留nocat
:若为1,则不将模板加入分类。
代码 | 显示效果 |
---|---|
{{Deprecated template}}
|
|
{{Deprecated template|date=2024-06-3}}
|
|
{{Deprecated template|Deprecated template
|
|
{{Deprecated template|Deprecated template
|
本模板已弃用。请参见Template:Update after。 |
{{Deprecated template|Deprecated template
|
本模板已弃用。请参见Template:Update after。你也可以用其他模板。 |
参见
用于表示一个模板已停用。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
1 | 1 | 无描述 | 未知 | 可选 |
2 | 2 | 无描述 | 未知 | 可选 |
3 | 3 | 无描述 | 未知 | 可选 |
by | by | 表示这个模板被谁停用。 | 单行文本 | 可选 |
historical | historical | 这个模板是否因为历史原因而保留。 | 布尔 | 可选 |
new | new | 推荐使用的新的模板代替。 | 字符串 | 可选 |
note | note | 在主消息后面添加额外内容。 | wikitext片段 | 可选 |
nocat | nocat | 是否不将使用该了此模板的页面加入分类。 | 布尔 | 可选 |
old | old | 旧的模板名称。 | 未知 | 可选 |