Jump to content

Template talk:Navseasoncats with decades below year

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Parameters vs Navseasoncats with centuries below decade[edit]

Hey, I was wondering if there was a reason why this template requires parameters, while {{Navseasoncats with centuries below decade}} doesn't. If the other template can figure out the links for a category titled "2000s in television", I don't really see how this one can't as well. --Gonnym (talk) 18:12, 9 March 2020 (UTC)[reply]

@Gonnym: it's 'cos I created this template as a crude mashup using an earlier incarnation of Module:Navseasoncats, but {{Navseasoncats with centuries below decade}} was created later by Tom.Reding, using the magic of Lua.
I came here to ask Tom.Reding if he might be able to use apply his Lua magic to make this one parameterless, but I see that Gonnym beat me to it. Tom, I know you are busy, but if you could squeeze this in to your worklist, it would be a very valauble improvement to over 120,000 pages.. --BrownHairedGirl (talk) • (contribs) 17:37, 10 March 2020 (UTC)[reply]
@BrownHairedGirl and Gonnym: sure - I think that's a good idea.   ~ Tom.Reding (talkdgaf)  18:03, 10 March 2020 (UTC)[reply]
Thanks both. Much appreciated. --Gonnym (talk) 18:05, 10 March 2020 (UTC)[reply]

Changes in text between year and decade categories[edit]

@Tom.Reding and BrownHairedGirl: it would be particularly neat to use this category for such as Category:1950 Pacific typhoon season, where there is a transition from decade categories pre-1950 to years thereafter.

However, a tweak would be required to the template, because the decade categories use "seasons" rather than "season". – Fayenatic London 16:46, 6 April 2020 (UTC)[reply]

@Fayenatic why not create e.g. Category:1950s Pacific typhoon season as {{Category redirect|Category:1950s Pacific typhoon seasons}}, and use {{Navseasoncats with decades below year}}? --BrownHairedGirl (talk) • (contribs) 16:51, 6 April 2020 (UTC)[reply]
Good idea, except that it's Category:1940s Pacific typhoon season that would be needed.
I tried it on Category:1950 Pacific typhoon season, and it doesn't generate the decade row. Maybe this template does not yet make use of redirects? – Fayenatic London 17:01, 6 April 2020 (UTC)[reply]
@Fayenatic, it tests for existence of current decade ... which you have not created. --BrownHairedGirl (talk) • (contribs) 17:02, 6 April 2020 (UTC)[reply]
Aha, that's a trick... we'd also have to create and populate Category:1950s Pacific typhoon seasons with the ten individual season categories.
Well, the above turns out to be a bad example anyway because there's only one decade category. It might be worth building the structure for Atlantic and Pacific hurricane s. (See [1] for a list of decade categories.) – Fayenatic London 17:20, 6 April 2020 (UTC)[reply]
OK, it works on Category:1950 Pacific hurricane season, but it's quite a lot of work to build it that way. – Fayenatic London 22:30, 6 April 2020 (UTC)[reply]

Parent decade not clickable[edit]

In the row of decade categories, the parent decade is bold and not clickable, just like the "current" year in the top row. This is because of the neat shortcut of using navseasoncats again for the decade.

The result is particularly inconvenient where there is a six-year gap so that the next existing year category does not appear in the template, e.g. between Category:1970 in the Moldavian Soviet Socialist Republic and Category:1976 in the Moldavian Soviet Socialist Republic. To navigate between these requires three clicks, forward to 1980s then back to 1970s then down to the year.

Such cases aside, I think it would be worth the effort to make the parent decade clickable anyway. – Fayenatic London 10:14, 16 June 2020 (UTC)[reply]