模板:Age in months/testcases
外觀
這是Template:Age in months及其沙盒的測試樣例。刷新本頁以更新內容。 如果這裡有許多複雜的模板的用例,可能會因為MediaWiki的技術限制而出錯。 您還可以用Special:展開模板來測試模板的使用效果。 您可以通過以下連結測試本模板在不同外觀下的效果: |
測試 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}}
→ 423{{Age in months/sandbox|1989|7|23}}
→ 423- 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}}
→ 423- 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 |