Template:Age in years, months and days/display/testcases

From MattWiki
Jump to: navigation, search

No parameters

{{Age in years, months and days/display}} (invalid usage)
Current: no days at all
Sandbox:
{{Age in years, months and days/display|years=0}}
Current: no days at all
Sandbox:
{{Age in years, months and days/display|months=0}}
Current: no days at all
Sandbox:
{{Age in years, months and days/display|days=0}}
Current: no days at all
Sandbox:

Single parameter

{{Age in years, months and days/display|years=3}}
Current: 3 years
Sandbox:
{{Age in years, months and days/display|months=4}}
Current: 4 months
Sandbox:
{{Age in years, months and days/display|days=10}}
Current: 10 days
Sandbox:

Two parameters

{{Age in years, months and days/display|years=3|months=4}}
Current: 3 years and 4 months
Sandbox:
{{Age in years, months and days/display|years=3|months=4|days=0}}
Current: 3 years and 4 months
Sandbox:
{{Age in years, months and days/display|years=3|days=10}}
Current: 3 years and 10 days
Sandbox:
{{Age in years, months and days/display|years=3|months=0|days=10}}
Current: 3 years and 10 days
Sandbox:
{{Age in years, months and days/display|months=4|days=10}}
Current: 4 months and 10 days
Sandbox:
{{Age in years, months and days/display|years=0|months=4|days=10}}
Current: 4 months and 10 days
Sandbox:

All three dates

{{Age in years, months and days/display|years=3|months=3|days=3}}
Current: 3 years, 3 months and 3 days
Sandbox:
{{Age in years, months and days/display|years=1|months=3|days=3}}
Current: 1 year, 3 months and 3 days
Sandbox:
{{Age in years, months and days/display|years=3|months=1|days=3}}
Current: 3 years, 1 month and 3 days
Sandbox:
{{Age in years, months and days/display|years=3|months=3|days=1}}
Current: 3 years, 3 months and 1 day
Sandbox:
{{Age in years, months and days/display|years=-1|months=3|days=3}} (invalid usage)
Current: Error: Invalid time. -1 years, 3 months and 3 days
Sandbox:
{{Age in years, months and days/display|years=3|months=3|days=-1}} (invalid usage)
Current: 3 years, 3 months and -1 days
Sandbox:

Serial comma

{{Age in years, months and days/display|years=3|months=3|days=3|sc=y}}
Current: 3 years, 3 months, and 3 days
Sandbox:
{{Age in years, months and days/display|years=1|months=3|days=3|sc=y}}
Current: 1 year, 3 months, and 3 days
Sandbox:
{{Age in years, months and days/display|years=3|months=1|days=3|sc=y}}
Current: 3 years, 1 month, and 3 days
Sandbox:
{{Age in years, months and days/display|years=3|months=3|days=1|sc=y}}
Current: 3 years, 3 months, and 1 day
Sandbox:
{{Age in years, months and days/display|years=-1|months=3|days=3|sc=y}} (invalid usage)
Current: Error: Invalid time. -1 years, 3 months, and 3 days
Sandbox:
{{Age in years, months and days/display|years=3|months=3|days=-1|sc=y}} (invalid usage)
Current: 3 years, 3 months, and -1 days
Sandbox: