模板:Update inline span/doc

来自决策链云智库
< 模板:Update inline span
Zeroclanzhang讨论 | 贡献2024年1月30日 (二) 17:28的版本 (创建页面,内容为“{{Documentation subpage}} {{High-use}} <!-- Categories go at the bottom of this page. --> == Usage == {{markup |<nowiki>{{Update span|date</nowiki>{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>|{{Update span|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} |<nowiki>{{Update span|?=yes|date=</nowiki>{{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki>|{{Update span|?=yes|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} |<nowiki>{{Update span|reason=But t…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Usage

Markup Renders as
{{Update span|date=11月 2024}}
{{Update span|?=yes|date=11月 2024}}
{{Update span|reason=But they never mentioned it again...|date=11月 2024}}
{{Update span|reason=Does this still hold after so many years?|?=yes|date=11月 2024}}

Example

Input:

Result:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Update inline span in articles based on its TemplateData.

TemplateData for Update inline span

This template should only be added to indicate a sentence that needs to be updated based on recent events.

模板参数

参数描述类型状态
Texttext1

The text needing update

内容推荐
Month and yeardate

The date this template was added to the page

示例值
January 2013
自动值
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
字符串推荐
Reasonreason

Brief explanation of the reason why this template is placed, e.g. the event that renders accuracy of the claim questionable

默认值
The date of the event predicted near this tag has passed.
字符串可选
??

Adds '?' to the end of template text and changes wording of caption to denote uncertainty. (Input: anything)

示例值
yes
自动值
yes
字符串可选

See also