Jump to content

Template:Age as of date/doc: Difference between revisions

(Copied template from Wikipedia)
 
Line 2:
<!-- Categories and interwikis go at the bottom of this page. -->
== Usage ==
<nowiki>SYNTAX {{Age as of date|Known Age|Year at time of Known Age|Birth Month|Birth Day}}</nowiki>
This template calculates a person's current age based on a known age as ofat a specific year and specifiedtheir datebirthday. This is useful when a reference states a persontalents or staff's age at the time of thea reference'sparticular publicationmilestone. For example, Someone with a birthday of March 3rd, who was age 14 during the year 2010 will be written as so
 
<nowiki>{{Age as of date|14|2010|March|3}}</nowiki>
 
The age, year, and day must be supplied as [[W:natural number]]s; month can be specified as a natural number as well as by name or abbreviation (e.g., "August" or "Aug"). The [[W:Gregorian calendar]] is assumed, with no special support provided for [[W:dual dating]] or the difference between [[W:Old Style and New Style dates]] .
 
If a reference dated July 4, {{#expr: {{CURRENTYEAR}} - 2}}, mentions that someone is 50 years old, that person's current age can be rendered using:
 
<nowiki>{{Age as of date|50|{{#expr: {{CURRENTYEAR}} - 2}}|July|4}}</nowiki>
 
== Examples ==
contributors
1,482

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.