Jump to content

Template talk:Category class

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Cat class)

Not mobile friendly

[edit]

Please review! :) Reach out to me if I can help. Jon (WMF) (talk) 19:40, 18 September 2015 (UTC)[reply]

Template-protected edit request on 6 March 2018

[edit]

Add AL-Class between FL and List.

{{category class/column|class=AL|topic={{{topic|}}} }}


Thanks! – Lionel(talk) 11:39, 6 March 2018 (UTC)[reply]

 Not done: I would like to see some discussion/consensus before new classes are created — Martin (MSGJ · talk) 21:15, 7 March 2018 (UTC)[reply]

Template-protected edit request on 6 August 2021

[edit]

Can you add {{empty category}}? Qwerfjkltalk 11:05, 6 August 2021 (UTC)[reply]

Of the 37659 pages with transclusions of this template, 8732 already have the empty category template on the page as well. Adding it here would then be doubling up on those pages. -- WOSlinker (talk) 11:19, 6 August 2021 (UTC)[reply]
 Not done per WOSlinker * Pppery * it has begun... 19:43, 11 August 2021 (UTC)[reply]
@WOSlinker @Pppery This could be fixed by adding something like {{#ifeq: {{Find page text|\{\{empty category\}\}|plain=false|nomatch=no|no|{{empty category}}|}} . ― Qwerfjkltalk 19:28, 13 August 2021 (UTC)[reply]
I'm not sure that it would. For example Category:Unassessed maritime warfare articles does not have that text on the page, but is using the {{Possibly empty category}} template. Maybe go through and remove all the existing instances first and then get it added here? -- WOSlinker (talk) 19:58, 13 August 2021 (UTC)[reply]
@WOSlinker This should work:
{{#ifeq: {{Find page text|\{\{([Pp]ossibly empty category|[Ee]mpty category|[Pp]ec|[Ee]mpty Category|[Ee]mptycategory|[Ee]mptycat|[Ee]mpty cat)\}\}|nomatch=no|plain=false}}|no|{{Possibly empty category}}|}} ― Qwerfjkltalk 20:22, 13 August 2021 (UTC)[reply]
Nevermimd, this would be a lot more complicated because Lua modules don't allow | as an OR operator. I'll follow your advice and post this at WP:BOTREQ. ― Qwerfjkltalk 21:33, 13 August 2021 (UTC)[reply]
I think my original search critera was not quite right. I'm seeing 3,458 pages now which already have both templates. There are 7 templates that need editing to remove about 2,500 occurences, leaving 460 used directly on the category pages which would need updating. -- WOSlinker (talk) 22:34, 13 August 2021 (UTC)[reply]
@WOSlinker Using something like {{WPFILM Category}} would probably be better than using {{Possibly empty category}}. ― Qwerfjkltalk 08:17, 14 August 2021 (UTC)[reply]
@WOSlinker I think you missed a few, because I've removed all of the mentioned transclusions of {{Possibly empty category}}. ― Qwerfjkltalk 13:09, 14 August 2021 (UTC)[reply]
 Done I've removed the last few that I spotted and have added it to the Category class template now. -- WOSlinker (talk) 13:35, 14 August 2021 (UTC)[reply]

Template-protected edit request - Change to PAGEINCAT counting

[edit]

Currently, Template:Category class/second row column counts all types of elements (pages, subcategories, and files). Surely it would be a better idea to count only pages? All ratings should be placed onto the talk pages of pages, and therefore will always appear as pages in the category listing. The removal of counting of subcategories would mean that, if a project has a sub-category (Like with Category:A-Class Florida articles and Category:A-Class Navarre, Florida articles), the count isnt being misrepresented as +1 for each rating (In this case, making it appear as if an A-Class page exists under the Florida project, when it doesnt).

Implementation of this change wouldnt be hard, it would just require adding |pages to the end of {{PAGESINCATEGORY:{{{class}}}-Class {{{topic}}} articles}} and {{PAGESINCATEGORY:Unassessed {{{topic}}} articles}}.

Thanks. Aidan9382 (talk) 06:37, 25 May 2022 (UTC)[reply]

 Done * Pppery * it has begun... 15:17, 26 May 2022 (UTC)[reply]

This template has similar functionality to Template:Articles by Quality. Rather than duplicating the code, should we just call that template? — Martin (MSGJ · talk) 17:17, 9 May 2023 (UTC)[reply]

I'm planning to rewrite this template in Lua, and merge it with Template:Articles by Quality at the same time. If anyone has any requests for new features, then now would be a good time to share — Martin (MSGJ · talk) 22:16, 17 December 2024 (UTC)[reply]
Module started. Please let me know if you see any problems — Martin (MSGJ · talk) 09:06, 20 December 2024 (UTC)[reply]
First, a sincere thank you for all your hard work, Martin :)
Category:Unassessed-Class articles is actually a redirect to Category:Unassessed articles; can that be remedied in the Lua? Thanks, HouseBlaster (talk • he/they) 05:44, 4 January 2025 (UTC)[reply]
Happy new year HouseBlaster! I think my latest edit to the module should have cured this — Martin (MSGJ · talk) 06:19, 4 January 2025 (UTC)[reply]
All cleared, and happy 2025! Thank you, as always, for your work :) HouseBlaster (talk • he/they) 06:21, 4 January 2025 (UTC)[reply]

The result of the TfD discussion was that this template should be merged with Template:Articles by Quality with a preference for that template's styling. The main differences are:

  • Cell borders in the table, which makes readability a bit easier
  • A total column at the end of the table
  • A caption which describes what the table shows with a link to the project

Unless there are any concerns I am planning to harmonise the styling of the templates — Martin (MSGJ · talk) 20:59, 7 January 2025 (UTC)[reply]