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

From comp.tf
Jump to navigation Jump to search
m
m
Line 4: Line 4:
  
 
== Example ==
 
== Example ==
 +
 +
=== Present tense ===
  
 
<pre>{{birth_date_and_age|1980|09|22}}</pre>
 
<pre>{{birth_date_and_age|1980|09|22}}</pre>
Line 10: Line 12:
  
 
{{birth_date_and_age|1980|09|22}}
 
{{birth_date_and_age|1980|09|22}}
 +
 +
=== Past tense ===
  
 
<pre>{{birth_date_and_age|1980|09|22|past}}</pre>
 
<pre>{{birth_date_and_age|1980|09|22|past}}</pre>

Revision as of 12:19, 9 December 2019

Usage

{{birth date and age|year|month|day}}

Example

Present tense

{{birth_date_and_age|1980|09|22}}

gives:

September 22, 1980 (1980-09-22) (age 43)

Past tense

{{birth_date_and_age|1980|09|22|past}}

gives:

September 22, 1980 (1980-09-22) (age 43)