Template:Age

Everything About Fiction You Never Wanted to Know.
Revision as of 16:58, 5 November 2016 by Cobaltcat (talk | contribs) (Trying to help Lulz to see if we can get an age template going. Somehow excluded from the MediaWiki version.)

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Age

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