Modèle:Age

De Pikmin FR
Version datée du 9 avril 2025 à 21:22 par Yaya (discussion | contributions) (2 versions importées)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

A template that automatically calculates people's age in years based on their date of birth.

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.
month 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

Modèle:S is {{Age|2015|5|28}} years old. → Modèle:S is 9 years old.

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