跳转到内容

模板:Age in months/testcases

维基百科,自由的百科全书

测试 1

[编辑]
{{Age in months|1970|7|23|2003|7|14}}
{{Age in months|1970|7|23|2003|7|14}}
左右对比
{{Age in months}}{{Age in months/sandbox}}
395 395
{{Age in months|1989|7|23}}
  • {{Age in months|1989|7|23}} → 425
  • {{Age in months/sandbox|1989|7|23}} → 425
  • Expected: 385 (as of 2021)
{{Age in months|23 July 1989}}
  • {{Age in months|23 July 1989}} → <strong class="error">表达式错误:无法识别词语“july”。</strong>
  • {{Age in months/sandbox|23 July 1989}} → 425
  • Expected: 385 (as of 2021)
{{Age in months|26 July 2021|25 August 2021}}
{{Age in months|26 July 2021|25 August 2021}}
左右对比
{{Age in months}}{{Age in months/sandbox}}
<strong class="error">表达式错误:无法识别词语“july”。</strong> 0