Template talk:Category described in year

Latest comment: 1 day ago by Tom.Reding in topic Protists described in 1753

Minimum year

edit

@Tom.Reding: at Module:Category described in year the documentation says that if yearmin isn't specified it defaults to 1758. So why does Category:Crustaceans described in 1758 show earlier years? Peter coxhead (talk) 09:03, 1 November 2018 (UTC)Reply

Peter coxhead, I've been meaning to phase that out (lower priority though). The only reason it was there was for the old nav template {{Category in year}}, but that was replaced with {{Navseasoncats}}, which doesn't use/need a |yearmin= or equivalent, but that can be added as a feature, if desired. Personally, I like the consistent size of the nav box as you approach both extremes, i.e. Category:Crustaceans described in 1758 & Category:Crustaceans described in 2018, since it maintains the pattern of what year will show up under your mouse while navigating, and keeps the same size box.   ~ Tom.Reding (talkdgaf)  12:05, 1 November 2018 (UTC)Reply
The counter argument is that there cannot be any years before 1753/1758 depending on the group, but the presence of these years, even greyed out, suggests that there could be. I understand the point about keeping the constant size of the nav box, but this could be kept even if the early years are fixed not to display. Peter coxhead (talk) 17:00, 1 November 2018 (UTC)Reply
Peter coxhead, I've mocked up a few examples here. Let me know which one you think is most appropriate, or if anything better comes to mind.   ~ Tom.Reding (talkdgaf)  01:00, 2 November 2018 (UTC)Reply
I like the "whitespace + dots" approach. I've suggested there another way of achieving the effect, using visibility:hidden. This ensures that the width is constant, regardless of the user's font settings, which using &nbsp; may not. It may also be easier to implement: just surround any year less than the mininum by <span style="visibility:hidden"> .. </span>. Peter coxhead (talk) 10:22, 2 November 2018 (UTC)Reply
  Done   ~ Tom.Reding (talkdgaf)  17:20, 2 November 2018 (UTC)Reply
Tom.Reding great, thanks! Peter coxhead (talk) 19:10, 2 November 2018 (UTC)Reply

Multiline table in list lint error

edit

This template generates a Multiline table in list lint error for each year that the Wikipedia commons category exists, viz: 1753, 1831, 1877, 1891. Please fix. —Anomalocaris (talk) 22:09, 23 August 2021 (UTC)Reply

  Done   ~ Tom.Reding (talkdgaf)  10:42, 3 August 2024 (UTC)Reply

Extra insect groups

edit

I have tried to add extra categories for example Category:Ants described in 1758 and it seems to add it to both Category:Animals described in 1758 and Category:Insects described in 1758. Is there any way to only place it in the insect category, like with the beetles, butterflies and moths? Elspooky (talk) 11:58, 30 July 2022 (UTC)Reply

@Elspooky: why? Ants were CfD'd here in 2018, and I don't see why they shouldn't be again. The category structure & population is even worse than it was pre-CfD.   ~ Tom.Reding (talkdgaf)  10:44, 3 August 2024 (UTC)Reply
Wikipedia:Categories for discussion/Log/2024 August 9#Category:Ants described in 1758.   ~ Tom.Reding (talkdgaf)  05:18, 9 August 2024 (UTC)Reply

Protists described in 1753

edit

Why is this template putting Category:Protists described in 1753 ( 11 ) into Category:Animals described in 1753 ( 0 )? Protists are not animals by definition. awkwafaba (📥) 16:59, 30 July 2024 (UTC)Reply

It's doing it to all protists. c.f. Category:Protists described in 1953 ( 4 ) awkwafaba (📥) 19:12, 30 July 2024 (UTC)Reply
Forgot to ping @Tom.Reding:. awkwafaba (📥) 18:10, 2 August 2024 (UTC)Reply
Template output should always be checked to make sure it produces the desired result.
Per Module:Category described in year/conf (ultimately used by {{Category described in year}}, which was added to Protists described in 1753, Protists described in 1953, and probably other categories, by Snoteleks), the default category tree is "year -> Animals:year -> Animals:century" (I'll add this to the template /doc for more clarity/visibility). There are non-animal trees available, but none that include protists, so a new tree needs to be made in Module:Category described in year/conf. I can do that soon if no one else wants to have a go at it, but I think it's important for editors creating & maintaining categories in this area to become familiar with the template/module.   ~ Tom.Reding (talkdgaf)  19:08, 2 August 2024 (UTC)Reply
@Awkwafaba, Snoteleks, and Leonid Dobrov:   Done   ~ Tom.Reding (talkdgaf)  06:30, 9 August 2024 (UTC)Reply