Template:Age in years, months and days/display: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{#ifexpr:{{{years|0}}}<0|{{error|Error: Invalid time. }}|}}{{#switch:{{{years|0}}}
{{#ifexpr:{{{years|0}}}<0|{{error|Error: Invalid time. }}|}}{{#switch:{{{years|0}}}
| 1        = 1 Year,  
| 1        = 1 Year,&nbsp;
| #default = {{{years}}} Years,  
| #default = {{{years}}} Years,&nbsp;
}}{{#switch:{{{months|0}}}
}}{{#switch:{{{months|0}}}
| 1        = 1 Month,  
| 1        = 1 Month,&nbsp;
| #default = {{{months}}} Months,  
| #default = {{{months}}} Months,&nbsp;
}}{{#switch:{{{days|0}}}
}}{{#switch:{{{days|0}}}
| 1        = 1 Day
| 1        = 1 Day
| #default = {{{days}}} Days
| #default = {{{days}}} Days
}}<noinclude>{{Documentation|Template:Age in years, months and days/doc}}</noinclude>
}}<noinclude>{{Documentation|Template:Age in years, months and days/doc}}</noinclude>

Navigation menu