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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 12: Line 12:
  
 
; Example
 
; Example
{{plaincode|{{braces|{{lc:{{BASEPAGENAME}}}} <nowiki>|1988|6|10 |1961|7|4 |df=y</nowiki>}}}} produces:&nbsp; {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}}
+
{{tlf|{{lc:{{BASEPAGENAME}}}} <nowiki>|1988|6|10 |1961|7|4 |df=y</nowiki>}} produces:&nbsp; {{birth date and age2 |1988|6|10 |1961|7|4 |df=y}}
  
  
 
{{Birth, death and age templates}}
 
{{Birth, death and age templates}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
<includeonly>{{basepage subpage
 
| <!-- Categories below this line, please: -->
 
| <!-- Categories below this line, please: -->
 
[[Category:Date mathematics templates]]
 
[[Category:Date mathematics templates]]
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:00, 5 March 2015

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 |specified year|specified month|specified day |year of birth|month of birth|day of birth}}
Format
{{birth date and age2 |yyyy|mm|dd |yyyy|mm|dd |df=y}}
Example

{{birth date and age2 |1988|6|10 |1961|7|4 |df=y}} produces:  (1961-07-04)4 July 1961 (aged 26)