コンテンツにスキップ

英文维基 | 中文维基 | 日文维基 | 草榴社区

Template:Start date and age/testcases

Default separator: semicolon

[編集]
Parameters Current template Sandbox template
Full date (year, month, day)
|2013|02|01 2013年2月1日 (11年前) (2013-02-01) 2013年2月1日 (11年前) (2013-02-01)
|2013|02|01|df=yes 2013年2月1日 (11年前) (2013-02-01) 2013年2月1日 (11年前) (2013-02-01)
|df=yes|2013|02|01 2013年2月1日 (11年前) (2013-02-01) 2013年2月1日 (11年前) (2013-02-01)
|2013|02|01|df=y 2013年2月1日 (11年前) (2013-02-01) 2013年2月1日 (11年前) (2013-02-01)
|2013|02|01|df=1 2013年2月1日 (11年前) (2013-02-01) 2013年2月1日 (11年前) (2013-02-01)
|2010|1|2|df=no 2010年1月2日 (14年前) (2010-01-02) 2010年1月2日 (14年前) (2010-01-02)
|2008|8|9|df=n 2008年8月9日 (16年前) (2008-08-09) 2008年8月9日 (16年前) (2008-08-09)
|2003|7|5|df=0 2003年7月5日 (21年前) (2003-07-05) 2003年7月5日 (21年前) (2003-07-05)
100 days ago:
|2024|5|28
2024年5月28日 (3か月前) (2024-05-28) 2024年5月28日 (3か月前) (2024-05-28)
Yesterday:
|2024|9|4
2024年9月4日 (27時間前) (2024-09-04) 2024年9月4日 (27時間前) (2024-09-04)
Today:
|2024|9|5
2024年9月5日 (3時間前) (2024-09-05) 2024年9月5日 (3時間前) (2024-09-05)
Tomorrow:
|2024|9|6
2024年9月6日 (20時間後) (2024-09-06) 2024年9月6日 (20時間後) (2024-09-06)
In 4 days:
|2024|9|9
2024年9月9日 (3日後) (2024-09-09) 2024年9月9日 (3日後) (2024-09-09)
In 1 month:
|2024|10|5
2024年10月5日 (29日後) (2024-10-05) 2024年10月5日 (29日後) (2024-10-05)
In 76 days (2.5 months -1 day):
|2024|11|20
2024年11月20日 (2か月後) (2024-11-20) 2024年11月20日 (2か月後) (2024-11-20)
In 77 days (2.5 months +1 day):
|2024|11|21
2024年11月21日 (2か月後) (2024-11-21) 2024年11月21日 (2か月後) (2024-11-21)
In 910 days (2.5 yrs -a bit):
|2027|3|4
2027年3月4日 (2年後) (2027-03-04) 2027年3月4日 (2年後) (2027-03-04)
In 920 days (2.5 yrs +a bit):
|2027|3|14
2027年3月14日 (2年後) (2027-03-14) 2027年3月14日 (2年後) (2027-03-14)
Year and month
|2002|03 2002年3月 (22年前) (2002-03) 2002年3月 (22年前) (2002-03)
|2002|11 2002年11月 (21年前) (2002-11) 2002年11月 (21年前) (2002-11)
-11 months:
|2023|10
2023年10月 (11 か月前) (2023-10) 2023年10月 (11 か月前) (2023-10)
+11 months:
|2025|8
2025年8月 (11 か月後) (2025-08) 2025年8月 (11 か月後) (2025-08)
|2022|03 2022年3月 (2年前) (2022-03) 2022年3月 (2年前) (2022-03)
|2022|11 2022年11月 (1年前) (2022-11) 2022年11月 (1年前) (2022-11)
Year only
-10 yrs:
|2014
2014年 (10年前) (2014) 2014年 (10年前) (2014)
+10 yrs:
|2034
2034年 (10年後) (2034) 2034年 (10年後) (2034)
+11 yrs:
|2035
2035年 (11年後) (2035) 2035年 (11年後) (2035)

Optional separator: parentheses

[編集]
Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|paren=yes 2003年2月15日 (21年前) (2003-02-15) 2003年2月15日 (21年前) (2003-02-15)
|2003|02|15|p=y 2003年2月15日 (21年前) (2003-02-15) 2003年2月15日 (21年前) (2003-02-15)
|2003|02|15|p=1 2003年2月15日 (21年前) (2003-02-15) 2003年2月15日 (21年前) (2003-02-15)
|2003|02|15|df=y|p=y 2003年2月15日 (21年前) (2003-02-15) 2003年2月15日 (21年前) (2003-02-15)
Year and month
|2003|02|p=y 2003年2月 (21年前) (2003-02) 2003年2月 (21年前) (2003-02)
Year only
|2003|paren=yes 2003年 (21年前) (2003) 2003年 (21年前) (2003)

Line break with semicolon

[編集]
Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|br=yes 2003年2月15日
(21年前)
 (2003-02-15)
2003年2月15日
(21年前)
 (2003-02-15)
Year and month
|2003|02|br=y 2003年2月
(21年前)
 (2003-02)
2003年2月
(21年前)
 (2003-02)
Year only
|2003|br=1 2003年
(21年前)
 (2003)
2003年
(21年前)
 (2003)

Line break with parentheses

[編集]
Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|p=yes|br=yes 2003年2月15日
(21年前)
 (2003-02-15)
2003年2月15日
(21年前)
 (2003-02-15)
Year and month
|2003|02|p=y|br=y 2003年2月
(21年前)
 (2003-02)
