From Wikipedia, the free encyclopedia
0
This acts just like {{Age}} but will sort correctly in sortable tables. It is used in more than 1,000.
The template returns the number of full years between two specified dates. If the second set of parameters is not included, it will return the number of full years between a specified date and today's date.
A hidden sort key is included so values produced by this template will work properly in sortable tables. The sort key is calculated from the number of days between the given dates, and is compatible with {{number table sorting}}.
Usage{{Age nts|year|month|day|year2|month2|day2}}
or
{{Age nts|year|month|day}}
{{Age nts|476|9|4|1946|6|2}}
returns "1,469"
{{Age nts|476|9|4}}
returns "1,548"
{{Age nts|-215|8|2}}
returns "2,239"
{{Age nts|2000|4|22|2015|8|32}}
returns "Error: Second date should be year, month, day" (surplus days do not count as extra months)
{{Age nts|2000|4|22|2015|13|7}}
returns "Error: Second date should be year, month, day" (surplus months do not count as extra years)
{{Age nts|1900|2|29}}
returns "Error: Need valid year, month, day" (1900 is not a leap year)
This template returns the number of full years between two specified dates. If the second set of parameters is not included, it will return the number of full years between a specified date and today's date.
Template parameters[Edit template data]
Parameter Description Type Status Year ("from" date)1
The year of the "from" date
2
The month of the "from" date, 1 through 12
3
The day (of month) of the "from" date, 1 through 31
4
The year of the "to" date, if required
5
The month of the "to" date, if required
6
The day (of month) of the "to" date, if required
Birth, death and age templates
birth, death, age
Combined BDA template Description / use {{BirthDeathAge}} Combines functions of {{Birth date}}, {{Birth date text}}, {{Birth date and age}}, {{Birth year and age}}, {{Death date}}, {{Death date text}}, {{Death date and age}}, and {{Death year and age}}. Birth templates Description / use {{Birth date}} To display a birth date and related hidden metadata. {{Birth date text}} {{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 date and age in years and days}} {{Birth date and age}}, but with the age displayed in years and days rather than just years. {{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), only works for living people. {{Birth based on age as of dates}} To display approximate birth year and current age given several particular dates (e.g. when a dated reference mentions the age of a person), only works for living people. {{Birth based on age at death}} To display approximate birth year based on age at death, or on age at a specific date if death date isn't known. Death templates Description / use {{Death date}} To display a death date and related hidden metadata. {{Death date text}} {{Death date and age}} {{Death date}} with suffix '(aged N)'; also called with {{event date and age}}. {{Death-date and age}} As {{Death date and age}}, but accepts dates in text form ('15 June 1950', 'June 15, 1950', 'June 1950', etc.). {{Death date and given age}} To display a death date and specified age. {{Death year and age}} To display a year of, and approximate age at death.age only
Conventional age templates Description / use {{Age in years, months, weeks and days}} Number of complete years, months, weeks and days between two dates. {{Age in years, months and days}} Number of complete years, months and days between two dates. {{Age in years and months}} Number of complete years and remaining months between two dates. {{Age in years and days}} Number of complete years and remaining days between two dates. {{Age in years and days nts}} {{Age in years and days}} with output formatted for use in number sortable tables. {{Age in decimal years}} Number of years between two dates, rounded to the specified number of decimal places. {{Age in years}} Number of years between two dates. {{Age in years nts}} {{Age in years}} with output formatted for use in number sortable tables. {{Age in months}} Number of months between two dates. {{Age in weeks and days}} Number of weeks and days between two dates. {{Age in weeks}} Number of weeks between two dates. {{Age in days}} Age in days between two dates. {{Age in days nts}} {{Age in days}} with output formatted for use in number sortable tables. Reverse-determined age template Description / use {{Age}} Age based on number of complete years between two dates. {{Age nts}} {{Age}} with output formatted for use in number sortable tables. {{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.start / end dates
Date-focused templates Description / use {{Start date}} / {{End date}} {{Start date text}} / {{End date text}} {{Start date and age}} {{End date and age}}miscellaneous
Template Description / use {{OldStyleDate}} Dates in Julian calendar. {{OldStyleDateDY}} As {{OldStyleDate}} but used when Julian / Gregorian dates fall in different years. {{OldStyleDateNY}} As {{OldStyleDate}} but without the year. {{Unidentified for}} {{Missing for}}RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4