Difference between revisions of "Template:Birth date and age2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create documentation)
 
imported>Temporaluser
(→‎See also: template replacement)
Line 17: Line 17:
 
== See also ==
 
== See also ==
 
* [[Wikipedia:Age calculation templates]]
 
* [[Wikipedia:Age calculation templates]]
; Birth, death, age
+
{{Birth, death and age templates}}
* {{tl|BirthDeathAge}} – carries out the functions of this template and all the following ones
 
* {{tl|Birth date}} – displays the date and related hidden metadata
 
* {{tl|Birth date and age}} – same as {{tl|Birth date}}, except that "(age ##)" appears after the birth date
 
* {{tl|Birth year and age}} – year of birth and approximate age
 
* {{tl|Birth-date and age}} – display birth date and age, accepts dates as text (15 June 1950; June 15, 1950; June 1950; etc.)
 
* {{tl|Birth based on age as of date}} – displays approximate birth year and current age; used when a dated reference mentions the age of a person as of the date of publication
 
* {{tl|Death date}} – displays the date and related hidden metadata
 
* {{tl|Death date and age}} – same as {{tl|Death date}}, except that "(aged ##)" appears after the death date
 
* {{tl|Death year and age}} – year of death and approximate age at death
 
* {{tl|Death-date and age}} – display death date and age, accepts date as text (15 June 1950; June 15, 1950; June 1950; etc.)
 
; Age only
 
* {{tl|Age}} – age based on the number of full years between two dates (or a specified date and current date)
 
* {{tl|Age nts}} – similar to the above, but will sort correctly in sortable tables
 
* {{tl|Age in years and days}} – full years and days between two dates (or a specified date and current date)
 
* {{tl|Age in days}} – age in days between two dates (or a specified date and current date)
 
* {{tl|Age as of date}} – current age in years, based on a known age as of a specified date
 
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->

Revision as of 08:44, 14 January 2013

Usage

This template displays a person's birth date and age at a specified date.
This allows you to show how old a person was at the time they participated in an event or made an achievement.

Syntax:
{{Birth date and age2/doc|specified year|specified month|specified day|year of birth|month of birth|day of birth}}
Format
{{Birth date and age2/doc|yyyy|mm|dd|yyyy|mm|dd|df=y}}
Example:

{{Birth date and age2|1988|6|10|1961|7|4|df=y}} displays as " (1961-07-04)4 July 1961 (aged 26)".

See also