跳至內容

模板:Age in years, months and days/testcases

維基百科,自由的百科全書

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年3—4個月
  • {{Age in years, months and days/sandbox|year=2008|month=7}} → 16年3或4個月
{{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年3個月又10天
  • {{Age in years, months and days/sandbox|year=2019|month=07|day=30}} → 5年3個月又10天
{{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年3個月又9天
  • {{Age in years, months and days/sandbox|year=2019|month=07|day=31}} → 5年3個月又9天
{{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年4個月又8天
  • {{Age in years, months and days/sandbox|year=2019|month=07|day=1}} → 5年4個月又8天
{{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年2個月又10天
  • {{Age in years, months and days/sandbox|year=2019|month=08|day=30}} → 5年2個月又10天
{{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年2個月又9天
  • {{Age in years, months and days/sandbox|year=2019|month=08|day=31}} → 5年2個月又9天
{{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年3個月又8天
  • {{Age in years, months and days/sandbox|year=2019|month=08|day=1}} → 5年3個月又8天
{{Age in years, months and days|year=2025|month=08|day=30}}
  • {{Age in years, months and days|year=2025|month=08|day=30}} → −9個月21天
  • {{Age in years, months and days/sandbox|year=2025|month=08|day=30}} → −9個月21天
{{Age in years, months and days|year=2025|month=08|day=31}}
  • {{Age in years, months and days|year=2025|month=08|day=31}} → −9個月22天
  • {{Age in years, months and days/sandbox|year=2025|month=08|day=31}} → −9個月22天
{{Age in years, months and days|year=2025|month=08|day=1}}
  • {{Age in years, months and days|year=2025|month=08|day=1}} → −8個月23天
  • {{Age in years, months and days/sandbox|year=2025|month=08|day=1}} → −8個月23天

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天