ಟೆಂಪ್ಲೇಟು:Age in years and days: ಪರಿಷ್ಕರಣೆಗಳ ನಡುವಿನ ವ್ಯತ್ಯಾಸ

Content deleted Content added
avoid double computation of nr. of days
avoid double computation of nr. of years. This should make it work with the NTS templates on the templates it is using.
೧ ನೇ ಸಾಲು:
<includeonly>{{age |in {{{1}}}years | {{{2}}}and days/years| {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}} {{#ifexpr: {{age | {{{1}}} | {{{2}}} | {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}}=1 |year|years}}, {{age in years and days/days|{{age in days | {{#ifexpr: {{{5|{{CURRENTMONTH}}}}}<{{{2}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{#ifexpr:{{{5|{{CURRENTMONTH}}}}}={{{2}}} | {{#ifexpr:{{{6|{{CURRENTDAY}}}}}<{{{3}}} | {{#expr:{{{4|{{CURRENTYEAR}}}}}-1}} | {{{4|{{CURRENTYEAR}}}}}}} | {{{4|{{CURRENTYEAR}}}}}}}}} | {{{2}}} | {{{3}}} | {{{4|{{CURRENTYEAR}}}}} | {{{5|{{CURRENTMONTH}}}}} | {{{6|{{CURRENTDAY}}}}}}}}}</includeonly><noinclude>{{template doc}}</noinclude>