टेम्पलेट:Age in years, months and days/display: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
edit per request,
remove\ unused parameters, add the serial comma, remove the punctuation from "no days at all", add documentation, per protected edit request
लाइन 1:
{{#switch:{{{years|{{{1|0}}}}}}
| 0 =
| 1 = 1 year
| #default = {{{years|{{{1|0}}}}}} years
}}{{#ifeq:{{{years|{{{1|0}}}}}}|0|<!--null-->|{{#ifeq:{{{months|{{{2|0}}}}}}|0|<!--null-->|{{#ifeq:{{{days|{{{3|0}}}}}}|0| &#32;and&#32;|,&#32;}} }} }}{{#switch:{{{months|{{{2|0}}}}}}
| 0 =
| 1 = 1&nbsp;month
| #default = {{{months|{{{2|0}}}}}}&nbsp;months
}}{{#ifeq:{{{years|{{{1|0}}}}}}|0|{{#ifeq:{{{months|{{{2|0}}}}}}|0|<!--null-->|{{#ifeq:{{{days|{{{3|0}}}}}}|0|<!--null-->|&#32;and&#32;}} }}|{{#ifeq:{{{days|0}}}|0|<!--null-->|{{#ifeq:{3{{months|0}}}}}}|0|<!--null-->|,}}&#32;and&#32;}} }}{{#switch:{{{days|{{{3|0}}}}}}
| 0 = {{#ifeq:{{{years|{{{1|0}}}}}}|0|{{#ifeq:{{{months|{{{2|0}}}}}}|0|no days at all!}} }}
| 1 = 1&nbsp;day
| #default = {{{days|{{{3|0}}}}}}&nbsp;days
}}<noinclude>{{Documentation|Template:For year month day/doc}}</noinclude>