For faster navigation, this Iframe is preloading the Wikiwand page for Template:Birth date.

Template:Birth date

((({year))}-表达式错误:无法识别标点符号“{”。-(({day))})1900年1月1日

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

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

如果知道出生日,但只欲顯示出生年份,請使用((Birth year and age confirmed))。如果不知道出生日,只知道出生年份(含月份),請使用((Birth year and age))。

使用說明

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

請使用以下原始碼:

((Birth date|year=|month=|day=))
((Birth date and age|year=|month=|day=))

其中:

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

範例

例1,使用:

((Birth date and age|year=1993|month=2|day=24))

页面上显示为:

(1993-02-24) 1993年2月24日31歲)

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

((Birth date and age|1993|2|24))

页面上显示为:

(1993-02-24) 1993年2月24日31歲)

例3,若使用:

((Birth date|1993|02|24))

则页面上显示为:

(1993-02-24)1993年2月24日

重定向

((生日和年齡))重定向至((Birth date and age))。

参见

显示出生日期,并在其后自动计算并加注今年的年龄。如果知道出生日,但只欲显示出生年份,请使用((Birth year and age confirmed))。如果不知道出生日,只知道出生年份,请使用((Birth year and age))。

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
出生年份year

请填写四位数的阿拉伯数字,不须加上“年”

数字必需
出生日day

请填写阿拉伯数字,不须加上“日”

数字推荐
出生月份month

请填写阿拉伯数字,不须加上“月”

数字推荐
{{bottomLinkPreText}} {{bottomLinkText}}
Template:Birth date
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?