模板:Update/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

使用方式[编辑]

这个模板是提示有时效性之条目,进行反映时事的内容更新。

这个模板是一个自我提及

预设的“条目”字词是可以修改的:{{Update|條目所有內容|time=2026-06-25T20:42:37+00:00}} 会产生

其中,time参数必须正确填写,否则会报告错误。

还可以用|reason=说明需要更新的原因、用|updated=说明上一次重大更新的时间:

{{Update|time=2026-06-25|reason=目前此用语的意思已经发生改变|updated=2016-02-29}}

若只想注明加入模板的时间|time=,可以使用自动填写时间戳的:

{{subst:update/auto}}

|small参数可显示一个较小的提示,用于标记特定章节

模板重定向[编辑]

模板数据[编辑]

<templatedata> { "description": "提示页面需要更新的模板", "params": { "1": { "description": "需要更新的部分", "example": "条目所有内容" }, "date": {}, "time": { "label": "时间", "description": "模板放置的时间", "example": "2023-04-08T16:36:39+00:00", "type": "date", "required": true }, "small": { "description": "在参数值为left时可以产生一个小型的模板,以于章节中使用。", "example": "left", "suggestedvalues": [ "left" ] }, "reason": { "label": "原因", "description": "需要更新的原因", "type": "line" }, "new": { "description": "页面在别处(例如沙盒)的新版本", "type": "wiki-page-name" }, "talk": { "description": "到讨论页相关讨论的链接", "type": "wiki-page-name" }, "updated": { "description": "最后一次大幅更新的时间", "type": "date" } } } </templatedata>

参见[编辑]