This template displays a person's birth date and age at a specified date.
This allows you to show how old a person was at the time they participated in an event or made an achievement.
استفاده
- Syntax
{{birth date and age2 |specified year|specified month|specified day |year of birth|month of birth|day of birth}}
- قالب
- {{birth date and age2 |yyyy|mm|dd |yyyy|mm|dd }}
- نمونه
{{birth date and age2 |1988|6|10 |1961|7|4 }} خروجی: (1961-07-04)۴ ژوئیه ۱۹۶۱ (سن خطای اسکریپتی: پودمان «age» وجود ندارد.)
دادههای الگو
پارامترهای الگو
استفاده از قالببندی درونخطی برای پارامترهای این الگو ارجح است.
پارامتر | توضیحات | نوع | وضعیت |
---|
Specified year | 1 | Adds the specified year. - مثال
- 1970
| شماره | پیشنهادشده |
---|
Specified month | 2 | Adds the specified month. - مثال
- 5
| شماره | پیشنهادشده |
---|
Specified day | 3 | Adds the specified day. - مثال
- 23
| شماره | پیشنهادشده |
---|
Year | 4 | Year of birth. - مثال
- 1952
| شماره | پیشنهادشده |
---|
Month | 5 | Month of birth. - مثال
- 4
| ناشناخته | پیشنهادشده |
---|
Date | 6 | Date of birth. - مثال
- 18
| شماره | پیشنهادشده |
---|
df | df | Date first. - مثال
- df=y
| رشته | پیشنهادشده |
---|
جستارهای وابسته
الگوهای تولد، مرگ و سن |
---|
تولد، مرگ، سن |
---|
الگو | شرح / کاربرد
| {{BirthDeathAge}} | Combines functions of {{تاریخ تولد}}, {{Birth-date}}, {{تاریخ تولد و سن}}, {{سال تولد و سن}}, {{Death date}}, {{death-date}}, {{تاریخ مرگ و سن}} and {death year and age}}.
| {{تاریخ تولد}} | To display a birth date and related hidden metadata.
| {{birth-date}} |
| {{تاریخ تولد و سن}} | {{birth date}} with suffix "(age N)".
| {{birth date and age2}} | {{birth date and age}} plus age as of a specified date.
| {{تاریخ-تولد و سن}} | As {{birth date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| {{سال تولد و سن}} | 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.
|
الگو | شرح / کاربرد
| {{death date}} | To display a death date and related hidden metadata.
| {{end-date}} |
| {{تاریخ مرگ و سن}} | {{death date}} with suffix "(age N)".
| {{death-date and age}} | As {{death date and age}} but accepts dates in text form ("15 June 1950", "June 15, 1950", "June 1950", etc).
| {{تاریخ مرگ و سن معلوم}} | To display a death date and specified age.
| {{سال مرگ و سن}} | To display a year of and approximate age at death.
|
|
|
فقط سن |
---|
الگو | شرح / کاربرد
| {{سن}} | Age based on number of complete years between two dates.
| {{age nts}} | {{age}} with output formatted for use in sortable tables.
| {{سن از تاریخ}} | Current age (in years) from a known age at a specified date.
|
|
|
|