Template:Birth year and age confirmed

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

使用模板{{Birth year and age confirmed}}將會顯示出生年份,並在其後根據所輸入的出生日期自動計算並加註今年的年齡。{{Birth date}}是一个用法相似的模板,但不会加注年龄。

如果欲顯示完整出生日期,請使用{{Birth date and age}}。如果不知道出生日,只知道出生年份,請使用{{Birth year and age}}。

使用說明 编辑

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

2024年6月4日

請使用以下原始碼:

{{Birth year and age confirmed|year=|month=|day=}}

其中:

  • year:出生西元年份(請填寫四位數的阿拉伯數字,不須加上「年」)
  • month:出生月份(請填寫阿拉伯數字,不須加上「月」)
  • day:出生日(請填寫阿拉伯數字,不須加上「日」)

範例 编辑

例1,使用:

{{Birth year and age confirmed|year=1993|month=2|day=24}}

页面上显示为:

(1993-02-24) 1993年31歲)

例2,也可以省略變數名稱,例如:

{{Birth year and age confirmed|1993|2|24}}

页面上显示为:

(1993-02-24) 1993年31歲)

参见 编辑