"टेम्पलेट:Age in years and months" की अवतरण में अंतर

allowed for zero years
(test s0y)
(allowed for zero years)
<includeonly>{{#ifexpr:{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}=0|{{#ifeq:{{{s0y|}}}|yes|0 years,&nbsp;|}}|{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}} year{{#ifeq:{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}|1||s}}{{#ifexpr:{{#expr:{{#ifexpr:{{{5|{{CURRENTMONTH}}}}}<{{{2}}}|12|0}} + ({{{5|{{CURRENTMONTH}}}}}-{{{2}}}) + {{#ifexpr:{{{6|{{CURRENTDAY}}}}}>={{{3}}}|1|0}} -1 }}<=0||,&nbsp;}}|{{#ifeq:{{{s0y|}}}|yes|0 years,&nbsp;|}}}}{{#ifexpr:{{#expr:{{#ifexpr:{{{5|{{CURRENTMONTH}}}}}<{{{2}}}|12|0}} + ({{{5|{{CURRENTMONTH}}}}}-{{{2}}}) + {{#ifexpr:{{{6|{{CURRENTDAY}}}}}>={{{3}}}|1|0}} -1 }}<=0||{{#expr:{{#ifexpr:{{{5|{{CURRENTMONTH}}}}}<{{{2}}}|12|0}} + ({{{5|{{CURRENTMONTH}}}}}-{{{2}}}) + {{#ifexpr:{{{6|{{CURRENTDAY}}}}}>={{{3}}}|1|0}} -1 }} month{{#ifeq:{{#expr:{{#ifexpr:{{{5|{{CURRENTMONTH}}}}}<{{{2}}}|12|0}} + ({{{5|{{CURRENTMONTH}}}}}-{{{2}}}) + {{#ifexpr:{{{6|{{CURRENTDAY}}}}}>={{{3}}}|1|0}} -1 }}|1||s}}}}</includeonly><noinclude>{{template doc}}</noinclude>
नामालूम प्रयोगकर्ता