Template talk:Year category

Edit request
Please add, to add this template to. Thanks. DH85868993 (talk) 08:14, 19 August 2012 (UTC)
 * Yes check.svg Done -- Red rose64 (talk) 12:56, 19 August 2012 (UTC)
 * Thanks. DH85868993 (talk) 13:15, 19 August 2012 (UTC)

Template-protected edit request on 22 March 2019
Please remove the line  - protection templates are automatically handled by the documentation page. Thanks, --DannyS712 (talk) 06:56, 22 March 2019 (UTC)
 * Yes check.svg Done —&thinsp;JJMC89&thinsp; (T·C) 07:03, 22 March 2019 (UTC)

Year page moves
Several year pages such as AD 787 have recently moved, and their categories now link to disambiguation pages. For example, Category:787 links to dab 787. The proposed version in Year category/sandbox aims to correct that problem. It adapts automatically to such page moves by using Year article. Protection on that template is lighter than on Year category but, I hope, still adequate. Do we want to promote the sandbox to replace this template? Certes (talk) 01:51, 18 December 2019 (UTC)
 * I've noticed that my change fails (gracefully) for numeric categories where the number in mainspace redirects to a decade article but there is no AD redirect. That affects the ten categories 2090 to 2099.  Pinging, who has made similar changes and may wish to help improve things.  Also, perhaps we should pipe the link and display the year parameter as given: [ [AD 787|787]].  On the other hand, that would be more complex and not obviously better.   Certes (talk) 14:14, 19 December 2019 (UTC)
 * Certes, your sandbox version is now live. My, it's been three years already since I worked on this. Just getting to AD 100 was hard enough; I'm glad you wrote Year article, which strikes me as very clever coding, because I wasn't looking forward to more tasks in this area. Regarding pipes, meh, if the community has decided that "787" is ambiguous, then we show "AD 787" to disambiguate. I know, on the category page it should be obvious in context. Regarding 2090, also meh, just create the redirects. Or not. I don't care. Best, wbm1058 (talk) 16:25, 19 December 2019 (UTC)
 * Thanks, . I've created  as a test but (as I should have realised) this results in a bad description for Category:2091, so I've left the others for now.  Pragmatically, we might want to consider deleting the redirect I just created.  Discussion about potential further moves such as 787 is at User talk:Crouch, Swale/Year DAB. Certes (talk) 16:37, 19 December 2019 (UTC)
 * OK, AD 2091 deleted. I'd say fixing this to work better is very low priority. Let the next generation of Wikipedia editors deal with it later. – wbm1058 (talk) 16:57, 19 December 2019 (UTC)
 * Sorry, I think we may have to deal with this sooner. WT:WikiProject Years is a sensible suggestion that would cause problems (e.g. Category:2045 would claim to be about the year "2040s").  One option is that if the template is passed a simple number n, whether it's 1 or 2099, we link to [ [AD n]].  For early years that is an article like AD 1; for recent years it is a redirect like ; for future years it might be a section redirect like AD 2045 → 2040s.  That's also more efficient than calling Year article which, although useful in the right context, may not be quite what was needed here.  Alternatively, we could rename all the categories to match their new article names... Certes (talk) 00:50, 28 December 2019 (UTC)
 * Sorry about that, in regard WT:WikiProject Years. I suppose the categories might be merged, too....  — Arthur Rubin  (talk) 16:25, 28 December 2019 (UTC)
 * This problem is about to occur, once a bot spots that etc. just became double redirects and bypasses them.  I'll see if I can get a fix working in the sandbox asap. Courtesy ping: . Certes (talk) 16:28, 4 March 2020 (UTC)
 * Year category/sandbox seems to fix the problem. There is one side-effect: years appear with an AD prefix even when spurious, e.g. Articles and events specifically related to the year AD 2020.  I don't think this is necessarily bad as, whilst pedantic, it does nail down the exact purpose of the category.  This change should also make it safe to create redirects for AD 2090 to AD 2099, which are currently deliberately missing.  Please can someone take a look at the change and either criticise or install it?  Thanks, Certes (talk) 16:42, 4 March 2020 (UTC)
 * Okay thanks! Yeah sorry I didn't realize that the links were double redirected. - Knowledgekid87 (talk) 16:43, 4 March 2020 (UTC)

Edit request_2
Please copy the sandbox to the main template. This will fix the descriptions of categories such as Category:2051, which changed due to recent mergers such as into 2050s as described at WT:WikiProject Years. Certes (talk) 16:45, 5 March 2020 (UTC)
 * ✅.  PI Ellsworth   ed.  put'r there 20:14, 6 March 2020 (UTC)