Difference between revisions of "Template:Birth date and age"
Jump to navigation
Jump to search
Patrickrhett (talk | contribs) |
Patrickrhett (talk | contribs) |
||
| Line 2: | Line 2: | ||
{{#time: F j, Y | {{{1}}}-{{{2}}}-{{{3}}} }} (age {{#expr: | {{#time: F j, Y | {{{1}}}-{{{2}}}-{{{3}}} }} (age {{#expr: | ||
{{CURRENTYEAR}} - {{{1}}} | {{CURRENTYEAR}} - {{{1}}} | ||
- ({{#ifexpr: {{CURRENTMONTH}} < {{{2}}} or ({{CURRENTMONTH}} == {{{2}}} and {{CURRENTDAY}} < {{{3}}}) | 1 | 0 }}) | - ({{#ifexpr: ({{CURRENTMONTH}}*1) < ({{{2}}}*1) or (({{CURRENTMONTH}}*1) == ({{{2}}}*1) and ({{CURRENTDAY}}*1) < ({{{3}}}*1)) | 1 | 0 }}) | ||
}}) | }}) | ||
</includeonly> | </includeonly> | ||