“模板:Death date and age/doc”的版本间的差异
(创建页面,内容为“使用模板{{tl|Death date and age}}將會顯示逝世日期,並在其後自動計算並加註今年的年齡。 == 使用說明 == {| class="plainlinksneverexpa…”) |
(没有差异)
|
2023年9月26日 (二) 19:46的版本
使用模板{{Death date and age}}將會顯示逝世日期,並在其後自動計算並加註今年的年齡。
使用說明
代码
{{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日(56岁)
例2,使用:
{{Death date and age|2011|10|5|1955|2}}
页面上显示为:
2011年10月5日(56岁)
例3,使用:
{{Death date and age|2011|10|5|1955}}
页面上显示为: 2011年10月5日(55–56岁)
| ||||||||||||||