Template talk:Year category

message: Please add Category:Category namespace templates, to add this template to . Thanks. DH85868993 (talk) 08:14, 19 August 2012 (UTC)
replies: text: Done --Redrose64 (talk) 12:56, 19 August 2012 (UTC)
replies: text: Thanks. DH85868993 (talk) 13:15, 19 August 2012 (UTC)
thread_title:  Edit request 

message: Please remove the line  - protection templates are automatically handled by the documentation page. Thanks, --DannyS712 (talk) 06:56, 22 March 2019 (UTC)
replies: text: Done — JJMC89 (T·C) 07:03, 22 March 2019 (UTC)
thread_title:  Template-protected edit request on 22 March 2019 

message: 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  aims to correct that problem.  It adapts automatically to such page moves by using .  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)
replies: text: 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: 787.  On the other hand, that would be more complex and not obviously better.   Certes (talk) 14:14, 19 December 2019 (UTC)
replies: text: 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 , 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)
replies: text: 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)
replies: text: 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)

text: Sorry, I think we may have to deal with this sooner.  WT:WikiProject Years#Future decades 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#2045.  That's also more efficient than calling  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)
replies: text: Sorry about that, in regard WT:WikiProject Years#Future decades.  I suppose the categories might be merged, too....  — Arthur Rubin  (talk) 16:25, 28 December 2019 (UTC)

text: 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)
replies: text:  seems to fix the problem.  There is one side-effect: years appear with an AD prefix even when spurious, e.g. .  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)

text: Okay thanks! Yeah sorry I didn't realize that the links were double redirected. - Knowledgekid87 (talk) 16:43, 4 March 2020 (UTC)

text: . PI Ellsworth  ed. put'r there 20:14, 6 March 2020 (UTC)
thread_title:  Year page moves 

message: 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#Future decades. Certes (talk) 16:45, 5 March 2020 (UTC)
replies: text: . PI Ellsworth  ed. put'r there 20:14, 6 March 2020 (UTC)
thread_title: Edit request_2