"ഫലകം:Start date and age" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Fix calculation of years or months ago when input is year/month (no day) or year only (no month or day). Previously implemented in /sandbox and tested in /testcases.
temporarily revert prior change pending update
വരി 1:
<includeonly><!--
 
 
IMPLEMENTATION OF DATE
 
 
-->{{#if: {{{1|}}}<!--
Line 9 ⟶ 11:
-->|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}<!--
-->|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},<!--
-->}} {{{1}}}<!--
-->|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}<!--
-->}}<!--
-->|{{{1}}}<!--
-->}}<!--
--><span class="noprint">{{#ifeq:{{{paren|}}}|yes||&#059;}}<!--
-->{{#ifeq:{{{br|}}}|yes|<br/>|&#032;}}<!--
-->{{#ifeq:{{{paren|}}}|yes|(}}<!--
-->{{#if:time {{{3|}}}ago<!--
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
-->|{{#if:{{{2|}}}-<!--
-->|{{years or months ago|{{{1}}}2|{{{2CURRENTMONTH}}}}}<!--
-->|{{years or months ago|{{{1}}}}}-<!--
-->{{{3|{{CURRENTDAY}}}}}<!--
-->}}|min_magnitude=days<!--
-->}}<!--
-->{{#ifeq:{{{paren|}}}|yes|)}}</span><!--
-->|'''{{color|red|Error: No parameters}}'''<!--
-->}}<!--
 
 
IMPLEMENTATION OF microformat date classes
 
 
--><span style="display:none">&#160;(<span class="bday dtstart published updated"><!--
Line 35 ⟶ 40:
-->{{#if: {{{2|}}}<!--
-->| -{{padleft:{{{2}}}|2|0}}<!--
-->{{#if: {{{3|}}}<!--
-->| -{{padleft:{{{3}}}|2|0}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
--></span>)</span></includeonly><noinclude>
{{being merged|2013 July 31|merge=Template:Start date and years ago}}
"https://ml.wikipedia.org/wiki/ഫലകം:Start_date_and_age" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്