Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Start date and age/testcases

From Wikipedia, the free encyclopedia

Default separator: semicolon

[edit]
Parameters Current template Sandbox template
Full date (year, month, day)
|2013|02|01 February 1, 2013; 13 years ago February 1, 2013; 13 years ago
|2013|02|01|df=yes 1 February 2013; 13 years ago 1 February 2013; 13 years ago
|df=yes|2013|02|01 1 February 2013; 13 years ago 1 February 2013; 13 years ago
|2013|02|01|df=y 1 February 2013; 13 years ago 1 February 2013; 13 years ago
100 days ago:
|2026|5|4
May 4, 2026; 3 months ago May 4, 2026; 3 months ago
Yesterday:
|2026|8|11
August 11, 2026; 1 day ago August 11, 2026; 1 day ago
Today:
|2026|8|12
August 12, 2026; 0 days ago August 12, 2026; 0 days ago
Tomorrow:
|2026|8|13
August 13, 2026; 0 days' time August 13, 2026; 0 days' time
In 4 days:
|2026|8|16
August 16, 2026; 3 days' time August 16, 2026; 3 days' time
In 1 month:
|2026|9|12
September 12, 2026; 30 days' time September 12, 2026; 30 days' time
In 76 days (2.5 months -1 day):
|2026|10|27
October 27, 2026; 2 months' time October 27, 2026; 2 months' time
In 77 days (2.5 months +1 day):
|2026|10|28
October 28, 2026; 2 months' time October 28, 2026; 2 months' time
In 910 days (2.5 yrs -a bit):
|2029|2|7
February 7, 2029; 2 years' time February 7, 2029; 2 years' time
In 920 days (2.5 yrs +a bit):
|2029|2|17
February 17, 2029; 2 years' time February 17, 2029; 2 years' time
Year and month
|2002|03 March 2002; 24 years ago March 2002; 24 years ago
|2002|11 November 2002; 23 years ago November 2002; 23 years ago
-11 months:
|2025|9
September 2025; 11 months ago September 2025; 11 months ago
+11 months:
|2027|7
July 2027; 11 months' time July 2027; 10 months' time
|2022|03 March 2022; 4 years ago March 2022; 4 years ago
|2022|11 November 2022; 3 years ago November 2022; 3 years ago
Year only
-10 yrs:
|2016
2016; 10 years ago 2016; 10 years ago
+10 yrs:
|2036
2036; 10 years' time 2036; 10 years' time
+11 yrs:
|2037
2037; 11 years' time 2037; 11 years' time

Optional separator: parentheses

[edit]
Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|paren=yes February 15, 2003 (23 years ago) February 15, 2003 (23 years ago)
|2003|02|15|p=y February 15, 2003 (23 years ago) February 15, 2003 (23 years ago)
|2003|02|15|p=1 February 15, 2003 (23 years ago) ERROR: p must be either "yes" or "y" (help)
|2003|02|15|df=y|p=y 15 February 2003 (23 years ago) 15 February 2003 (23 years ago)
Year and month
|2003|02|p=y February 2003 (23 years ago) February 2003 (23 years ago)
Year only
|2003|paren=yes 2003 (23 years ago) 2003 (23 years ago)

Line break with semicolon

[edit]
Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|br=yes February 15, 2003;
23 years ago
February 15, 2003;
23 years ago
Year and month
|2003|02|br=y February 2003;
23 years ago
February 2003;
23 years ago
Year only
|2003|br=1 2003;
23 years ago
ERROR: br must be either "yes" or "y" (help)

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
(23 years ago)
February 15, 2003
(23 years ago)
Year and month
|2003|02|p=y|br=y February 2003
(23 years ago)
February 2003
(23 years ago)
Year only
|2003|p=1|br=1 2003
(23 years ago)
ERROR: p must be either "yes" or "y" (help)

Year and month only (no day)

[edit]
Parameters Current template Sandbox template
|2024|11 November 2024; 1 year ago November 2024; 1 year ago
|2025|10 October 2025; 10 months ago October 2025; 10 months ago
|2025|11 November 2025; 9 months ago November 2025; 9 months ago
|2025|12 December 2025; 8 months ago December 2025; 8 months ago
|2026|1 January 2026; 7 months ago January 2026; 7 months ago
|2026|2 February 2026; 6 months ago February 2026; 6 months ago
|2026|3 March 2026; 5 months ago March 2026; 5 months ago
|2026|4 April 2026; 4 months ago April 2026; 4 months ago
|2026|5 May 2026; 3 months ago May 2026; 3 months ago
|2026|6 June 2026; 2 months ago June 2026; 2 months ago
|2026|7 July 2026; 1 month ago July 2026; 1 month ago
|2026|8 August 2026; 0 months ago August 2026; 0 months ago
|2026|9 September 2026; 1 month's time September 2026; 0 months' time
|2026|10 October 2026; 2 months' time October 2026; 1 month's time
|2026|11 November 2026; 3 months' time November 2026; 2 months' time
|2026|12 December 2026; 4 months' time December 2026; 3 months' time
|2027|1 January 2027; 5 months' time January 2027; 4 months' time
|2027|2 February 2027; 6 months' time February 2027; 5 months' time
|2027|3 March 2027; 7 months' time March 2027; 6 months' time

Year only (no month or day)

[edit]
Parameters Current template Sandbox template
|2024 2024; 2 years ago 2024; 2 years ago
|2025 2025; 1 year ago 2025; 1 year ago
|2026 2026; 0 years ago 2026; 0 years ago
|2027 2027; 1 year's time 2027; 1 year's time
|2028 2028; 2 years' time 2028; 2 years' time

Month as text (name or abbreviation)

[edit]
Parameters Current template Sandbox template
Year, month, day
|2001|August|19 August 19, 2001; 25 years ago ERROR: All values must be integers (help)
|2001|Aug|19|df=yes 19 August 2001; 24 years ago ERROR: All values must be integers (help)
Year and month (no day)
|2002|September September 2002; 23 years ago ERROR: All values must be integers (help)
|2002|Sep September 2002; 23 years ago ERROR: All values must be integers (help)
|2002|Sept September 2002; 23 years ago ERROR: All values must be integers (help)

Undocumented usage

[edit]
Parameters Current template Sandbox template
Year, month, day
|October 20, 2003 October 20, 2003; 22 years ago ERROR: All values must be integers (help)
|20 October 2003 20 October 2003; 22 years ago ERROR: All values must be integers (help)
|Oct. 20, 2003 Oct. 20, 2003; 22 years ago ERROR: All values must be integers (help)
|20 Oct 2003 20 Oct 2003; 22 years ago ERROR: All values must be integers (help)
Year and month (no day)
|November 2004 November 2004; 21 years ago ERROR: All values must be integers (help)
|Nov. 2004 Nov. 2004; 21 years ago 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; 25 years ago ERROR: Month value is required when a day is provided (help)
|2001|| 2001; 25 years ago 2001; 25 years ago
No day
|2001|12| December 2001; 24 years ago December 2001; 24 years ago
|2001|| 2001; 25 years ago 2001; 25 years ago