टेम्पलेट:Age in years, months and days/display: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
accept named parameters |
oops, fix |
||
लाइन 1:
{{#switch:{{{years|{{{1}}}}}}
|0=
|1=1 year
|{{{years|{{{1}}}}}} years
}}{{#ifeq:{{{years|{{{1}}}}}}|0
|<!--null-->
|{{#ifeq:{{{months|{{{2}}}}}}|0
|<!--null-->
|, {{#ifeq:{{{days|{{{3}}}}}}|0
|and
|<!--null-->
}}
}}
}}{{#switch:{{{months|{{{2}}}}}}
|0=
|1= 1 month
|{{#ifeq:{{{years|{{{1}}}}}}|0
|<!--null-->
|{{#ifeq:{{{days|{{{3}}}}}}|0
|
}}
}}{{{months|{{{2}}}}}} months
}}{{#ifeq:{{{years|{{{1}}}}}}|0
|{{#ifeq:{{{months|{{{2}}}}}}|0
|<!--null-->
|{{#ifeq:{{{days|{{{3}}}}}}|0
|<!--null-->
|, and
}}
}}
|{{#ifeq:{{{days|{{{3}}}}}}|0
|<!--null-->
|, and
}}
}}{{#switch:{{{days|{{{3}}}}}}
|0={{#ifeq:{{{years|{{{1}}}}}}|0
|{{#ifeq:{{{months|{{{2}}}}}}|0
|no days at all!
}}
}}
|1= 1 day
|{{#ifeq:{{{years|{{{1}}}}}}|0
|{{#ifeq:{{{months|{{{2}}}}}}|0
|<!--null-->
|
}}
|
}}{{{days|{{{3}}}}}} days
}}
|