ઢાંચો:Start date and age: આવૃત્તિઓ વચ્ચેનો તફાવત
Content deleted Content added
Add optional parameter to display age within parentheses as is done in Template:Start date and years ago. Does not change output of any current transclusions. Previously implemented in /sandbox and tested in /testcases. |
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. |
||
લીટી ૧:
<includeonly><!--
IMPLEMENTATION OF DATE
-->{{#if: {{{1|}}}<!--
Line ૧૧ ⟶ ૯:
-->|{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}}<!--
-->|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}},<!--
-->}} {{{1}}}<!--
-->|{{MONTHNAME|{{{2}}}}} {{{1}}}<!--
-->}}<!--
-->|{{{1}}}<!--
-->}}<!--
--><span class="noprint">{{#ifeq:{{{paren|}}}|yes||;}}<!--
-->{{#ifeq:{{{br|}}}|yes|<br/>| }}<!--
-->{{#ifeq:{{{paren|}}}|yes|(}}<!--
-->{{
-->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!--
-->
-->|{{years or months ago|{
-->
-->
-->
-->{{#ifeq:{{{paren|}}}|yes|)}}</span><!--
-->|'''{{color|red|Error: No parameters}}'''<!--
-->}}<!--
IMPLEMENTATION OF microformat date classes
--><span style="display:none"> (<span class="bday dtstart published updated"><!--
Line ૪૦ ⟶ ૩૫:
-->{{#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}}
|