Predefinição:Age/doc
Saltar para a navegação
Saltar para a pesquisa
Description
This template provides automatically generated age. This template used in {{User infobox}} at Age section. The template can be used for the difference between two dates in years.
Usage
All parameters is important. Template can be written as {{age|YYYY|MM|DD}}. It also can be written as {{age|YYYY|M|D}} if month or day of birth less than 10.
- First unnamed parameter
YYYY (where YYYY is year of birth)
- Second unnamed parameter
MM (where MM is month of birth)
- Third unnamed parameter
DD (where DD is day of birth)
Examples
- {{age|1900|04|23}} --> 124 (124 years between 23 April, 1900 and 3 maio, 2024)
- {{age|1997|12|15}} --> 26
- {{age|67|1|3}} --> 1957 (3rd of March, 67 AD)
- {{age|2030|09|31}} --> -7 (if date isn't began that template generate a negative number)