2003年2月
(21年前)
 (2003-02)
Year only
|2003|p=1|br=1 2003年
(21年前)
 (2003)
2003年
(21年前)
 (2003)

Year and month only (no day)

[編集]
Parameters Current template Sandbox template
|2022|11 2022年11月 (1年前) (2022-11) 2022年11月 (1年前) (2022-11)
|2023|10 2023年10月 (11 か月前) (2023-10) 2023年10月 (11 か月前) (2023-10)
|2023|11 2023年11月 (10 か月前) (2023-11) 2023年11月 (10 か月前) (2023-11)
|2023|12 2023年12月 (9 か月前) (2023-12) 2023年12月 (9 か月前) (2023-12)
|2024|1 2024年1月 (8 か月前) (2024-01) 2024年1月 (8 か月前) (2024-01)
|2024|2 2024年2月 (7 か月前) (2024-02) 2024年2月 (7 か月前) (2024-02)
|2024|3 2024年3月 (6 か月前) (2024-03) 2024年3月 (6 か月前) (2024-03)
|2024|4 2024年4月 (5 か月前) (2024-04) 2024年4月 (5 か月前) (2024-04)
|2024|5 2024年5月 (4 か月前) (2024-05) 2024年5月 (4 か月前) (2024-05)
|2024|6 2024年6月 (3 か月前) (2024-06) 2024年6月 (3 か月前) (2024-06)
|2024|7 2024年7月 (2 か月前) (2024-07) 2024年7月 (2 か月前) (2024-07)
|2024|8 2024年8月 (1 か月前) (2024-08) 2024年8月 (1 か月前) (2024-08)
|2024|9 2024年9月 (0 か月前) (2024-09) 2024年9月 (0 か月前) (2024-09)
|2024|10 2024年10月 (1 か月後) (2024-10) 2024年10月 (1 か月後) (2024-10)
|2024|11 2024年11月 (2 か月後) (2024-11) 2024年11月 (2 か月後) (2024-11)
|2024|12 2024年12月 (3 か月後) (2024-12) 2024年12月 (3 か月後) (2024-12)
|2025|1 2025年1月 (4 か月後) (2025-01) 2025年1月 (4 か月後) (2025-01)
|2025|2 2025年2月 (5 か月後) (2025-02) 2025年2月 (5 か月後) (2025-02)
|2025|3 2025年3月 (6 か月後) (2025-03) 2025年3月 (6 か月後) (2025-03)

Year only (no month or day)

[編集]
Parameters Current template Sandbox template
|2022 2022年 (2年前) (2022) 2022年 (2年前) (2022)
|2023 2023年 (1年前) (2023) 2023年 (1年前) (2023)
|2024 2024年 (0年前) (2024) 2024年 (0年前) (2024)
|2025 2025年 (1年後) (2025) 2025年 (1年後) (2025)
|2026 2026年 (2年後) (2026) 2026年 (2年後) (2026)

Month as text (name or abbreviation)

[編集]
Parameters Current template Sandbox template
Year, month, day
|2001|August|19 2001年19日 (23年前) (2001-08-19) 2001年19日 (23年前) (2001-08-19)
|2001|Aug|19|df=yes 2001年19日 (23年前) (2001-08-19) 2001年19日 (23年前) (2001-08-19)
Year and month (no day)
|2002|September 2002年 (22年前) (2002-09) 2002年 (22年前) (2002-09)
|2002|Sep 2002年 (22年前) (2002-09) 2002年 (22年前) (2002-09)
|2002|Sept 2002年 (22年前) (2002-09) 2002年 (22年前) (2002-09)

Undocumented usage

[編集]
Parameters Current template Sandbox template
Year, month, day
|October 20, 2003 October 20, 2003年 (20年前) (October 20, 2003) October 20, 2003年 (20年前) (October 20, 2003)
|20 October 2003 20 October 2003年 (20年前) (20 October 2003) 20 October 2003年 (20年前) (20 October 2003)
|Oct. 20, 2003 Oct. 20, 2003年 (20年前) (Oct. 20, 2003) Oct. 20, 2003年 (20年前) (Oct. 20, 2003)
|20 Oct 2003 20 Oct 2003年 (20年前) (20 Oct 2003) 20 Oct 2003年 (20年前) (20 Oct 2003)
Year and month (no day)
|November 2004 November 2004年 (19年前) (November 2004) November 2004年 (19年前) (November 2004)
|Nov. 2004 Nov. 2004年 (19年前) (Nov. 2004) Nov. 2004年 (19年前) (Nov. 2004)

Empty/Missing parameters

[編集]
Parameters Current template Sandbox template
No year
No parameters エラー: 第1パラメータの入力がありません。 () エラー: 第1パラメータの入力がありません。 ()
||12|20 エラー: 第1パラメータの入力がありません。 () エラー: 第1パラメータの入力がありません。 ()
||12| エラー: 第1パラメータの入力がありません。 () エラー: 第1パラメータの入力がありません。 ()
|||20 エラー: 第1パラメータの入力がありません。 () エラー: 第1パラメータの入力がありません。 ()
No month
|2001||20 2001年 (23年前) (2001) 2001年 (23年前) (2001)
|2001|| 2001年 (23年前) (2001) 2001年 (23年前) (2001)
No day
|2001|12| 2001年12月 (22年前) (2001-12) 2001年12月 (22年前) (2001-12)
|2001|| 2001年 (23年前) (2001) 2001年 (23年前) (2001)