Template:Age

From Inkipedia, the Splatoon wiki
Revision as of 19:13, 2 July 2023 by Eminence (talk | contribs) (changed category to Inline Templates)

A template that automatically calculates people's age based on their date of birth, or other lengths of time in years.

Usage

{{Age|<year>|<month>|<day>|<death_year>|<death_month>|<death_day>}}

Parameters

All the parameters must be numbers for the expression to work.

year Unnamed, required. The year the person was born in.
category Unnamed, required. The month the person was born in.
day Unnamed, required. The number of the day the person was born on.
death_year Unnamed, optional. If included, will replace the current year.
death_month Unnamed, optional. If included, will replace the current month's number.
death_day Unnamed, optional. If included, will replace the current day's number.

Examples

{{Age|2015|5|28}}Splatoon is 8 years old.

{{Age|2015|8|5|2017|9|30}} → The first Splatnet existed for 2 years.