“模板:Death date and age”的版本间的差异
(创建页面,内容为“<includeonly>{{{1|{{{year}}}}}}年{{#if:{{{df|}}}|{{MONTHNAME|{{{2|{{{month}}}}}}}}{{#expr:{{{3|{{{day}}}}}}}}日|{{MONTHNAME|{{{2|{{{month}}}}}}}}{{#expr:{{{3|{{{da…”) |
(没有差异)
|
2023年9月26日 (二) 19:45的最新版本
| 本页面之全部或部分原来自萌娘百科的模板:Death date and age,依 CC BY-NC-SA 3.0 CN 授权引入;原贡献者可以在这里看到。 |
使用模板{{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岁)
| ||||||||||||||