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

sync with sandbox
(slight simplification)
(sync with sandbox)
{{For year month day/display
|years={{#expr:{{CURRENTYEAR}}-{{{year|2005{{CURRENTYEAR}}}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month|12{{CURRENTMONTH}}}}}
|0
|{{#ifexpr:{{CURRENTMONTH}}<{{{month|12{{CURRENTMONTH}}}}}
|1
|{{#ifexpr:{{CURRENTDAY}}>={{{day|31{{CURRENTDAY}}}}}
|0
|1
}}
}}}}
|months={{#expr:{{CURRENTMONTH}}-{{{month|12{{CURRENTMONTH}}}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|31{{CURRENTDAY}}}}}
|{{#ifexpr:{{CURRENTMONTH}}>={{{month|12{{CURRENTMONTH}}}}}
|0
|12
}}
|{{#ifexpr:{{CURRENTMONTH}}>{{{month|12{{CURRENTMONTH}}}}}
|-1
|11
}}
}}}}
|days={{#expr:{{CURRENTDAY}}-{{{day|31{{CURRENTDAY}}}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day|31{{CURRENTDAY}}}}}
|0
|{{#switch:{{CURRENTMONTH}}
}}
}}}}
}}<noinclude>{{documentation}}</noinclude>
{{documentation}}
</noinclude>
नामालूम प्रयोगकर्ता