Template:Start date and age/testcases
Appearance
![]() | This is the template test cases page for the sandbox of Template:Start date and age. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Default separator: semicolon
[edit]Parameters | Current template | Sandbox template |
---|---|---|
Full date (year, month, day) | ||
|2013|02|01
|
February 1, 2013 | February 1, 2013 |
|2013|02|01|df=yes
|
1 February 2013 | 1 February 2013 |
|df=yes|2013|02|01
|
1 February 2013 | 1 February 2013 |
|2013|02|01|df=y
|
1 February 2013 | 1 February 2013 |
100 days ago:|2024|12|27
|
December 27, 2024 | December 27, 2024 |
Yesterday:|2025|4|5
|
April 5, 2025 | April 5, 2025 |
Today:|2025|4|6
|
April 6, 2025 | April 6, 2025 |
Tomorrow:|2025|4|7
|
April 7, 2025 | April 7, 2025 |
In 4 days:|2025|4|10
|
April 10, 2025 | April 10, 2025 |
In 1 month:|2025|5|6
|
May 6, 2025 | May 6, 2025 |
In 76 days (2.5 months -1 day):|2025|6|21
|
June 21, 2025 | June 21, 2025 |
In 77 days (2.5 months +1 day):|2025|6|22
|
June 22, 2025 | June 22, 2025 |
In 910 days (2.5 yrs -a bit):|2027|10|3
|
October 3, 2027 | October 3, 2027 |
In 920 days (2.5 yrs +a bit):|2027|10|13
|
October 13, 2027 | October 13, 2027 |
Year and month | ||
|2002|03
|
March 2002 | March 2002 |
|2002|11
|
November 2002 | November 2002 |
-11 months:|2024|5
|
May 2024 | May 2024 |
+11 months:|2026|3
|
March 2026 | March 2026 |
|2022|03
|
March 2022 | March 2022 |
|2022|11
|
November 2022 | November 2022 |
Year only | ||
-10 yrs:|2015
|
2015 | 2015 |
+10 yrs:|2035
|
2035 | 2035 |
+11 yrs:|2036
|
2036 | 2036 |
Optional separator: parentheses
[edit]Parameters | Current template | Sandbox template |
---|---|---|
Full date (year, month, day) | ||
|2003|02|15|paren=yes
|
February 15, 2003 | February 15, 2003 |
|2003|02|15|p=y
|
February 15, 2003 | February 15, 2003 |
|2003|02|15|p=1
|
February 15, 2003 | February 15, 2003 |
|2003|02|15|df=y|p=y
|
15 February 2003 | 15 February 2003 |
Year and month | ||
|2003|02|p=y
|
February 2003 | February 2003 |
Year only | ||
|2003|paren=yes
|
2003 | 2003 |
Line break with semicolon
[edit]Parameters | Current template | Sandbox template |
---|---|---|
Full date (year, month, day) | ||
|2003|02|15|br=yes
|
February 15, 2003 | February 15, 2003 |
Year and month | ||
|2003|02|br=y
|
February 2003 | February 2003 |
Year only | ||
|2003|br=1
|
2003 | 2003 |
Line break with parentheses
[edit]Parameters | Current template | Sandbox template |
---|---|---|
Full date (year, month, day) | ||
|2003|02|15|p=yes|br=yes
|
February 15, 2003 | February 15, 2003 |
Year and month | ||
|2003|02|p=y|br=y
|
February 2003 | February 2003 |
Year only | ||
|2003|p=1|br=1
|
2003 | 2003 |
Year and month only (no day)
[edit]Parameters | Current template | Sandbox template |
---|---|---|
|2023|11
|
November 2023 | November 2023 |
|2024|10
|
October 2024 | October 2024 |
|2024|11
|
November 2024 | November 2024 |
|2024|12
|
December 2024 | December 2024 |
|2025|1
|
January 2025 | January 2025 |
|2025|2
|
February 2025 | February 2025 |
|2025|3
|
March 2025 | March 2025 |
|2025|4
|
April 2025 | April 2025 |
|2025|5
|
May 2025 | May 2025 |
|2025|6
|
June 2025 | June 2025 |
|2025|7
|
July 2025 | July 2025 |
|2025|8
|
August 2025 | August 2025 |
|2025|9
|
September 2025 | September 2025 |
|2025|10
|
October 2025 | October 2025 |
|2025|11
|
November 2025 | November 2025 |
|2025|12
|
December 2025 | December 2025 |
|2026|1
|
January 2026 | January 2026 |
|2026|2
|
February 2026 | February 2026 |
|2026|3
|
March 2026 | March 2026 |
Year only (no month or day)
[edit]Parameters | Current template | Sandbox template |
---|---|---|
|2023
|
2023 | 2023 |
|2024
|
2024 | 2024 |
|2025
|
2025 | 2025 |
|2026
|
2026 | 2026 |
|2027
|
2027 | 2027 |
Month as text (name or abbreviation)
[edit]Parameters | Current template | Sandbox template |
---|---|---|
Year, month, day | ||
|2001|August|19
|
August 19, 2001 | Error: All values must be integers (help) |
|2001|Aug|19|df=yes
|
19 August 2001 | Error: All values must be integers (help) |
Year and month (no day) | ||
|2002|September
|
September 2002 | Error: All values must be integers (help) |
|2002|Sep
|
September 2002 | Error: All values must be integers (help) |
|2002|Sept
|
September 2002 | Error: All values must be integers (help) |
Undocumented usage
[edit]Parameters | Current template | Sandbox template |
---|---|---|
Year, month, day | ||
|October 20, 2003
|
October 20, 2003 | Error: All values must be integers (help) |
|20 October 2003
|
20 October 2003 | Error: All values must be integers (help) |
|Oct. 20, 2003
|
Oct. 20, 2003 | Error: All values must be integers (help) |
|20 Oct 2003
|
20 Oct 2003 | Error: All values must be integers (help) |
Year and month (no day) | ||
|November 2004
|
November 2004 | Error: All values must be integers (help) |
|Nov. 2004
|
Nov. 2004 | Error: All values must be integers (help) |
Empty/Missing parameters
[edit]Parameters | Current template | Sandbox template |
---|---|---|
No year | ||
No parameters | Error: Year value is required (help) | |
||12|20
|
Error: first parameter is missing. | Error: Year value is required (help) |
||12|
|
Error: first parameter is missing. | Error: Year value is required (help) |
|||20
|
Error: first parameter is missing. | Error: Year value is required (help) |
No month | ||
|2001||20
|
2001 | Error: Month value is required when a day is provided (help) |
|2001||
|
2001 | 2001 |
No day | ||
|2001|12|
|
December 2001 | December 2001 |
|2001||
|
2001 | 2001 |