This template is within the scope of WikiProject Categories, a collaborative effort to improve the coverage of categories on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.CategoriesWikipedia:WikiProject CategoriesTemplate:WikiProject CategoriesCategories articles
This template is within the scope of WikiProject Years, a collaborative effort to improve the coverage of Years on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.YearsWikipedia:WikiProject YearsTemplate:WikiProject YearsYears articles
Latest comment: 5 years ago2 comments2 people in discussion
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
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
Latest comment: 4 years ago12 comments5 people in discussion
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
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 2000 → 2000; for future years it might be a section redirect like AD 2045 → 2040s#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
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