Difference between revisions of "Template:Age/doc"
Jump to navigation
Jump to search
(New page: === Use === This template calculates the current age of a person, if date of birth is known. It depends on {{templink|curfutyear}} to get the current ''Futurama'' year. === Usage === <pr...) |
|||
Line 14: | Line 14: | ||
;Output | ;Output | ||
:{{age|2998|2|4}} | :{{age|2998|2|4}} | ||
;Input | |||
:<pre>{{age|2990}}</pre> | |||
;Output | |||
:{{age|2990}} | |||
;Input | |||
:<pre>{{age|2995|5}}</pre> | |||
;Output | |||
:{{age|2995|5}} |
Revision as of 14:15, 16 April 2009
Use
This template calculates the current age of a person, if date of birth is known. It depends on {{curfutyear}} to get the current Futurama year.
Usage
{{age|<year>|<month>|<day>}}
Examples
- Input
{{age|1975|10|8}}
- Output
- 1048
- Input
{{age|2998|2|4}}
- Output
- 26
- Input
{{age|2990}}
- Output
- 34
- Input
{{age|2995|5}}
- Output
- 29