Template talk:Year category

Latest comment: 4 years ago by Paine Ellsworth in topic Year page moves

Edit request edit

Please add <noinclude>[[Category:Category namespace templates]]</noinclude>, to add this template to Category:Category namespace templates. Thanks. DH85868993 (talk) 08:14, 19 August 2012 (UTC)Reply

  Done --Redrose64 (talk) 12:56, 19 August 2012 (UTC)Reply
Thanks. DH85868993 (talk) 13:15, 19 August 2012 (UTC)Reply

Template-protected edit request on 22 March 2019 edit

Please remove the line <noinclude>{{pp-template}}</noinclude> - protection templates are automatically handled by the documentation page. Thanks, --DannyS712 (talk) 06:56, 22 March 2019 (UTC)Reply

  Done — JJMC89(T·C) 07:03, 22 March 2019 (UTC)Reply

Year page moves edit

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)Reply

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 Wbm1058, 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)Reply
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)Reply
Thanks, Wbm1058. I've created AD 2091 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)Reply
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)Reply
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 AD 20002000; for future years it might be a section redirect like AD 20452040s#2045. 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)Reply
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)Reply
This problem is about to occur, once a bot spots that AD 2051 etc. just became double redirects and bypasses them. I'll see if I can get a fix working in the sandbox asap. Courtesy ping: Knowledgekid87‎. Certes (talk) 16:28, 4 March 2020 (UTC)Reply
{{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)Reply
Okay thanks! Yeah sorry I didn't realize that the links were double redirected. - Knowledgekid87 (talk) 16:43, 4 March 2020 (UTC)Reply

Edit request_2 edit

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 2051 into 2050s as described at WT:WikiProject Years#Future decades. Certes (talk) 16:45, 5 March 2020 (UTC)Reply

To editor Certes:   done. PI Ellsworth  ed. put'r there 20:14, 6 March 2020 (UTC)Reply