MediaWiki talk:Gadget-HotCat.js
This script, HotCat, is a JavaScript gadget which can be enabled or disabled in your Preferences. The documentation page is located at Help:Gadget-HotCat. |
i18n | Gadget translations:
|
Threads older than 180 days days may be archived. |
Adds 10+ seconds of load time to Wikitionary pages
[edit]When I open Wiktionary in Chrome on a definition such as goose when I'm logged in with HotCat enabled, there's a good 10+ seconds after I open the page where I can't click on any links. Opening up the Performance tab in the Dev Tools I can see that it's running find_category for literally 10.8 seconds, the last call in the call graph is en_wiktionary_category_name_detect twice for 5 seconds each. Disabling HotCat fixes the issue. Akeosnhaoe (talk) 20:28, 6 February 2024 (UTC)
Feature request: Ignore square brackets
[edit]If a user enters (e.g. by pasting from the clipboard) [[Category:Foobar]]
, HotCat should understand this as intended to be Foobar
(as it does when the user enters Category:Foobar
). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:07, 8 February 2024 (UTC)
- Support Marsupium (talk) 01:15, 16 February 2024 (UTC)
- i think the code to change is probably the part from line 991. RZuo (talk) 07:34, 16 February 2024 (UTC)
- This feature is great to insert multiple categories at once via HotCat.
- inserting
England]][[Category:France]][[Category:Belgium
leads to all three categories inserted in one swoop, without needing to go to the confirmation window. --Enyavar (talk) 10:47, 22 June 2024 (UTC)
Where is the category bar?
[edit]The instructions state, "It augments the category bar". Where is the category bar? (Be gentle, please -- I'm having a bad day. :-) SCHolar44 (talk) 06:24, 21 February 2024 (UTC)
- for example. RZuo (talk) 09:10, 21 February 2024 (UTC)
Support for Timeless Skin
[edit]HotCat doesn't seem to work at all on the Timeless skin. Since it's one of the official skins offered for Wikis, it should be supported. It's annoying when I want to use HotCat and have to switch back to Vector to use it and I don't think it would be that hard to implement. 128.82.20.2 20:59, 5 March 2024 (UTC)
- As a point of information, Timeless isn't an officially-supported skin; Vector 2010, Vector 2022, and Minerva are the only supported skins. Jdforrester (WMF) (talk) 21:15, 5 March 2024 (UTC)
- I'm not sure if you are the maintainer of HotCat (or if there is even such a thing as a maintainer for these types of add-ons), but it might be helpful to add the skin-dependency to the introductory documentation. Also, apologies if that is written somewhere and I missed it. Thank you. Pdanese (talk) 14:49, 17 April 2024 (UTC)
- If you are the administrator of your wiki, you can add a CSS definition to MediaWiki:Gadgets-definition (
* HotCat[ResourceLoader]|HotCat.js|HotCat.css
), which at least makes the hidden #catlinks visible again. This way you can at least work with HotCat. The CSS should be similar to the following:@media screen and (min-width: 1340px){ #catlinks { display: block; } }
. Andreas () 12:32, 3 July 2024 (UTC)
Keyboard shortcut (accessKey) for "Save" button?
[edit]Hi, when using HotCat heavily, it's a little bit fiddly to switch between mouse and keyboard. This is required when you've to use the "Save" button. Thus, it would be great if that button would have an accessKey property assigned (maybe this is possible client-side, but i don't know how...). TIA! Fl.schmitt (talk) 11:49, 29 March 2024 (UTC)
Could a warning popup appear when adding a DAB cat while using HotCat?
[edit]The problem: If you try to add a Disambiguation category (DAB category) to a file or category using HotCat, you cannot see that it is a DAB category. It is undesirable to have files or categories in DAB categories. So a lot of DAB categories have files and/or subcategories, see Category:Non-empty disambiguation categories (not only due to HotCat). This problem is being discussed on Commons:Village pump#How to make a structural solution for not empty disambigious pages?, issue 2.
Possible solution: If you try to add a DAB cat via the edit tab, a warning pop-up appears. Could such a warning pop-up also appear when you try to add a DAB cat via HotCat? JopkeB (talk) 04:55, 20 October 2022 (UTC)
- Yes, it’s technically possible. The question is only whether there will be someone who implements it. 🙂 —Tacsipacsi (talk) 22:11, 20 October 2022 (UTC)
- How can we reach people who might implement this request? JopkeB (talk) 04:27, 21 October 2022 (UTC)
I have made a proposal on the Wishlist 2023, see meta:Community Wishlist Survey 2023/Multimedia and Commons#A warning popup when adding a DAB cat while using HotCat. --JopkeB (talk) 05:25, 25 January 2023 (UTC)
- we actually dont need a warning.--RZuo (talk) 19:55, 20 March 2023 (UTC)
- RZuo: Why do we not need a warning? It happens to me regularly that I add unintentionally a DAB category using HotCat, and many more editors do so. I would like to prevent that from happening. --JopkeB (talk) 05:28, 21 March 2023 (UTC)
Administrators: Please apply <nowiki> or {{Tl}} to the tag after the request is fulfilled.
- change line 87 to
disambig_category: 'Disambiguation categories',
- because some jokers did these without announcing them to the whole commons community https://commons.wikimedia.org/w/index.php?title=Template:Disambig&diff=prev&oldid=582141057 https://commons.wikimedia.org/w/index.php?diff=582136498 . RZuo (talk) 19:55, 20 March 2023 (UTC)
- @Jon (WMF) could you please help with changing line 87? thx! RZuo (talk) 08:12, 21 May 2023 (UTC)
- I’ll try to summarize the status of this edit request as I understand it:
- HotCat has a feature to warn when adding categories that are marked as disambiguation categories.
- The feature, I assume, used to work as intended (and as requested above) on Commons.
- Later, Category:Disambiguation categories was split off from Category:Disambiguation on Commons, which broke the feature.
- For a while, nobody realized this had happened.
- People started to realize again that this would be a useful feature to have; this edit request was made, and eventually even added to the community wishlist survey, without (apparently?) anybody realizing (or at least mentioning) that the feature already existed and used to work.
- Either Category:Disambiguation categories needs to be merged back into Category:Disambiguation on Commons, or HotCat needs to use Category:Disambiguation categories rather than Category:Disambiguation as the marker category on Commons.
- “On Commons” is a key phrase in that last bullet point – I assume that we should not change this on other wikis. But I don’t understand the HotCat config system well enough to judge whether the edit suggested by RZuo would have that effect or not; therefore, I won’t be applying this edit request at this time. But I hope that this clarification enables some other interface admin more familiar with HotCat to fix the situation. Lucas Werkmeister (talk) 20:54, 5 November 2023 (UTC)
- @Lucas Werkmeister they always have localised settings "on other wikis", because except enwp all others dont write in english. for example, Category:Disambiguation pages (Q1982926).
- line 42 Localize these messages to the main language of your wiki.
- lines 83-85 are the instructions for disambig_category.
- disambig_category is used only in lines 991 and 997. i assume that's the part of the dab functionality. RZuo (talk) 21:04, 5 November 2023 (UTC)
- I’ll try to summarize the status of this edit request as I understand it:
- (Resurrected from the archive because we really shouldn’t have archive pages in the edit request category. I’ll try to look into this later and see if the edit request can be fulfilled or not.) --Lucas Werkmeister (talk) 19:41, 9 May 2024 (UTC)
no leading ":"
[edit]Sometimes I mess up copy and paste and the category name is preceded by ":". This leads to Hotcat adding categories like [[:Category::Samples]] instead of Category:Samples (diff) Mediawiki doesn't even render them as categories.
Ideally, HotCat would strip leading ":" from category names directly. Enhancing999 (talk) 08:03, 17 May 2024 (UTC)
"New key" edit summary
[edit]When you add or change a sortkey for a single category using HotCat, this is reflected in the edit summary as new key for Category:X: "N, N". But when you change sortkeys for multiple categories, this results in a category-change type of summary: ±Category:X; ±Category:Y.
It would be neat if the latter case could result in more accurate edit summaries, but this obviously isn't a very pressing matter. Sinigh (talk) 12:48, 1 June 2024 (UTC)
Minor bug report
[edit]Thank you so much for maintaining HotCat. It saves a lot of time when categorizing pages.
I noticed that HotCat tries to re-format the <noinclude></noinclude>
tags it encounters. However, there's a minor glitch: HotCat adds an extra space after the opening tag during said re-formatting. Example edit: en:Special:Diff/1228393712.
Before, all in one line:
}}<noinclude>[[Category:Userboxes|Human]]</noinclude>
After, split over three lines, with placeholder ␣
instead of the space for demonstration purposes:
}}<noinclude>␣
[[Category:Human life user templates|Human]]
</noinclude>
—andrybak (talk) 00:35, 11 June 2024 (UTC)
User Categories with HotCat?
[edit]Is it possible to use user categories with HotCat?
Any advice/guidance, suggestions, or best practices?
--CmdrDan (talk) 20:30, 15 June 2024 (UTC)
- HotCat is agnostic to whether a category is a topic, a user or a technical category, as long as it’s defined directly on the page (not by a transcluded template), so I don’t think any specific guidance or best practices are required – the same applies to HotCat as to adding/changing the category manually. —Tacsipacsi (talk) 13:42, 16 June 2024 (UTC)
- This also includes hidden categories, which can also be added via HotCat. So yes, this is no problem. --Enyavar (talk) 10:54, 22 June 2024 (UTC)
Phabricator ticket T367888
[edit]Hi, after the village pump advised me to go to Phabricator with my bug, a user over there advised me to come here. I don't want to re-write and re-formulate, so please see the full description in ticket T367888: Category options past the top frame of the Commons window are non-clickable.
Thanks. --Enyavar (talk) 10:54, 22 June 2024 (UTC)
HotCat randomly dropping the first addition when adding categories
[edit]On enwiki, HotCat is now sometimes dropping the first category when adding several new categories to a page. I encountered this first at en:ISO-IR-200 when adding the language categories. I don't know if this is related to adding a single new category randomly failing. –LaundryPizza03 (dc̄) 07:16, 14 July 2024 (UTC)