“模板:Death date and age/doc”的版本间的差异

来自维阿百科
跳转至: 导航搜索
(创建页面,内容为“使用模板{{tl|Death date and age}}將會顯示逝世日期,並在其後自動計算並加註今年的年齡。 == 使用說明 == {| class="plainlinksneverexpa…”)
 
 
第1行: 第1行:
 +
{{FromOther/CN|site=萌娘百科|originURL=https://zh.moegirl.org.cn/{{FULLPAGENAMEE}}|origin={{FULLPAGENAME}}|copyright=cc|lsubtype=by-nc-sa|lver=3.0|contribURL=https://zh.moegirl.org.cn/index.php?title={{FULLPAGENAMEE}}&action=history}}
 
使用模板{{tl|Death date and age}}將會顯示逝世日期,並在其後自動計算並加註今年的年齡。
 
使用模板{{tl|Death date and age}}將會顯示逝世日期,並在其後自動計算並加註今年的年齡。
  

2024年1月3日 (三) 18:56的最新版本

使用模板{{Death date and age}}將會顯示逝世日期,並在其後自動計算並加註今年的年齡。

使用說明

本頁說明全部範例所使用的今天日期是

2024年9月9日

代码

{{Death date and age|死亡年|死亡月|死亡日|出生年|出生月|出生日}}

格式

{{Death date and age|yyyy|mm|dd|yyyy|mm|dd}}

範例

例1,使用:

{{Death date and age|2011|10|5|1955|2|24}}

页面上显示为:

2011年10月5日(2011-10-05)(56岁)

例2,使用:

{{Death date and age|2011|10|5|1955|2}}

页面上显示为:

2011年10月5日(2011-10-05)(56岁)

例3,使用:

{{Death date and age|2011|10|5|1955}}

页面上显示为: 2011年10月5日(2011-10-05)(55–56岁)