Template:Birth date and age

来自维基学院
(重定向自Template:Bda
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

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

如果不知道出生日,只知道出生年份,請使用{{Birth year and age}}。

使用說明[编辑源代码]

請使用以下原始碼:

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

其中:

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

範例[编辑源代码]

例1,使用:

{{Birth date and age|year=1985|month=7|day=28}}

页面上显示为:

1985年7月28日1985-Template:Pad2digit-Template:Pad2digit(38歲)

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

{{Birth date and age|1985|7|28}}

页面上显示为:

1985年7月28日1985-Template:Pad2digit-Template:Pad2digit(38歲)

例3,若使用:

{{Birth date|1985|7|28}}

则页面上显示为:

Template:Birth date

重定向[编辑源代码]

{{生日和年齡}}重定向至{{Birth date and age}}。

参见[编辑源代码]