Difference between revisions of "Template:Age"

From Citizendium
Jump to: navigation, search
(Imported from WP template of same name.)
m (TlDoc)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Protected template}}
{{{{FULLPAGENAME}}/doc}}<!-- Add cats and interwikis to the /doc subpage, not here! --></noinclude>

Latest revision as of 07:02, 7 May 2009

This documentation is transcluded from Template:Age/doc (edit | history)

This template returns the number of full years elapsed from one date until another date or until today (UTC).


To dynamically calculate the current age each time the page is loaded, use {{age|YYYY|MM|DD}}, substituting the date of birth for the letters YYYY MM DD.

To calculate the age at a certain date (eg at death), rather than the current age, use {{age|YYYY|MM|DD|YYYY|MM|DD}}, with the date of birth as the first date and the date at which the age should be calculated (eg date of death) as the second.


Current age
[[Tim Berners-Lee]] was born {{age|1955|06|08}} years ago.
Tim Berners-Lee was born 65 years ago.
Past age
[[Winston Churchill]] died at the age of {{age|1874|11|30|1965|01|24}}.
Winston Churchill died at the age of 90.