枋模:Birth year and age/testcases
Kàu tō-lám
跳至搜尋
| 這是枋模:Birth year and age佮其沙盒的試驗樣例。鑢新本頁以更新內容。 如果这里有许多复杂的模板的用例,可能会因为MediaWiki的技术限制而出错。 您还可以用Special:展开模板来测试模板的使用效果。 您可以通过以下链接测试本模板在不同-{zh-hans:皮肤; zh-hant:外觀;}-下的效果: |
{{birth year and age/sandbox}}<!-- 沒有指定出生年份的話 -->
未指定年份
{{birth year and age/sandbox|1990}}<!-- 有出生年份但沒有月份 -->
1990年(35–36歲)
{{birth year and age/sandbox|1990|12}}
1990年12月(35–36歲)
{{birth year and age/sandbox|1978|demodate=2014-01-01}}<!-- 用作顯示範例時指定特定日期 -->
1978年(47–48歲)
{{birth year and age/sandbox|1978|demodate=1997/07/01}}<!-- 指定日期時改用斜線分隔年月日的話 -->
1978年(47–48歲)
{{birth year and age/sandbox|2004|9|demodate=2014-01}}<!-- 只指定年份和月份 -->
2004年9月(22歲)
{{birth year and age/sandbox|2004|9|demodate=1997/07/01}}<!-- 指定日期早於出生時間的話 -->
2004年9月(22歲)
{{birth year and age/sandbox|2004|9|demodate=19970701}}<!-- 又一種指定日期的格式 -->
2004年9月(22歲)
{{birth year and age/sandbox|1963|4|demodate=199707}}<!-- 不合格的日期格式 -->
2004年9月(22歲)