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.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a44ed30aef2252f1

Jump to content

Template talk:YEAR

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:YEAR/doc)
Latest comment: 1 year ago by Jonesey95 in topic "Cleanly substed"?

2000s bug

[edit]

This template appears to be broken for the years 2000-2459. Test cases:

input result comment
{{subst:YEAR|September 4, 2426}} 2004 day+2000
{{subst:YEAR|September 3, 2000}} 2003 day+2000
{{subst:YEAR|September 8, 2459}} 2008 day+2000
{{subst:YEAR|September 8, 2460}} 2460 ...but 2460 and above is fine
{{subst:YEAR|2000-09-03}} 2000 correct when in YYYY-MM-DD format
{{subst:YEAR|September 3, 1999}} 1999 1999 and below is fine
{{subst:YEAR|September 153, 2014}} 0153 looks like some kind of modulo issue

It looks like it's grabbing the day instead of the year for some reason. Is this a problem with this template, or with the #date parser function? Ibadibam (talk) 01:04, 1 January 2014 (UTC)Reply

Broken

[edit]

This template appears to be broken. Testing it, {{year|October 15, 2020}} produces 2015, which is...not correct. {{u|Sdkb}} talk 04:35, 21 December 2020 (UTC)Reply

This is the same bug as above. --Izno (talk) 05:09, 21 December 2020 (UTC)Reply
Fixed by , hopefully without breaking any existing uses relying on the wrong check. PrimeHunter (talk) 08:54, 21 December 2020 (UTC)Reply
Thanks! {{u|Sdkb}} talk 10:22, 21 December 2020 (UTC)Reply

"Cleanly substed"?

[edit]

The documentation says that this template can be cleanly substed, but when I tried it, I got this mess. Can someone please fix either the template or the documentation? Thanks. – Jonesey95 (talk) 14:34, 31 December 2024 (UTC)Reply