For faster navigation, this Iframe is preloading the Wikiwand page for 模板:Death year and age.

模板:Death year and age

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

用法

本模版((Birth year and age))和((Death year and age))显示一个人的出生或逝世年份与大概年龄。如果要完整显示出生或逝世年月日,请使用((Birth date and age))和((Death date and age))。

本页说明全部范例所使用的今天日期是 2024年8月3日

((Birth year and age))

假设:

  1. 某人的出生年份是1969年
  2. 今天是2024年8月3日
  • 如果这个人是在1969年8月3日之后出生,那么他在今天(2024年8月3日)还没有过今年的生日,于是他就只是54岁。但是如果他是在1969年8月3日或之前出生,那么他就是55岁。
所以使用本模版((birth year and age|1969))时,
他的出生年份与年龄是:1969年(54—55岁)
  • 另外,如果我们知道这个人的出生月份,我们也可以使用本模版。
假设这个人出生的年月份是1969年6月,那么:
  • 如果现在是2024年1月,即是说这个人今年还没有过生日。所以使用本模版((birth year and age|1969|6)) 时,他的出生年月份与年龄是:1969年6月(54岁)。
  • 如果现在是2024年6月,我们并不知道他是否过了生日(因为我们不知道他哪一天出生)。所以本模版就会显示他的出生年份与年龄是:1969年6月(54-55岁)。
  • 如果现在是2024年12月,即是说这个人今年已经过了生日。所以使用本模版时,他的出生年份与年龄是:1969年6月(55岁)。

((Death year and age))

假设:

  1. 某人的出生年份是1973年
  2. 他于2023年某日逝世
  • 我们可以分开为两个例子:(1)某人出生于1973年12月31日,于2023年1月1日逝世,那么他还没有过在2023年12月31日的生日,于是他就只是49岁;(2)某人出生于1973年1月1日,于2023年12月31日逝世,那么他已经过了在2023年1月1日的生日,于是他就是50岁。
所以使用本模版((Death year and age|2023|1973))时,
他的逝世年份与年龄是:2023年(49—50岁)
  • 另外,如果我们知道这个人的逝世月份,我们也可以使用本模版。
使用上述例子,假设这个人的逝世月份是08(8月)
所以使用本模版((Death year and age|2023|1973|08))时,
他的逝世年份与年龄是:2023年8月(49—50岁)

Note: Do not use this template inside the Wikipedia:Persondata template as it can interfere with data extraction.

格式

((Birth year and age|出生年份))
((Birth year and age|出生年份|出生月份(可省略)))
((Death year and age|逝世年份|出生年份))
((Death year and age|逝世年份|出生年份|逝世月份(可省略)))

范例

源代码 结果
((Birth year and age|1969)) 1969年(54—55岁)
((Birth year and age|1969|08)) 1969年8月(54—55岁)
((Death year and age|2023|1973)) 2023年(49—50岁)
((Death year and age|2023|1973|08)) 2023年8月(49—50岁)

参见

显示出生日期,并在其后自动计算并加注今年的年龄。

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

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

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

示例值
1970
数字必需
出生月份month

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

数字推荐
出生日day

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

数字推荐
{{bottomLinkPreText}} {{bottomLinkText}}
模板:Death year and age
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?