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

From WikiFamily
Jump to navigation Jump to search
 
Line 1: Line 1:
<includeonly>
<includeonly>
{{#time: F j, Y | {{{1}}}-{{{2}}}-{{{3}}} }} (age {{#expr:  
{{#time: F j, Y | {{{1}}}-{{{2}}}-{{{3}}} }} (age {{#expr:  
   {{CURRENTYEAR}} - {{{1}}}  
   {{#time: Y}} - {{{1}}} -
   - ({{#ifexpr: ({{CURRENTMONTH}}*1) < ({{{2}}}*1) or (({{CURRENTMONTH}}*1) == ({{{2}}}*1) and ({{CURRENTDAY}}*1) < ({{{3}}}*1)) | 1 | 0 }})
   ({{#ifexpr: {{#time: md}} < {{#time: md | {{{1}}}-{{{2}}}-{{{3}}} }} | 1 | 0 }})
}})
}})
</includeonly>
</includeonly>

Latest revision as of 15:39, 17 February 2026