Changes
Jump to navigation
Jump to search
Template:Age in years, months and days/display (view source)
Revision as of 05:48, 17 March 2014
, 10 years agobypass redirect
{{#ifexpr:{{{years|0}}}<0|{{error|Error: Invalid time. }}|}}{{#switch:{{{years|0}}}
| 0 =
| 1 = 1 year
| #default = {{{years}}} years
}}{{#ifeq:{{{years|0}}}|0|<!--null-->|{{#ifeq:{{{months|0}}}|0|<!--null-->|{{#ifeq:{{{days|0}}}|0| and |, }} }} }}{{#switch:{{{months|0}}}
| 0 =
| 1 = 1 month
| #default = {{{months}}} months
}}{{#ifeq:{{{years|0}}}|0|{{#ifeq:{{{months|0}}}|0|<!--null-->|{{#ifeq:{{{days|0}}}|0|<!--null-->| and }} }}|{{#ifeq:{{{days|0}}}|0|<!--null-->|{{#if:{{{sc|}}}|{{#ifeq:{{{months|0}}}|0|<!--null-->|,}}|<!--null-->}} and }} }}{{#switch:{{{days|0}}}
| 0 = {{#ifeq:{{{years|0}}}|0|{{#ifeq:{{{months|0}}}|0|no days at all}} }}
| 1 = 1 day
| #default = {{{days}}} days
}}<noinclude>{{Documentation|Template:Age in years, months and days/doc}}</noinclude>
| 0 =
| 1 = 1 year
| #default = {{{years}}} years
}}{{#ifeq:{{{years|0}}}|0|<!--null-->|{{#ifeq:{{{months|0}}}|0|<!--null-->|{{#ifeq:{{{days|0}}}|0| and |, }} }} }}{{#switch:{{{months|0}}}
| 0 =
| 1 = 1 month
| #default = {{{months}}} months
}}{{#ifeq:{{{years|0}}}|0|{{#ifeq:{{{months|0}}}|0|<!--null-->|{{#ifeq:{{{days|0}}}|0|<!--null-->| and }} }}|{{#ifeq:{{{days|0}}}|0|<!--null-->|{{#if:{{{sc|}}}|{{#ifeq:{{{months|0}}}|0|<!--null-->|,}}|<!--null-->}} and }} }}{{#switch:{{{days|0}}}
| 0 = {{#ifeq:{{{years|0}}}|0|{{#ifeq:{{{months|0}}}|0|no days at all}} }}
| 1 = 1 day
| #default = {{{days}}} days
}}<noinclude>{{Documentation|Template:Age in years, months and days/doc}}</noinclude>