Template:Age in years, months and days/testcases
这是Template:Age in years, months and days及其沙盒的测试样例。刷新本页以更新内容。 如果这里有许多复杂的模板的用例,可能会因为MediaWiki的技术限制而出错。 您还可以用Special:展开模板来测试模板的使用效果。 您可以通过以下链接测试本模板在不同皮肤下的效果: |
Partial start date, no end date
{{Age in years, months and days|year=2008}}
{{Age in years, months and days|year=2008}}
→ 15—16年{{Age in years, months and days/sandbox|year=2008}}
→ 15或16年
{{Age in years, months and days|month=3}}
{{Age in years, months and days|month=3}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|month=3}}
→ <strong class="error">错误:需要有效的年月日</strong>
{{Age in years, months and days|day=10}}
{{Age in years, months and days|day=10}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|day=10}}
→ <strong class="error">错误:需要有效的年月日</strong>
{{Age in years, months and days|year=2008|month=7}}
{{Age in years, months and days|year=2008|month=7}}
→ 16年2—3个月{{Age in years, months and days/sandbox|year=2008|month=7}}
→ 16年2或3个月
{{Age in years, months and days|year=2008|day=10}}
{{Age in years, months and days|year=2008|day=10}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|year=2008|day=10}}
→ <strong class="error">错误:需要有效的年月日</strong>
{{Age in years, months and days|month=3|day=10}}
{{Age in years, months and days|month=3|day=10}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|month=3|day=10}}
→ <strong class="error">错误:需要有效的年月日</strong>
Partial start date, full end date
{{Age in years, months and days|month1=9|day1=|year1=1987|month2=03|day2=07|year2=1989}}
{{Age in years, months and days|month1=9|day1=|year1=1987|month2=03|day2=07|year2=1989}}
→ 1年5—6个月{{Age in years, months and days/sandbox|month1=9|day1=|year1=1987|month2=03|day2=07|year2=1989}}
→ 1年5或6个月
{{Age in years, months and days|1=2008|4=2015|5=1|6=15}}
{{Age in years, months and days|1=2008|4=2015|5=1|6=15}}
→ 6—7年{{Age in years, months and days/sandbox|1=2008|4=2015|5=1|6=15}}
→ 6或7年
{{Age in years, months and days|1=2008|4=2015|5=12|6=15}}
{{Age in years, months and days|1=2008|4=2015|5=12|6=15}}
→ 6—7年{{Age in years, months and days/sandbox|1=2008|4=2015|5=12|6=15}}
→ 6或7年
{{Age in years, months and days|2=3|4=2022|5=7|6=15}}
{{Age in years, months and days|2=3|4=2022|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|2=3|4=2022|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>
{{Age in years, months and days|3=10|4=2022|5=7|6=15}}
{{Age in years, months and days|3=10|4=2022|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|3=10|4=2022|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>
{{Age in years, months and days|1=2008|2=7|4=2015|5=8|6=15}}
{{Age in years, months and days|1=2008|2=7|4=2015|5=8|6=15}}
→ 7年0—1个月{{Age in years, months and days/sandbox|1=2008|2=7|4=2015|5=8|6=15}}
→ 7年0或1个月
{{Age in years, months and days|1=2008|2=7|4=2015|5=7|6=15}}
{{Age in years, months and days|1=2008|2=7|4=2015|5=7|6=15}}
→ 6—7年{{Age in years, months and days/sandbox|1=2008|2=7|4=2015|5=7|6=15}}
→ 6或7年
{{Age in years, months and days|1=2008|2=7|4=2015|5=6|6=15}}
{{Age in years, months and days|1=2008|2=7|4=2015|5=6|6=15}}
→ 6年10—11个月{{Age in years, months and days/sandbox|1=2008|2=7|4=2015|5=6|6=15}}
→ 6年10或11个月
{{Age in years, months and days|1=2007|2=12|4=2015|5=1|6=15}}
{{Age in years, months and days|1=2007|2=12|4=2015|5=1|6=15}}
→ 7年0—1个月{{Age in years, months and days/sandbox|1=2007|2=12|4=2015|5=1|6=15}}
→ 7年0或1个月
{{Age in years, months and days|1=2008|2=1|4=2014|5=12|6=15}}
{{Age in years, months and days|1=2008|2=1|4=2014|5=12|6=15}}
→ 6年10—11个月{{Age in years, months and days/sandbox|1=2008|2=1|4=2014|5=12|6=15}}
→ 6年10或11个月
{{Age in years, months and days|1=2008|3=10|4=2015|5=7|6=15}}
{{Age in years, months and days|1=2008|3=10|4=2015|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|1=2008|3=10|4=2015|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>
{{Age in years, months and days|2=3|3=10|4=2022|5=7|6=15}}
{{Age in years, months and days|2=3|3=10|4=2022|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>{{Age in years, months and days/sandbox|2=3|3=10|4=2022|5=7|6=15}}
→ <strong class="error">错误:需要有效的年月日</strong>
Full start date, no end date
{{Age in years, months and days|year=2019|month=07|day=30}}
{{Age in years, months and days|year=2019|month=07|day=30}}
→ 5年2个月又17天{{Age in years, months and days/sandbox|year=2019|month=07|day=30}}
→ 5年2个月又17天
{{Age in years, months and days|year=2019|month=07|day=31}}
{{Age in years, months and days|year=2019|month=07|day=31}}
→ 5年2个月又17天{{Age in years, months and days/sandbox|year=2019|month=07|day=31}}
→ 5年2个月又17天
{{Age in years, months and days|year=2019|month=07|day=1}}
{{Age in years, months and days|year=2019|month=07|day=1}}
→ 5年3个月又16天{{Age in years, months and days/sandbox|year=2019|month=07|day=1}}
→ 5年3个月又16天
{{Age in years, months and days|year=2019|month=08|day=30}}
{{Age in years, months and days|year=2019|month=08|day=30}}
→ 5年1个月又17天{{Age in years, months and days/sandbox|year=2019|month=08|day=30}}
→ 5年1个月又17天
{{Age in years, months and days|year=2019|month=08|day=31}}
{{Age in years, months and days|year=2019|month=08|day=31}}
→ 5年1个月又17天{{Age in years, months and days/sandbox|year=2019|month=08|day=31}}
→ 5年1个月又17天
{{Age in years, months and days|year=2019|month=08|day=1}}
{{Age in years, months and days|year=2019|month=08|day=1}}
→ 5年2个月又16天{{Age in years, months and days/sandbox|year=2019|month=08|day=1}}
→ 5年2个月又16天
{{Age in years, months and days|year=2025|month=08|day=30}}
{{Age in years, months and days|year=2025|month=08|day=30}}
→ −10个月13天{{Age in years, months and days/sandbox|year=2025|month=08|day=30}}
→ −10个月13天
{{Age in years, months and days|year=2025|month=08|day=31}}
{{Age in years, months and days|year=2025|month=08|day=31}}
→ −10个月14天{{Age in years, months and days/sandbox|year=2025|month=08|day=31}}
→ −10个月14天
{{Age in years, months and days|year=2025|month=08|day=1}}
{{Age in years, months and days|year=2025|month=08|day=1}}
→ −9个月15天{{Age in years, months and days/sandbox|year=2025|month=08|day=1}}
→ −9个月15天
Full start date, partial end date
{{Age in years, months and days|1=2008|2=1|3=15|4=2015}}
{{Age in years, months and days|1=2008|2=1|3=15|4=2015}}
→ 6—7年{{Age in years, months and days/sandbox|1=2008|2=1|3=15|4=2015}}
→ 6或7年
{{Age in years, months and days|1=2008|2=12|3=15|4=2015}}
{{Age in years, months and days|1=2008|2=12|3=15|4=2015}}
→ 6—7年{{Age in years, months and days/sandbox|1=2008|2=12|3=15|4=2015}}
→ 6或7年
{{Age in years, months and days|1=2008|2=7|3=15|5=3}}
{{Age in years, months and days|1=2008|2=7|3=15|5=3}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>{{Age in years, months and days/sandbox|1=2008|2=7|3=15|5=3}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>
{{Age in years, months and days|1=2008|2=7|3=15|6=10}}
{{Age in years, months and days|1=2008|2=7|3=15|6=10}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>{{Age in years, months and days/sandbox|1=2008|2=7|3=15|6=10}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>
{{Age in years, months and days|1=2008|2=3|3=10|4=2015|5=8}}
{{Age in years, months and days|1=2008|2=3|3=10|4=2015|5=8}}
→ 7年4—5个月{{Age in years, months and days/sandbox|1=2008|2=3|3=10|4=2015|5=8}}
→ 7年4或5个月
{{Age in years, months and days|1=2008|2=3|3=10|4=2015|6=15}}
{{Age in years, months and days|1=2008|2=3|3=10|4=2015|6=15}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>{{Age in years, months and days/sandbox|1=2008|2=3|3=10|4=2015|6=15}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>
{{Age in years, months and days|1=2008|2=3|3=10|5=7|6=15}}
{{Age in years, months and days|1=2008|2=3|3=10|5=7|6=15}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>{{Age in years, months and days/sandbox|1=2008|2=3|3=10|5=7|6=15}}
→ <strong class="error">错误:第二个日期应该是年月日</strong>
Full start and end dates
{{Age in years, months and days|2008|1|1|2015|12|31}}
{{Age in years, months and days|2008|1|1|2015|12|31}}
→ 7年11个月又30天{{Age in years, months and days/sandbox|2008|1|1|2015|12|31}}
→ 7年11个月又30天
{{Age in years, months and days|2008|1|15|2015|12|14}}
{{Age in years, months and days|2008|1|15|2015|12|14}}
→ 7年10个月又29天{{Age in years, months and days/sandbox|2008|1|15|2015|12|14}}
→ 7年10个月又29天
{{Age in years, months and days|2008|1|15|2015|12|15}}
{{Age in years, months and days|2008|1|15|2015|12|15}}
→ 7年11个月{{Age in years, months and days/sandbox|2008|1|15|2015|12|15}}
→ 7年11个月
{{Age in years, months and days|2008|1|15|2015|12|16}}
{{Age in years, months and days|2008|1|15|2015|12|16}}
→ 7年11个月又1天{{Age in years, months and days/sandbox|2008|1|15|2015|12|16}}
→ 7年11个月又1天
{{Age in years, months and days|2008|1|31|2015|12|1}}
{{Age in years, months and days|2008|1|31|2015|12|1}}
→ 7年10个月又1天{{Age in years, months and days/sandbox|2008|1|31|2015|12|1}}
→ 7年10个月又1天
{{Age in years, months and days|2008|7|1|2015|1|31}}
{{Age in years, months and days|2008|7|1|2015|1|31}}
→ 6年6个月又30天{{Age in years, months and days/sandbox|2008|7|1|2015|1|31}}
→ 6年6个月又30天
{{Age in years, months and days|2008|7|1|2015|7|31}}
{{Age in years, months and days|2008|7|1|2015|7|31}}
→ 7年30天{{Age in years, months and days/sandbox|2008|7|1|2015|7|31}}
→ 7年30天
{{Age in years, months and days|2008|7|1|2015|8|31}}
{{Age in years, months and days|2008|7|1|2015|8|31}}
→ 7年1个月又30天{{Age in years, months and days/sandbox|2008|7|1|2015|8|31}}
→ 7年1个月又30天
{{Age in years, months and days|2008|7|15|2015|1|14}}
{{Age in years, months and days|2008|7|15|2015|1|14}}
→ 6年5个月又30天{{Age in years, months and days/sandbox|2008|7|15|2015|1|14}}
→ 6年5个月又30天
{{Age in years, months and days|2008|7|15|2015|1|15}}
{{Age in years, months and days|2008|7|15|2015|1|15}}
→ 6年6个月{{Age in years, months and days/sandbox|2008|7|15|2015|1|15}}
→ 6年6个月
{{Age in years, months and days|2008|7|15|2015|1|16}}
{{Age in years, months and days|2008|7|15|2015|1|16}}
→ 6年6个月又1天{{Age in years, months and days/sandbox|2008|7|15|2015|1|16}}
→ 6年6个月又1天
{{Age in years, months and days|2008|7|15|2015|7|14}}
{{Age in years, months and days|2008|7|15|2015|7|14}}
→ 6年11个月又29天{{Age in years, months and days/sandbox|2008|7|15|2015|7|14}}
→ 6年11个月又29天
{{Age in years, months and days|2008|7|15|2015|7|15}}
{{Age in years, months and days|2008|7|15|2015|7|15}}
→ 7年{{Age in years, months and days/sandbox|2008|7|15|2015|7|15}}
→ 7年
{{Age in years, months and days|2008|7|15|2015|7|16}}
{{Age in years, months and days|2008|7|15|2015|7|16}}
→ 7年1天{{Age in years, months and days/sandbox|2008|7|15|2015|7|16}}
→ 7年1天
{{Age in years, months and days|2008|7|15|2015|8|14}}
{{Age in years, months and days|2008|7|15|2015|8|14}}
→ 7年30天{{Age in years, months and days/sandbox|2008|7|15|2015|8|14}}
→ 7年30天
{{Age in years, months and days|2008|7|15|2015|8|15}}
{{Age in years, months and days|2008|7|15|2015|8|15}}
→ 7年1个月{{Age in years, months and days/sandbox|2008|7|15|2015|8|15}}
→ 7年1个月
{{Age in years, months and days|2008|7|15|2015|8|16}}
{{Age in years, months and days|2008|7|15|2015|8|16}}
→ 7年1个月又1天{{Age in years, months and days/sandbox|2008|7|15|2015|8|16}}
→ 7年1个月又1天
{{Age in years, months and days|2008|7|31|2015|1|1}}
{{Age in years, months and days|2008|7|31|2015|1|1}}
→ 6年5个月又1天{{Age in years, months and days/sandbox|2008|7|31|2015|1|1}}
→ 6年5个月又1天
{{Age in years, months and days|2008|7|31|2015|7|1}}
{{Age in years, months and days|2008|7|31|2015|7|1}}
→ 6年11个月又1天{{Age in years, months and days/sandbox|2008|7|31|2015|7|1}}
→ 6年11个月又1天
{{Age in years, months and days|2008|7|31|2015|8|1}}
{{Age in years, months and days|2008|7|31|2015|8|1}}
→ 7年1天{{Age in years, months and days/sandbox|2008|7|31|2015|8|1}}
→ 7年1天
{{Age in years, months and days|2008|8|1|2015|7|31}}
{{Age in years, months and days|2008|8|1|2015|7|31}}
→ 6年11个月又30天{{Age in years, months and days/sandbox|2008|8|1|2015|7|31}}
→ 6年11个月又30天
{{Age in years, months and days|2008|8|15|2015|7|14}}
{{Age in years, months and days|2008|8|15|2015|7|14}}
→ 6年10个月又29天{{Age in years, months and days/sandbox|2008|8|15|2015|7|14}}
→ 6年10个月又29天
{{Age in years, months and days|2008|8|15|2015|7|15}}
{{Age in years, months and days|2008|8|15|2015|7|15}}
→ 6年11个月{{Age in years, months and days/sandbox|2008|8|15|2015|7|15}}
→ 6年11个月
{{Age in years, months and days|2008|8|15|2015|7|16}}
{{Age in years, months and days|2008|8|15|2015|7|16}}
→ 6年11个月又1天{{Age in years, months and days/sandbox|2008|8|15|2015|7|16}}
→ 6年11个月又1天
{{Age in years, months and days|2008|8|31|2015|7|1}}
{{Age in years, months and days|2008|8|31|2015|7|1}}
→ 6年10个月又1天{{Age in years, months and days/sandbox|2008|8|31|2015|7|1}}
→ 6年10个月又1天
{{Age in years, months and days|2008|12|1|2015|1|31}}
{{Age in years, months and days|2008|12|1|2015|1|31}}
→ 6年1个月又30天{{Age in years, months and days/sandbox|2008|12|1|2015|1|31}}
→ 6年1个月又30天
{{Age in years, months and days|2008|12|15|2015|1|14}}
{{Age in years, months and days|2008|12|15|2015|1|14}}
→ 6年30天{{Age in years, months and days/sandbox|2008|12|15|2015|1|14}}
→ 6年30天
{{Age in years, months and days|2008|12|15|2015|1|15}}
{{Age in years, months and days|2008|12|15|2015|1|15}}
→ 6年1个月{{Age in years, months and days/sandbox|2008|12|15|2015|1|15}}
→ 6年1个月
{{Age in years, months and days|2008|12|15|2015|1|16}}
{{Age in years, months and days|2008|12|15|2015|1|16}}
→ 6年1个月又1天{{Age in years, months and days/sandbox|2008|12|15|2015|1|16}}
→ 6年1个月又1天
{{Age in years, months and days|2008|12|31|2015|1|1}}
{{Age in years, months and days|2008|12|31|2015|1|1}}
→ 6年1天{{Age in years, months and days/sandbox|2008|12|31|2015|1|1}}
→ 6年1天
{{Age in years, months and days|2008|1|29|2015|3|1}}
{{Age in years, months and days|2008|1|29|2015|3|1}}
→ 7年1个月又1天{{Age in years, months and days/sandbox|2008|1|29|2015|3|1}}
→ 7年1个月又1天
{{Age in years, months and days|2008|1|30|2015|3|1}}
{{Age in years, months and days|2008|1|30|2015|3|1}}
→ 7年1个月又1天{{Age in years, months and days/sandbox|2008|1|30|2015|3|1}}
→ 7年1个月又1天
{{Age in years, months and days|2008|1|31|2015|3|1}}
{{Age in years, months and days|2008|1|31|2015|3|1}}
→ 7年1个月又1天{{Age in years, months and days/sandbox|2008|1|31|2015|3|1}}
→ 7年1个月又1天
{{Age in years, months and days|2008|2|1|2015|3|1}}
{{Age in years, months and days|2008|2|1|2015|3|1}}
→ 7年1个月{{Age in years, months and days/sandbox|2008|2|1|2015|3|1}}
→ 7年1个月
{{Age in years, months and days|2008|8|29|2015|3|1}}
{{Age in years, months and days|2008|8|29|2015|3|1}}
→ 6年6个月又1天{{Age in years, months and days/sandbox|2008|8|29|2015|3|1}}
→ 6年6个月又1天
{{Age in years, months and days|2008|8|30|2015|3|1}}
{{Age in years, months and days|2008|8|30|2015|3|1}}
→ 6年6个月又1天{{Age in years, months and days/sandbox|2008|8|30|2015|3|1}}
→ 6年6个月又1天
{{Age in years, months and days|2008|8|31|2015|3|1}}
{{Age in years, months and days|2008|8|31|2015|3|1}}
→ 6年6个月又1天{{Age in years, months and days/sandbox|2008|8|31|2015|3|1}}
→ 6年6个月又1天
{{Age in years, months and days|2008|9|1|2015|3|1}}
{{Age in years, months and days|2008|9|1|2015|3|1}}
→ 6年6个月{{Age in years, months and days/sandbox|2008|9|1|2015|3|1}}
→ 6年6个月
{{Age in years, months and days|2008|8|31|2015|2|28}}
{{Age in years, months and days|2008|8|31|2015|2|28}}
→ 6年5个月又28天{{Age in years, months and days/sandbox|2008|8|31|2015|2|28}}
→ 6年5个月又28天
{{Age in years, months and days|2008|8|31|2015|3|1}}
{{Age in years, months and days|2008|8|31|2015|3|1}}
→ 6年6个月又1天{{Age in years, months and days/sandbox|2008|8|31|2015|3|1}}
→ 6年6个月又1天
{{Age in years, months and days|2008|8|31|2015|3|2}}
{{Age in years, months and days|2008|8|31|2015|3|2}}
→ 6年6个月又2天{{Age in years, months and days/sandbox|2008|8|31|2015|3|2}}
→ 6年6个月又2天
{{Age in years, months and days|2008|8|31|2015|3|3}}
{{Age in years, months and days|2008|8|31|2015|3|3}}
→ 6年6个月又3天{{Age in years, months and days/sandbox|2008|8|31|2015|3|3}}
→ 6年6个月又3天