Template:Age

From Thorium Mod Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Age/doc. (edit | history)

Description

This template automatically generates a number between the current date and the entered date. The template can be used for the difference between two dates in years, i.e. to find out the age of a person.

Usage

All parameters are important. The template can be written as {{age|YYYY|MM|DD}}. It can also be written as {{age|YYYY|M|D}} if the day or the numeral form for the month is less than 10.

First unnamed parameter

YYYY (where YYYY is the year of birth)

Second unnamed parameter

MM (where MM is the month of birth)

Thirt unnamed parameter

DD (where DD is the day of birth)

Examples

  • {{age|1900|04|23}} --> 124 (124 years between 23 April, 1900 and 10 May, 2024)
  • {{age|1997|12|15}} --> 26
  • {{age|67|1|3}} --> 1957 (3rd of March, 67 AD)
  • {{age|3000|05|15}} --> -977 (if the date has not been reached yet, the template will display a negative number)