For faster navigation, this Iframe is preloading the Wikiwand page for
模板:Death year and age.
| 此模板被引用于约5,600个页面。 为了避免造成大规模的影响,所有对此模板的编辑应先于沙盒、测试样例或您的沙盒上测试。 测试后无误的版本可以一次性地加入此模板中,但是修改前请务必于讨论页发起讨论。
模板引用数量会自动更新。 |
用法
本模版((Birth year and age))和((Death year and age))显示一个人的出生或逝世年份与大概年龄。如果要完整显示出生或逝世年月日,请使用((Birth date and age))和((Death date and age))。
本页说明全部范例所使用的今天日期是
2024年8月3日
((Birth year and age))
假设:
- 某人的出生年份是1969年
- 今天是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))
假设:
- 某人的出生年份是1973年
- 他于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岁)
|
参见
出生、逝世及日期模板 |
---|
| 出生,逝世,年龄 |
---|
| 模板 | 描述 / 用法 | ((BirthDeathAge)) | Combines functions of ((Birth date)), ((Birth-date)), ((Birth date and age)), ((Birth year and age)), ((Death date)), ((Death-date)), ((Death date and age)), and ((Death year and age)). |
模板 | 描述 / 用法 | ((Birth date)) | To display a birth date and related hidden metadata. | ((Birth-date)) | | ((Birth date and age)) | ((Birth date)) with suffix "(age N)". | ((Birth date and age2)) | ((Birth date and age)) plus age as of a specified date. | ((Birth-date and age)) | As ((Birth date and age)) but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc). | ((Birth year and age)) | Year of birth and approximate age. | ((Birth based on age as of date)) | To display approximate birth year and current age given a particular date (e.g. when a dated reference mentions the age of a person). | ((Birth date based on age at death)) | To display approximate birth year based on age at death. |
|
| | 只有年龄 |
---|
|
模板 | 描述 / 用法 | ((Age)) | Age based on number of complete years between two dates. | ((Age nts)) | ((Age)) with output formatted for use in Help:可排序表格. | ((Age as of date)) | Current age (in years) from a known age at a specified date. | ((Age for infant)) | Current age for infant: months and days up to one year, years and months up to three years, and years beyond age 3. |
|
| | | | | | |
|
模板参数[编辑模板数据]
参数 | 描述 | 类型 | 状态 |
---|
出生年份 | year | 请填写四位数的阿拉伯数字,不须加上“年” - 示例值
- 1970
| 数字 | 必需 |
---|
出生月份 | month | 请填写阿拉伯数字,不须加上“月”
| 数字 | 推荐 |
---|
出生日 | day | 请填写阿拉伯数字,不须加上“日”
| 数字 | 推荐 |
---|
{{bottomLinkPreText}}
{{bottomLinkText}}
This page is based on a Wikipedia article written by
contributors (read/edit).
Text is available under the
CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.
{{current.index+1}} of {{items.length}}
Thanks for reporting this video!
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:
An extension you use may be preventing Wikiwand articles from loading properly.
If you're using HTTPS Everywhere or you're unable to access any article on Wikiwand, please consider switching to HTTPS (https://www.wikiwand.com).
An extension you use may be preventing Wikiwand articles from loading properly.
If you are using an Ad-Blocker, it might have mistakenly blocked our content.
You will need to temporarily disable your Ad-blocker to view this page.
✕
This article was just edited, click to reload
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}}
Follow Us
Don't forget to rate us
Oh no, there's been an error
Please help us solve this error by emailing us at
support@wikiwand.com
Let us know what you've done that caused this error, what browser you're using, and whether you have any special extensions/add-ons installed.
Thank you!