This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
Any way to get Category:Falkland Islands MLAs 2013–2017 to link to Category:Falkland Islands MLAs 2017–? I'm not sure why with regular elections that the second category doesn't have the 2021, but that's the current situation. Naraht ( talk) 13:24, 8 November 2019 (UTC)
The procedure for general elections, as well as the filling of vacant seats between general elections, is set out in section 32, with the dissolution of the Legislative Assembly being described in section 33. Under these sections, the Governor has the power to dissolve the Legislative Assembly at any time, but there must be a general election within 70 days of the dissolution and a general election must take place at least once every four years. If there is a vacant seat in the Legislative Assembly, under section 32(2), there must be a by-election to fill the empty seat within 70 days of the vacancy occurring (unless a dissolution is due within 126 days).
as long as the duration/range size remains constant, and no years/numbers are irregularly skipped", so if an irregular election happened, it would no longer be suitable for {{ Navseasoncats}}. This is not ideal, of course, but it affects a relatively small # of categories, so I'll look into adding a variable-range search upon not finding the originally expected category based on the last pair's gap & range size. This might add a significant layer of complexity to the module, and/or drastically increase the expensive parser function count, neither of which I'd be willing to do, but I'll certainly entertain the idea for now. In the meantime, a redirect is the best solution. ~ Tom.Reding ( talk ⋅ dgaf) 15:37, 8 November 2019 (UTC)
I looked into doing a variable-range search a few months ago, and it would be fairly complicated to add this functionality, so I'll be unable to do this in the short/medium term. ~ Tom.Reding ( talk ⋅ dgaf) 16:44, 4 March 2020 (UTC)
I tried using this template on Category:2018-related sports lists, but "Function find_var can't find the variable text". [1]
That category is now up for renaming, but the same weakness appears if it is tried on Category:2018-related timelines, where {{ Cat pair}} is still in use instead. – Fayenatic London 09:52, 3 February 2020 (UTC)
I have used category header templates to install Navseasoncats (or {{ Navseasoncats with centuries below decade}} or {{ Navseasoncats with decades below year}}) on hundreds of category series.
In many of those series, thee is a pattern where some (usually recent) periods have closely clustered categories, but other periods (mostly less recent) have bigger and more frequent gaps. That make for a difficult choice between using or not using skip-gaps
. On closely-spaced series, I prefer not to skip, but it's handy to do so on periods with longer spaces ... but and on/off binary choice doesn't help in series which combine both situations.
However, I think that a sensible compromise would be to skip gaps in a given direction when Navseasoncats is isolated in that direction. So if for example Category:Feasts by year had subcats for Cat:1063 feasts, Cat:1065 feasts, Cat:1073 feasts, Cat:1074 feasts, Cat:1076 feasts, Cat:1077 feasts etc, then Navseasoncats used on Cat:1073 feasts would skip the gap on the left between 1065 and 1073.
AFAICS, the Lua module is already identifying this isolation and using that code to populate Category:Navseasoncats isolated. So I hope that it won't be too big a job to use that info to enable gap-skipping on a case-by-case basis.
If there was an option to invoke {{
Category series navigation|skip-gaps=if-isolated}}
or {{
Category series navigation|skip-gaps-if-isolated=yes}}
, then it would help a lot. --
BrownHairedGirl
(talk) • (
contribs) 03:34, 15 March 2020 (UTC)
Where navseasoncats includes links via category redirects, it does not build the links correctly if those redirects nest other templates.
I tried using {{ title decade}} within category redirect. This builds a redirect OK, but navseasoncats does not use it correctly.
I tried
{{Category redirect|{{DECADE|{{title decade}}}} in the Captaincy General of Chile}}
at Category:1780s in Chile, and
{{Category redirect|{{title decade}}s in the Captaincy General of Chile}}
at Category:1790s in Chile, but the result at Category:1831 in Chile now includes:
[[:Category:{{DECADE|1780s]][[:Category:{{title decade|1790s]]
– Fayenatic London 20:50, 26 March 2020 (UTC)
This a just an FYI notification about a small fix.
Ever since I created {{ Navseasoncats with decades below year}} almost 12 months ago, it has had a minor but irritating display glitch. The two rows are aligned to the centre, but if there are boxes floated the right (such as {{ Portal}} and/or {{ Commons category}}), then each box ends up calculating its centre differently ... so they go out of alignment, like in this simulation:
The year{{ Navseasoncats with centuries below decade}} is a separate and more sophisticated tool, built by @ Tom.Reding using Lua, but it had the same glitch.
After a little fiddling, I fixed both templates today, but using a wee CSS kludge which I had developed for Module:IrelandByCountyCatNav. It uses the CSS max-width property to always leave space on the right for the boxes. The widest of those boxes that I have found is 23 em, so my kluge wraps both rows in a CSS block whose max width is always 25em less than the width of the available display section.
<div style="display:block !important; max-width: calc(100% - 25em);>"
Here are the diffs:
Yes, I may be the only who one was bothered by this. -- BrownHairedGirl (talk) • ( contribs) 15:30, 28 March 2020 (UTC)
Wrong action. See Category:Companies that filed for Chapter 11 bankruptcy in 2020. 91.124.169.249 ( talk) 10:47, 30 March 2020 (UTC)
What would be the fix for Category:Playboy Playmates (1953–59) (the next category is Category:Playboy Playmates (1960–1969))? -- Gonnym ( talk) 12:08, 1 April 2020 (UTC)
Is there a way to make the template work and connect Category:Pre-1900 Pacific hurricane seasons and Category:1900s Pacific hurricane seasons? -- Gonnym ( talk) 09:35, 7 April 2020 (UTC)
Module:Navseasoncats was bolding and unlinking the centre item on the second row of navigation with {{ Navseasoncats with decades below year}} and {{ Navseasoncats with centuries below decade}}.
This appeared to have been an effort to emulate the default behavior of the Wikimedia software, which renders an attempted link to the current page as bolded, unliked text. However, the code was un-needed, because if the link is to the title of the current page, the then the Wikimedia software will handle unlinking and bolding it.
So in these two edits( [3] and [4]) I have disabled the code which treated the centre item differently.
So far, the result seems to be fine, but please ping me if any problems are found. -- BrownHairedGirl (talk) • ( contribs) 19:55, 18 August 2020 (UTC)
{{ Navseasoncats}} cleverly handles seasons, but it cannot handle seasons of irregular length. The examples I came across are the subcats of Category:Legislators by term, but there are probably other cases.
To ease the pain of manually creating category navigation for such category series, I have created {{ Irregular navseasoncats}}.
I have deployed it initially on the subcats of Category:Members of the Scottish Parliament by term and the subcats of Category:Members of the Jharkhand Legislative Assembly by term. -- BrownHairedGirl (talk) • ( contribs) 22:01, 28 April 2021 (UTC)
|
|cat= Davis Cup Europe/Africa Zone
{{
Category series navigation|cat=30 Rock (season 3) episodes|list-all-links=yes}}
before I fix it :) ~
Tom.Reding (
talk ⋅
dgaf) 22:36, 13 May 2021 (UTC)
The documentation ("General" note) currently says: for large, permanent gaps between successive categories… use {{ Category pair}} in addition.
An anon editor added {{ Cat pair}} on a large number of pages in Category:Navseasoncats isolated where there are currently large gaps between categories, but I don't think this is what was intended. IMHO the resulting links looked bizarre and unnecessary; navigating by parent categories is better, especially where decades are shown below years. E.g. [5] (already obsolete) or [6]. In the latter case the gaps are quite likely to be longstanding, but I think "permanent" refers to a state of certainty, e.g. a gap between parliamentary terms when there was no parliament.
I reverted some such additions yesterday before I noted that sentence in the documentation, so can we confirm a consensus on this point before I remove more? – Fayenatic London 13:40, 14 May 2021 (UTC)
This section can probably be deleted when solved, but I'm puzzled that Special:WhatLinksHere/Category:Members_of_the_Scottish_Parliament_2021– is not empty after renaming and deleting that category with the missing year. The same applies to N Ireland but not Greece or Ghana out of this set of 4. – Fayenatic London 21:02, 18 July 2021 (UTC)
Per discussion @ Module talk:Navseasoncats with year navigation#What's the plan here?, adding {{ Navseasoncats with decades below year}} & {{ Navseasoncats with centuries below decade}} functionality to the main template by default seems like the smartest course of action. Not only does it obviate the need for those modules, it magnifies their functionality to potentially many more transclusions, with no additional user input. My only concern right now, that I have not yet investigated, is to make sure that all subordinate templates, like those in {{ Creative works chronology category header templates}}, won't have to be modified. I'll leave this here for a bit, as it will take some time & testing to incorporate anyway. ~ Tom.Reding ( talk ⋅ dgaf) 11:33, 20 July 2021 (UTC)
Per a recent discussion/realization, MOS:TOPRESENT is now tracked for compliance ( Category:Navseasoncats range ends (present) (0)) & violation ( Category:Navseasoncats range ends (blank, MOS) (0)), as well as 0-length ranges now being acceptable within a hyphenated series ( Category:Navseasoncats range irregular, 0-length (0)). ~ Tom.Reding ( talk ⋅ dgaf) 13:31, 29 August 2021 (UTC)
Should navseasoncats be able to work on the sub-cats of Category:Engines by cylinder layout, e.g. Nine-cylinder engines, 10-cylinder engines ?
Integers from zero to nine are spelled out in words", and
Integers greater than nine expressible in one or two words may be expressed either in numerals or in words",
Avoid beginning a sentence with a figure".
Generally, in article text". So, for cat names, to me, this all boils down to "use your best judgement", which, to me, means consistency. We don't switch from word to numeral for Thirty-first Dynasty of Egypt, nor Eleventh convocation members of the Verkhovna Rada of the Ukrainian Soviet Socialist Republic, so why for "X-cylinder engines"?
Thank you, Tom.Reding! Your next mission, should you decide to accept it, is to make it work on the sub-cats of Category:Straight engines, which have the number after a word, e.g. Category:Straight-six engines. – Fayenatic London 11:00, 6 October 2021 (UTC)
|skip-gaps=yes
work on
Nine-cylinder engines'. ~
Tom.Reding (
talk ⋅
dgaf) 12:11, 6 October 2021 (UTC)
|skip-gaps=yes
now works on
Nine-cylinder engines via |cat=9-cylinder engines
.|cat=
+ #R only needed for
Straight-twin engines.|skip-gaps=yes
, but right now they are very much the exception and not the rule. ~
Tom.Reding (
talk ⋅
dgaf) 02:18, 16 October 2021 (UTC)
At Category:2020–21 in Scottish women's football, 2021–22 appears twice instead of 2022–23. – Fayenatic London 11:39, 22 September 2021 (UTC)
@ Tom.Reding: Here's an incomplete one, missing the season 2008–09 and those between 2009 and 2014 at Category:2015–16 W-League (Australia). The sequence in Category:A-League Women seasons is so irregular that you needn't beat yourself up if a standard template can't capture it all. – Fayenatic London 08:04, 3 October 2021 (UTC)
<hyph> <hyph> <year> <hyph> <hyph>
- nsc find everything, no matter the starting point.<year> <year> <hyph> <year> <year>
- nsc finds <year>
when starting on <hyph>
, but when starting on <year>
, it needs an #R from <hyph>
to <year>
(similar to a base-change scenario).<year> <year> <year> <hyph> <hyph> <hyph>
- nsc finds all <year>
when starting on <year>
, but needs an #R from the first <hyph>
to <year>
(similar to a base-change scenario). When starting on <hyph>
, nsc should find everything.<year> <hyph> <year> <hyph> <year> <hyph>
- when starting on <year>
, nsc will find all other <year>
, and need #Rs from <hyph>
to <year>
. When starting on <hyph>
, nsc should (w/o any bugs) find everything.nav_year
to find odd <hyph>
, but only for adjacent years (i.e. 2010–11 or 2010–2011, and not 2010–2012). If I can, that would eliminate the need for #Rs in 2, 3, 4.<hyph>
cats don't show up on
2008–09 W-League (Australia) might be b/c the "-" is messing with the regex & needs to be escaped. Will work on this soon. ~
Tom.Reding (
talk ⋅
dgaf) 11:03, 10 October 2021 (UTC)
Following Wikipedia:Categories_for_discussion/Log/2021_August_4#More_pre-indepdendence_"Mexico"_categories and Wikipedia:Categories_for_discussion/Log/2021_September_23#More_pre-independence_Mexico_categories, I used
{{category redirect|{{title year}} in New Spain}}
at
Category:1786 in Mexico. This worked, but caused [[:Category:{{title year|1786]]
to appear in Navseasoncats on
Category:1785_in_Mexico. That one doesn't matter, because that page too will be redirected, but there might be cases at the end of ranges where it would be useful to fix this.
This is a low-priority request. But it is currently showing at Category:1731 in Mexico. – Fayenatic London 17:48, 25 October 2021 (UTC)
@ Tom.Reding: these are finding series before/after the gap, but can't find each other:
It's good enough to add "preceding category", but who knows what wonders you may be able to perform! – Fayenatic London 23:33, 4 November 2021 (UTC)
@ Tom.Reding: I have been asked at bnwiki to help localize the module for them. It's amazing how much work that module does! I'm grinding away with a generic system because I've been asked to do this sort of thing before and often they just need numbers translated to and from English.
You have updated a few comments in the sandbox and I'm pretty sure you want that kept. I would like to tweak a couple of things:
title.new(full, 'Category').exists
with a call to a function so all those tests are in one place. That's needed at bnwiki because I have to translate the title to the local language before testing whether the page exists.Some of the globals are easily fixed but others will require changing the order in which functions are defined. I'll try to make the diffs in the sandbox comprehensible. Is this ok? Any thoughts?
Johnuniq ( talk) 01:02, 26 March 2022 (UTC)
For info, I used {{navseasoncats|cat=18th-century Russian people}} on Category:18th-century people from the Russian Empire and similarly on all of its sub-cats and their C19 siblings. There were already redirects such as Category:18th-century Russian people, which allowed navigation to the Russian Empire categories from C17, C20 & C21. Adding the parameter into navseasoncats for C18 and C19 makes use of these and provides links to all the other centuries, without having to set up redirects at e.g. "21st-century people from the Russian Empire".
This method may be useful for other countries. Category:19th-century Belgian people already links to Habsburg, Spanish and Austrian Netherlands categories, as these correspond closely enough to C16, C17 and C18, but this method has not yet been applied to occupational sub-cats. – Fayenatic London 11:10, 8 October 2022 (UTC)
Hello. Just noticed that the output box is desplayed vertically at Category:Bacteria described in 2019. I don't know what caused this issue and since when it is being shown like this. Thanks. Jeeputer Talk 14:15, 15 January 2023 (UTC)
@ Jeeputer, Primefac, and Liz: has this stopped happening? If so, I'm curious as to when it stopped. As to what caused it, my guess would be either one of the subtemplates changed temporarily, or something possibly farther-back-end than that. No problems for me when visiting those categories for the first time just now, but I'm a little late to the party. ~ Tom.Reding ( talk ⋅ dgaf) 20:27, 12 February 2023 (UTC)
I've modified the sandbox to use Module:List instead of coding it with hlist in the table class. All the tests appear to function appropriate ignoring that change and I'll move this live in the morning.
One concern that I observed that caused a double take was that there is something outputting definition lists in the test cases. This occurs both before and after the sandbox changes I made as well as the live module apparently. I do not know if those are intended to be there in that context. Izno ( talk) 03:55, 28 December 2022 (UTC)
@ Tom.Reding Template:Navseasoncats/testcases#BCE exhibits the issue in the first pair of tests, but I see it in all other tests also.
<h2><span class="mw-headline" id="BCE">BCE</span>...</h2>
<ul>...</ul>
<table class="toccolours" style="text-align: center; margin: auto;">
<tbody><tr>
<td>
<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><div class="hlist">...</div>
</td></tr></tbody></table>
<dl><dd><dl><dd></dd></dl></dd></dl>
Izno ( talk) 18:31, 3 July 2023 (UTC)
@
Tom.Reding: should
Module:Navseasoncats use
Module:Resolve category redirect instead of function rtarget
?
Module:Resolve category redirect is a fork (made by me) of the clever code you wrote in function rtarget
. However,
Module:Resolve category redirect has now diverged a little, with some tweaks I made to reject incompatible characters. Also, the code uses a list of redirects to {{
Category redirect}}, which may need maintenance.
Wouldn't it be better to have the code in just one place? I know it's a bit cheeky of me to suggest that my fork should usurp its parent, but I don't think that two versions of the same code is a great idea. Module:Resolve category redirect has kinda take off, and is no longer the wee niche tool I thought it would be. BrownHairedGirl (talk) • ( contribs) 17:58, 18 June 2023 (UTC)
function rtarget
performs NSC-specific operations in its for-loop that are incompatible with
Module:Resolve category redirect's current functionality - like evaluating {{
Title year}} in {{
Category redirect}}'s parameter, and adding it to a NSC tracking category if that fails. Currently, there's no way to do this with
Module:Resolve category redirect. RCR would have to return a pass/fail flag to be useful in this way, to tell the caller whether it's returning the passed cat because of a failure, or because there's no redirect to follow, and it would have to do this without interfering with RCR's current usage. ~
Tom.Reding (
talk ⋅
dgaf) 13:42, 3 July 2023 (UTC)
The result of the move request was: moved to Template:Category series navigation. This option has at least some level of support from most participants here and is the clear consensus choice. ( closed by non-admin page mover) Elli ( talk | contribs) 03:37, 31 October 2023 (UTC)
"is intended to be a minimal-input, near-universal template for automatically navigating most sequential categories", and only two of the 15 examples immediately following are are for seasons. Thus, the current name violates TMP, which says
"[t]emplate function should be clear from the template name". Of course, the proposed name is longer, but we can use/create redirects as needed .Two other notes. There is also the (current) name of Template:Irregular chronology category navigation, which was previously called Template:Irregular navseasoncats before a WP:BOLDMOVE. There was a previous discussion at Template talk:Navseasoncats/Archive 1#Requested move 25 May 2019, which resulted in no consensus. However, the proposed name at that discussion was overly broad which resulted in a smattering of different suggestions.Pinging participants of that earlier discussion: @ Amakuru, BD2412, Fayenatic london, Gonnym, Marcocapelle, Steel1943, and Tom.Reding. House Blaster talk 00:09, 22 October 2023 (UTC)
Template names are easiest to remember if they follow standard English spelling, spacing, and capitalization. Gonnym ( talk) 09:33, 22 October 2023 (UTC)
not all categories serviced are chronologicalyet they ignore the fact that most of them are not "season" which is in the article title. Gonnym ( talk) 09:36, 22 October 2023 (UTC)
The template finds Category:1995–96 in Federal Republic of Yugoslavia basketball skipping a 3-season gap going forwards from Category:1991–92 in Yugoslav basketball (via redirect Category:1995–96 in Yugoslav basketball). However, it does not work backwards, despite the existence of redirect Category:1991–92 in Federal Republic of Yugoslavia basketball. – Fayenatic London 14:09, 5 December 2023 (UTC)
Also (different problem?), there is no 2001–02 in that series; Category:2000–01 in Federal Republic of Yugoslavia basketball links forward twice to 2002-03, but there is no duplication looking back from Category:2002–03 in Federal Republic of Yugoslavia basketball. – Fayenatic London 14:14, 5 December 2023 (UTC)
nav_hyphen
function has drawn closer the time for incorporating nav_year
into it (or at least mimicking its functionality), so as to carry forward all the bug fixes, idiosyncratic accommodations, and little tweaks made in nav_hyphen
. nav_year
has its own set of improvements that I am anxious that I'll break when drastically changing it (like the recognition of AD/BC/BCE, which nav_hyphen
doesn't have to worry about), which are smaller in number, but apply to the majority of categories (~75%).nav_hyphen
's searching behavior instead of merging functions. I'll have to figure out what the best option is. Balancing greed with simplicity will be important. The goals of either/any option would be to resolve such inconsistencies as in the
Category:2000–01 in European football series, and to allow nav_year
's |skip-gaps=
parameter to be used on hyphenated cats, but without overrunning the expensive parser function count limit (which might limit the range of |skip-gaps=
, and hopefully nothing else, but we'll see), while not breaking anything. ~
Tom.Reding (
talk ⋅
dgaf) 14:48, 19 December 2023 (UTC){{ 2021 wildfires}} includes two links to the next and previous year, without the current year:
Can {{ navseasoncats}} display links in this format, or is there another template that does this? Jarble ( talk) 17:20, 11 October 2023 (UTC)
@ Primefac and Fayenatic london: I see many templates like {{ Earthquakes in 2023}} that include links to the current year, previous year, and following year:
<span class="summary">[[List of earthquakes in 2023|Earthquakes in <span class="dtstart">2023</span>]]</span>
Can we use a template to generate these links, instead of formatting them manually like this? Jarble ( talk) 16:49, 19 December 2023 (UTC)
{{ LaunchesByYear header}} apparently does this, but it's only intended for navboxes about one specific topic. Jarble ( talk) 17:07, 19 December 2023 (UTC)
|2011
in
Template:Orbital launches in 2011. As far as I know it would not be possible to make it parameterless like {{
Category series navigation}}, because the final templates are used on articles that do not contain the year in the page name.I'm trying to refactor some templates like this one that include lists of articles in chronological order. Does {{ Category series navigation}} have an option to generate lists of articles instead of categories, or is there another template that does this? Jarble ( talk) 19:33, 20 December 2023 (UTC)
Is there also an option to generate bulleted lists like the ones in this template? Jarble ( talk) 19:56, 20 December 2023 (UTC)
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
Any way to get Category:Falkland Islands MLAs 2013–2017 to link to Category:Falkland Islands MLAs 2017–? I'm not sure why with regular elections that the second category doesn't have the 2021, but that's the current situation. Naraht ( talk) 13:24, 8 November 2019 (UTC)
The procedure for general elections, as well as the filling of vacant seats between general elections, is set out in section 32, with the dissolution of the Legislative Assembly being described in section 33. Under these sections, the Governor has the power to dissolve the Legislative Assembly at any time, but there must be a general election within 70 days of the dissolution and a general election must take place at least once every four years. If there is a vacant seat in the Legislative Assembly, under section 32(2), there must be a by-election to fill the empty seat within 70 days of the vacancy occurring (unless a dissolution is due within 126 days).
as long as the duration/range size remains constant, and no years/numbers are irregularly skipped", so if an irregular election happened, it would no longer be suitable for {{ Navseasoncats}}. This is not ideal, of course, but it affects a relatively small # of categories, so I'll look into adding a variable-range search upon not finding the originally expected category based on the last pair's gap & range size. This might add a significant layer of complexity to the module, and/or drastically increase the expensive parser function count, neither of which I'd be willing to do, but I'll certainly entertain the idea for now. In the meantime, a redirect is the best solution. ~ Tom.Reding ( talk ⋅ dgaf) 15:37, 8 November 2019 (UTC)
I looked into doing a variable-range search a few months ago, and it would be fairly complicated to add this functionality, so I'll be unable to do this in the short/medium term. ~ Tom.Reding ( talk ⋅ dgaf) 16:44, 4 March 2020 (UTC)
I tried using this template on Category:2018-related sports lists, but "Function find_var can't find the variable text". [1]
That category is now up for renaming, but the same weakness appears if it is tried on Category:2018-related timelines, where {{ Cat pair}} is still in use instead. – Fayenatic London 09:52, 3 February 2020 (UTC)
I have used category header templates to install Navseasoncats (or {{ Navseasoncats with centuries below decade}} or {{ Navseasoncats with decades below year}}) on hundreds of category series.
In many of those series, thee is a pattern where some (usually recent) periods have closely clustered categories, but other periods (mostly less recent) have bigger and more frequent gaps. That make for a difficult choice between using or not using skip-gaps
. On closely-spaced series, I prefer not to skip, but it's handy to do so on periods with longer spaces ... but and on/off binary choice doesn't help in series which combine both situations.
However, I think that a sensible compromise would be to skip gaps in a given direction when Navseasoncats is isolated in that direction. So if for example Category:Feasts by year had subcats for Cat:1063 feasts, Cat:1065 feasts, Cat:1073 feasts, Cat:1074 feasts, Cat:1076 feasts, Cat:1077 feasts etc, then Navseasoncats used on Cat:1073 feasts would skip the gap on the left between 1065 and 1073.
AFAICS, the Lua module is already identifying this isolation and using that code to populate Category:Navseasoncats isolated. So I hope that it won't be too big a job to use that info to enable gap-skipping on a case-by-case basis.
If there was an option to invoke {{
Category series navigation|skip-gaps=if-isolated}}
or {{
Category series navigation|skip-gaps-if-isolated=yes}}
, then it would help a lot. --
BrownHairedGirl
(talk) • (
contribs) 03:34, 15 March 2020 (UTC)
Where navseasoncats includes links via category redirects, it does not build the links correctly if those redirects nest other templates.
I tried using {{ title decade}} within category redirect. This builds a redirect OK, but navseasoncats does not use it correctly.
I tried
{{Category redirect|{{DECADE|{{title decade}}}} in the Captaincy General of Chile}}
at Category:1780s in Chile, and
{{Category redirect|{{title decade}}s in the Captaincy General of Chile}}
at Category:1790s in Chile, but the result at Category:1831 in Chile now includes:
[[:Category:{{DECADE|1780s]][[:Category:{{title decade|1790s]]
– Fayenatic London 20:50, 26 March 2020 (UTC)
This a just an FYI notification about a small fix.
Ever since I created {{ Navseasoncats with decades below year}} almost 12 months ago, it has had a minor but irritating display glitch. The two rows are aligned to the centre, but if there are boxes floated the right (such as {{ Portal}} and/or {{ Commons category}}), then each box ends up calculating its centre differently ... so they go out of alignment, like in this simulation:
The year{{ Navseasoncats with centuries below decade}} is a separate and more sophisticated tool, built by @ Tom.Reding using Lua, but it had the same glitch.
After a little fiddling, I fixed both templates today, but using a wee CSS kludge which I had developed for Module:IrelandByCountyCatNav. It uses the CSS max-width property to always leave space on the right for the boxes. The widest of those boxes that I have found is 23 em, so my kluge wraps both rows in a CSS block whose max width is always 25em less than the width of the available display section.
<div style="display:block !important; max-width: calc(100% - 25em);>"
Here are the diffs:
Yes, I may be the only who one was bothered by this. -- BrownHairedGirl (talk) • ( contribs) 15:30, 28 March 2020 (UTC)
Wrong action. See Category:Companies that filed for Chapter 11 bankruptcy in 2020. 91.124.169.249 ( talk) 10:47, 30 March 2020 (UTC)
What would be the fix for Category:Playboy Playmates (1953–59) (the next category is Category:Playboy Playmates (1960–1969))? -- Gonnym ( talk) 12:08, 1 April 2020 (UTC)
Is there a way to make the template work and connect Category:Pre-1900 Pacific hurricane seasons and Category:1900s Pacific hurricane seasons? -- Gonnym ( talk) 09:35, 7 April 2020 (UTC)
Module:Navseasoncats was bolding and unlinking the centre item on the second row of navigation with {{ Navseasoncats with decades below year}} and {{ Navseasoncats with centuries below decade}}.
This appeared to have been an effort to emulate the default behavior of the Wikimedia software, which renders an attempted link to the current page as bolded, unliked text. However, the code was un-needed, because if the link is to the title of the current page, the then the Wikimedia software will handle unlinking and bolding it.
So in these two edits( [3] and [4]) I have disabled the code which treated the centre item differently.
So far, the result seems to be fine, but please ping me if any problems are found. -- BrownHairedGirl (talk) • ( contribs) 19:55, 18 August 2020 (UTC)
{{ Navseasoncats}} cleverly handles seasons, but it cannot handle seasons of irregular length. The examples I came across are the subcats of Category:Legislators by term, but there are probably other cases.
To ease the pain of manually creating category navigation for such category series, I have created {{ Irregular navseasoncats}}.
I have deployed it initially on the subcats of Category:Members of the Scottish Parliament by term and the subcats of Category:Members of the Jharkhand Legislative Assembly by term. -- BrownHairedGirl (talk) • ( contribs) 22:01, 28 April 2021 (UTC)
|
|cat= Davis Cup Europe/Africa Zone
{{
Category series navigation|cat=30 Rock (season 3) episodes|list-all-links=yes}}
before I fix it :) ~
Tom.Reding (
talk ⋅
dgaf) 22:36, 13 May 2021 (UTC)
The documentation ("General" note) currently says: for large, permanent gaps between successive categories… use {{ Category pair}} in addition.
An anon editor added {{ Cat pair}} on a large number of pages in Category:Navseasoncats isolated where there are currently large gaps between categories, but I don't think this is what was intended. IMHO the resulting links looked bizarre and unnecessary; navigating by parent categories is better, especially where decades are shown below years. E.g. [5] (already obsolete) or [6]. In the latter case the gaps are quite likely to be longstanding, but I think "permanent" refers to a state of certainty, e.g. a gap between parliamentary terms when there was no parliament.
I reverted some such additions yesterday before I noted that sentence in the documentation, so can we confirm a consensus on this point before I remove more? – Fayenatic London 13:40, 14 May 2021 (UTC)
This section can probably be deleted when solved, but I'm puzzled that Special:WhatLinksHere/Category:Members_of_the_Scottish_Parliament_2021– is not empty after renaming and deleting that category with the missing year. The same applies to N Ireland but not Greece or Ghana out of this set of 4. – Fayenatic London 21:02, 18 July 2021 (UTC)
Per discussion @ Module talk:Navseasoncats with year navigation#What's the plan here?, adding {{ Navseasoncats with decades below year}} & {{ Navseasoncats with centuries below decade}} functionality to the main template by default seems like the smartest course of action. Not only does it obviate the need for those modules, it magnifies their functionality to potentially many more transclusions, with no additional user input. My only concern right now, that I have not yet investigated, is to make sure that all subordinate templates, like those in {{ Creative works chronology category header templates}}, won't have to be modified. I'll leave this here for a bit, as it will take some time & testing to incorporate anyway. ~ Tom.Reding ( talk ⋅ dgaf) 11:33, 20 July 2021 (UTC)
Per a recent discussion/realization, MOS:TOPRESENT is now tracked for compliance ( Category:Navseasoncats range ends (present) (0)) & violation ( Category:Navseasoncats range ends (blank, MOS) (0)), as well as 0-length ranges now being acceptable within a hyphenated series ( Category:Navseasoncats range irregular, 0-length (0)). ~ Tom.Reding ( talk ⋅ dgaf) 13:31, 29 August 2021 (UTC)
Should navseasoncats be able to work on the sub-cats of Category:Engines by cylinder layout, e.g. Nine-cylinder engines, 10-cylinder engines ?
Integers from zero to nine are spelled out in words", and
Integers greater than nine expressible in one or two words may be expressed either in numerals or in words",
Avoid beginning a sentence with a figure".
Generally, in article text". So, for cat names, to me, this all boils down to "use your best judgement", which, to me, means consistency. We don't switch from word to numeral for Thirty-first Dynasty of Egypt, nor Eleventh convocation members of the Verkhovna Rada of the Ukrainian Soviet Socialist Republic, so why for "X-cylinder engines"?
Thank you, Tom.Reding! Your next mission, should you decide to accept it, is to make it work on the sub-cats of Category:Straight engines, which have the number after a word, e.g. Category:Straight-six engines. – Fayenatic London 11:00, 6 October 2021 (UTC)
|skip-gaps=yes
work on
Nine-cylinder engines'. ~
Tom.Reding (
talk ⋅
dgaf) 12:11, 6 October 2021 (UTC)
|skip-gaps=yes
now works on
Nine-cylinder engines via |cat=9-cylinder engines
.|cat=
+ #R only needed for
Straight-twin engines.|skip-gaps=yes
, but right now they are very much the exception and not the rule. ~
Tom.Reding (
talk ⋅
dgaf) 02:18, 16 October 2021 (UTC)
At Category:2020–21 in Scottish women's football, 2021–22 appears twice instead of 2022–23. – Fayenatic London 11:39, 22 September 2021 (UTC)
@ Tom.Reding: Here's an incomplete one, missing the season 2008–09 and those between 2009 and 2014 at Category:2015–16 W-League (Australia). The sequence in Category:A-League Women seasons is so irregular that you needn't beat yourself up if a standard template can't capture it all. – Fayenatic London 08:04, 3 October 2021 (UTC)
<hyph> <hyph> <year> <hyph> <hyph>
- nsc find everything, no matter the starting point.<year> <year> <hyph> <year> <year>
- nsc finds <year>
when starting on <hyph>
, but when starting on <year>
, it needs an #R from <hyph>
to <year>
(similar to a base-change scenario).<year> <year> <year> <hyph> <hyph> <hyph>
- nsc finds all <year>
when starting on <year>
, but needs an #R from the first <hyph>
to <year>
(similar to a base-change scenario). When starting on <hyph>
, nsc should find everything.<year> <hyph> <year> <hyph> <year> <hyph>
- when starting on <year>
, nsc will find all other <year>
, and need #Rs from <hyph>
to <year>
. When starting on <hyph>
, nsc should (w/o any bugs) find everything.nav_year
to find odd <hyph>
, but only for adjacent years (i.e. 2010–11 or 2010–2011, and not 2010–2012). If I can, that would eliminate the need for #Rs in 2, 3, 4.<hyph>
cats don't show up on
2008–09 W-League (Australia) might be b/c the "-" is messing with the regex & needs to be escaped. Will work on this soon. ~
Tom.Reding (
talk ⋅
dgaf) 11:03, 10 October 2021 (UTC)
Following Wikipedia:Categories_for_discussion/Log/2021_August_4#More_pre-indepdendence_"Mexico"_categories and Wikipedia:Categories_for_discussion/Log/2021_September_23#More_pre-independence_Mexico_categories, I used
{{category redirect|{{title year}} in New Spain}}
at
Category:1786 in Mexico. This worked, but caused [[:Category:{{title year|1786]]
to appear in Navseasoncats on
Category:1785_in_Mexico. That one doesn't matter, because that page too will be redirected, but there might be cases at the end of ranges where it would be useful to fix this.
This is a low-priority request. But it is currently showing at Category:1731 in Mexico. – Fayenatic London 17:48, 25 October 2021 (UTC)
@ Tom.Reding: these are finding series before/after the gap, but can't find each other:
It's good enough to add "preceding category", but who knows what wonders you may be able to perform! – Fayenatic London 23:33, 4 November 2021 (UTC)
@ Tom.Reding: I have been asked at bnwiki to help localize the module for them. It's amazing how much work that module does! I'm grinding away with a generic system because I've been asked to do this sort of thing before and often they just need numbers translated to and from English.
You have updated a few comments in the sandbox and I'm pretty sure you want that kept. I would like to tweak a couple of things:
title.new(full, 'Category').exists
with a call to a function so all those tests are in one place. That's needed at bnwiki because I have to translate the title to the local language before testing whether the page exists.Some of the globals are easily fixed but others will require changing the order in which functions are defined. I'll try to make the diffs in the sandbox comprehensible. Is this ok? Any thoughts?
Johnuniq ( talk) 01:02, 26 March 2022 (UTC)
For info, I used {{navseasoncats|cat=18th-century Russian people}} on Category:18th-century people from the Russian Empire and similarly on all of its sub-cats and their C19 siblings. There were already redirects such as Category:18th-century Russian people, which allowed navigation to the Russian Empire categories from C17, C20 & C21. Adding the parameter into navseasoncats for C18 and C19 makes use of these and provides links to all the other centuries, without having to set up redirects at e.g. "21st-century people from the Russian Empire".
This method may be useful for other countries. Category:19th-century Belgian people already links to Habsburg, Spanish and Austrian Netherlands categories, as these correspond closely enough to C16, C17 and C18, but this method has not yet been applied to occupational sub-cats. – Fayenatic London 11:10, 8 October 2022 (UTC)
Hello. Just noticed that the output box is desplayed vertically at Category:Bacteria described in 2019. I don't know what caused this issue and since when it is being shown like this. Thanks. Jeeputer Talk 14:15, 15 January 2023 (UTC)
@ Jeeputer, Primefac, and Liz: has this stopped happening? If so, I'm curious as to when it stopped. As to what caused it, my guess would be either one of the subtemplates changed temporarily, or something possibly farther-back-end than that. No problems for me when visiting those categories for the first time just now, but I'm a little late to the party. ~ Tom.Reding ( talk ⋅ dgaf) 20:27, 12 February 2023 (UTC)
I've modified the sandbox to use Module:List instead of coding it with hlist in the table class. All the tests appear to function appropriate ignoring that change and I'll move this live in the morning.
One concern that I observed that caused a double take was that there is something outputting definition lists in the test cases. This occurs both before and after the sandbox changes I made as well as the live module apparently. I do not know if those are intended to be there in that context. Izno ( talk) 03:55, 28 December 2022 (UTC)
@ Tom.Reding Template:Navseasoncats/testcases#BCE exhibits the issue in the first pair of tests, but I see it in all other tests also.
<h2><span class="mw-headline" id="BCE">BCE</span>...</h2>
<ul>...</ul>
<table class="toccolours" style="text-align: center; margin: auto;">
<tbody><tr>
<td>
<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><div class="hlist">...</div>
</td></tr></tbody></table>
<dl><dd><dl><dd></dd></dl></dd></dl>
Izno ( talk) 18:31, 3 July 2023 (UTC)
@
Tom.Reding: should
Module:Navseasoncats use
Module:Resolve category redirect instead of function rtarget
?
Module:Resolve category redirect is a fork (made by me) of the clever code you wrote in function rtarget
. However,
Module:Resolve category redirect has now diverged a little, with some tweaks I made to reject incompatible characters. Also, the code uses a list of redirects to {{
Category redirect}}, which may need maintenance.
Wouldn't it be better to have the code in just one place? I know it's a bit cheeky of me to suggest that my fork should usurp its parent, but I don't think that two versions of the same code is a great idea. Module:Resolve category redirect has kinda take off, and is no longer the wee niche tool I thought it would be. BrownHairedGirl (talk) • ( contribs) 17:58, 18 June 2023 (UTC)
function rtarget
performs NSC-specific operations in its for-loop that are incompatible with
Module:Resolve category redirect's current functionality - like evaluating {{
Title year}} in {{
Category redirect}}'s parameter, and adding it to a NSC tracking category if that fails. Currently, there's no way to do this with
Module:Resolve category redirect. RCR would have to return a pass/fail flag to be useful in this way, to tell the caller whether it's returning the passed cat because of a failure, or because there's no redirect to follow, and it would have to do this without interfering with RCR's current usage. ~
Tom.Reding (
talk ⋅
dgaf) 13:42, 3 July 2023 (UTC)
The result of the move request was: moved to Template:Category series navigation. This option has at least some level of support from most participants here and is the clear consensus choice. ( closed by non-admin page mover) Elli ( talk | contribs) 03:37, 31 October 2023 (UTC)
"is intended to be a minimal-input, near-universal template for automatically navigating most sequential categories", and only two of the 15 examples immediately following are are for seasons. Thus, the current name violates TMP, which says
"[t]emplate function should be clear from the template name". Of course, the proposed name is longer, but we can use/create redirects as needed .Two other notes. There is also the (current) name of Template:Irregular chronology category navigation, which was previously called Template:Irregular navseasoncats before a WP:BOLDMOVE. There was a previous discussion at Template talk:Navseasoncats/Archive 1#Requested move 25 May 2019, which resulted in no consensus. However, the proposed name at that discussion was overly broad which resulted in a smattering of different suggestions.Pinging participants of that earlier discussion: @ Amakuru, BD2412, Fayenatic london, Gonnym, Marcocapelle, Steel1943, and Tom.Reding. House Blaster talk 00:09, 22 October 2023 (UTC)
Template names are easiest to remember if they follow standard English spelling, spacing, and capitalization. Gonnym ( talk) 09:33, 22 October 2023 (UTC)
not all categories serviced are chronologicalyet they ignore the fact that most of them are not "season" which is in the article title. Gonnym ( talk) 09:36, 22 October 2023 (UTC)
The template finds Category:1995–96 in Federal Republic of Yugoslavia basketball skipping a 3-season gap going forwards from Category:1991–92 in Yugoslav basketball (via redirect Category:1995–96 in Yugoslav basketball). However, it does not work backwards, despite the existence of redirect Category:1991–92 in Federal Republic of Yugoslavia basketball. – Fayenatic London 14:09, 5 December 2023 (UTC)
Also (different problem?), there is no 2001–02 in that series; Category:2000–01 in Federal Republic of Yugoslavia basketball links forward twice to 2002-03, but there is no duplication looking back from Category:2002–03 in Federal Republic of Yugoslavia basketball. – Fayenatic London 14:14, 5 December 2023 (UTC)
nav_hyphen
function has drawn closer the time for incorporating nav_year
into it (or at least mimicking its functionality), so as to carry forward all the bug fixes, idiosyncratic accommodations, and little tweaks made in nav_hyphen
. nav_year
has its own set of improvements that I am anxious that I'll break when drastically changing it (like the recognition of AD/BC/BCE, which nav_hyphen
doesn't have to worry about), which are smaller in number, but apply to the majority of categories (~75%).nav_hyphen
's searching behavior instead of merging functions. I'll have to figure out what the best option is. Balancing greed with simplicity will be important. The goals of either/any option would be to resolve such inconsistencies as in the
Category:2000–01 in European football series, and to allow nav_year
's |skip-gaps=
parameter to be used on hyphenated cats, but without overrunning the expensive parser function count limit (which might limit the range of |skip-gaps=
, and hopefully nothing else, but we'll see), while not breaking anything. ~
Tom.Reding (
talk ⋅
dgaf) 14:48, 19 December 2023 (UTC){{ 2021 wildfires}} includes two links to the next and previous year, without the current year:
Can {{ navseasoncats}} display links in this format, or is there another template that does this? Jarble ( talk) 17:20, 11 October 2023 (UTC)
@ Primefac and Fayenatic london: I see many templates like {{ Earthquakes in 2023}} that include links to the current year, previous year, and following year:
<span class="summary">[[List of earthquakes in 2023|Earthquakes in <span class="dtstart">2023</span>]]</span>
Can we use a template to generate these links, instead of formatting them manually like this? Jarble ( talk) 16:49, 19 December 2023 (UTC)
{{ LaunchesByYear header}} apparently does this, but it's only intended for navboxes about one specific topic. Jarble ( talk) 17:07, 19 December 2023 (UTC)
|2011
in
Template:Orbital launches in 2011. As far as I know it would not be possible to make it parameterless like {{
Category series navigation}}, because the final templates are used on articles that do not contain the year in the page name.I'm trying to refactor some templates like this one that include lists of articles in chronological order. Does {{ Category series navigation}} have an option to generate lists of articles instead of categories, or is there another template that does this? Jarble ( talk) 19:33, 20 December 2023 (UTC)
Is there also an option to generate bulleted lists like the ones in this template? Jarble ( talk) 19:56, 20 December 2023 (UTC)