Module talk:category tree

Prenouns
Hey,, could we add to Module:category tree/poscatboiler/data/lemmas? I need it for Category:Munsee prenouns, to start. -- 03:54, 12 January 2019 (UTC)
 * Draft. I'm not familiar with the term so I just paraphrased Wikipedia. I assume they would be under "prefixes". — Eru·tuon 04:05, 12 January 2019 (UTC)


 * Yeah, looks fine to me, thanks. -- 04:25, 12 January 2019 (UTC)
 * , for some reason I thought that page was locked out for me, which it isn't, so I just went and added it myself. Thanks. -- 04:33, 12 January 2019 (UTC)
 * @Erutuon@Victar@ 223.180.177.149 13:59, 28 January 2024 (UTC)
 * Why are you pinging us? — Eru·tuon 20:09, 28 January 2024 (UTC)

Code for automatically linking categories to Wikipedia articles
Most category tree categories do not have a link to the corresponding Wikipedia article, though 99% could. In my fork (which integrates Wikipedia and Wiktionary) I've automatically linked such categories to Wikipedia articles by adding a  to their data. (I've also linked back by categorizing the non-language topic into the .) Finally, I've added an editnotice to explain all topic data parameters - because that's the most heavily used one by me. Wiktionary might find some of these changes useful.

You may want to add an additional  and/or.

You are welcome to copy/change (please attribute) all code at:


 * http://en.wikimergic.org/wiki/Module:Wikt/category_tree
 * code to handle the 2 new data values. In may case, for, I invoke  , but you could simply invoke . So far, there was only one case where I could not find any   , so you could use the   instead. But in general, I suspect that Wiktionary won't need   as I use this for the reverse link (from my internal WP to my "dictionarizing").


 * http://en.wikimergic.org/wiki/Template:Editnotices/Group/Module:Wikt
 * Wiktionary only supports page level, so copy this for one topic data module, and redirect the others.


 * Just started adding these (into (mostly topic) data files), really only need them for the cats I'm interested in. Copy/verify my choices. Typically there is only 1, but when Wikipedia and Wiktionary do not line up, you may need several. I show the same link for each language (I only use mul: & en:), and the non-language parent topic.
 * Just started adding these (into (mostly topic) data files), really only need them for the cats I'm interested in. Copy/verify my choices. Typically there is only 1, but when Wikipedia and Wiktionary do not line up, you may need several. I show the same link for each language (I only use mul: & en:), and the non-language parent topic.


 * As above. Likely not needed in Wiktionary, but ideally, one should check every Wikipedia article (or its category) and ensure it links to Wiktionary's categories. This reverse links is only made on the non-language parent topic.
 * As above. Likely not needed in Wiktionary, but ideally, one should check every Wikipedia article (or its category) and ensure it links to Wiktionary's categories. This reverse links is only made on the non-language parent topic.

Anything particular to outsource topics

 * Do I have to make any particular setting to outsource (topic) categories to new pages or can I just move content from Module:category tree/topic cat/data/Society to either Module:category tree/topic cat/data/Society/Law or Module:category tree/topic cat/data/Law? I want to split pages here as there are a lot of fields in law and it would be cleaner; the categories are pretty crude still and I could fix this part. I see perhaps subpages as Module:category tree/topic cat/data/Society/Law does not work as Module:category tree/topic cat/data/Plants is not a subpage of Module:category tree/topic cat/data/Lifeforms either. Fay Freak (talk) 20:12, 14 December 2019 (UTC)
 * Another thing I just see: The page Module:category tree/poscatboiler shows subpages but not Module:category tree/topic cat, but maybe the latter should, so one can see what there is (though there is the Category:Category tree data modules/topic cat), and there is also a search box but on the first. Fay Freak (talk) 20:12, 14 December 2019 (UTC)
 * All the existing topic cat submodules are, so I would recommend Module:category tree/topic cat/data/Law. See Module:category tree/topic cat/data; you have to add the name of the submodule to the list.
 * I've added a search box and list of subpages to Module:category tree/topic cat/documentation as you suggest. — Eru·tuon 22:19, 14 December 2019 (UTC)

Local alphabetizing
On category pages, there is a TOC bar at the top that indexes the entries by the first letter. It is always localized for the language (i.e. the order of the alphabet changes). How do you add a new language to this to allow there to be a TOC on category pages for that language? --Numberguy6 (talk) 20:15, 31 January 2020 (UTC)
 * Just create a template named  for the smaller version and   for the larger version.  For example, Template:en-categoryTOC and Template:en-categoryTOC/full. This module will automatically find these templates if they are needed. The smaller ToC is only used in entries with more than 200 entries in them; the larger one is used in entries with more than 2500 entries in them. So you only need to create the large ToC if the language has a large number of entries in some of its categories. — Eru·tuon 20:56, 31 January 2020 (UTC)

Error
It seems to me that after your edits, there was some kind of error on line 242. Gnosandes (talk) 19:00, 15 November 2020 (UTC)
 * Fixed. Benwing2 (talk) 19:01, 15 November 2020 (UTC)
 * If you still see it, do a null edit. Benwing2 (talk) 19:01, 15 November 2020 (UTC)
 * A null edit? What is it? If you mean that I should fix this error, then I do not own administrator privileges. :v Gnosandes (talk) 19:06, 15 November 2020 (UTC)
 * I don't know which page you're referring to. If you see an error on that page, edit it and save without making any changes. Benwing2 (talk) 19:10, 15 November 2020 (UTC)

Sort and display additions

 * If you look at my contributions, I tested the changes on sandboxes, both with and without “sort” and “display”, and I did not see any errors when I previewed categories using the sandbox modules. J3133 (talk) 14:16, 10 August 2022 (UTC)
 * And yet basically every category broke due to your changes, so you clearly didn't test enough. &mdash; S URJECTION / T / C / L / 14:17, 10 August 2022 (UTC)
 * How else was I supposed to test? If the errors were on only specific categories I would not know. J3133 (talk) 14:19, 10 August 2022 (UTC)
 * It was a ton of categories, because you messed up the syntax on what is now line 317 ( instead of  ; if   was , it would still try to call it, and that would cause an error). I genuinely do not understand how you did not catch that when trying to test, unless you tested nothing at all. Just trying to preview the module with the changes on a category page, like a lemma category, should have revealed the issue. &mdash; S URJECTION  / T / C / L / 14:21, 10 August 2022 (UTC)
 * I previewed Category:A Christmas Carol with, where the additions caused no errors. I do agree that I should have tested on more categories, though. Also, do you think these additions are useful? J3133 (talk) 14:21, 10 August 2022 (UTC)
 * Do you know how to apply (if it is not ) to  of the ? J3133 (talk) 15:05, 10 August 2022 (UTC)
 * (Done. J3133 (talk) 15:30, 10 August 2022 (UTC))
 * It's not going to work, because the next block overrides display_name unless nocap is specified. &mdash; S URJECTION / T / C / L / 16:21, 10 August 2022 (UTC)