此模板用於顯示某人的出生日期及指定日期時的年齡,例如參加賽事或獲獎時的年齡。
- 語法
{{birth date and age2 |指定年份|指定月份|指定日子 |出生年份|出生月份|出生日子}}
- 格式
- {{birth date and age2 |yyyy|mm|dd |yyyy|mm|dd |df=y}}
- 例子
- {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}} 顯示為 (1961-07-04)1961年7月4 日(26歲)
出生、逝世及日期模板 |
---|
| 出生,逝世,年龄 |
---|
| 模板 | 描述 / 用法 | {{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}}. |
|
| | 只有年龄 |
---|
|
模板 | 描述 / 用法 | {{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. |
|
| | | | | | |
|