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

replace with code to invoke new Module:Age; old template had bugs
(allowed for zero years)
(replace with code to invoke new Module:Age; old template had bugs)
<includeonly>{{#invoke:age|age_ym}}</includeonly><noinclude>{{template doc}}</noinclude>
<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;}}}}{{#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>
नामालूम प्रयोगकर्ता