Template:Age

From Not a Wiki
Revision as of 07:26, 12 July 2023 by Fifo F (talk | contribs) (TemplateData)
(diff) ← Previous revision | Latest revision (diff) | Next revision → (diff)

0

Usage

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]

ParameterDescriptionTypeStatus
Year ("from" date)1

The year of the "from" date

Numberrequired
Month ("from" date)2

The month of the "from" date, 1 through 12

Numberrequired
Day ("from" date)3

The day (of month) of the "from" date, 1 through 31

Numberrequired
Year2 ("to" date)4

The year of the "to" date, if required

Default
{{CURRENTYEAR}}
Numberoptional
Month2 ("to" date)5

The month of the "to" date, if required

Default
{{CURRENTMONTH}}
Numberoptional
Day2 ("to" date)6

The day (of month) of the "to" date, if required

Default
{{CURRENTDAY}}
Numberoptional
Formatformat

Date format

Suggested values
commas raw cardinal ordinal
Stringoptional