Template talk:Category class

A-Class
Can the following line be changed:

to

This will add the A-Class symbol which is now being displayed in A-Class. Small-town hero (talk) 02:01, 3 January 2009 (UTC)
 * ✅ Ruslik (talk) 15:56, 3 January 2009 (UTC)

Project-class
Please change the colour of Project-class from #FCCCFF to #C0C090 so that it matches Template:Project-Class. Thank you. Martin 13:34, 12 January 2009 (UTC)
 * Incidentally, is there some reason why this template can't just transclude Project-Class directly, or at least Project-Class col? —Preceding unsigned comment added by PC78 (talk • contribs)
 * Not Project-Class because it's boldface. But Project-Class col seems like a good idea, but I can't see how it's used currently. I've disabled the editprotected while we work out what to do on this and what to ask for specifically. Martin 15:39, 12 January 2009 (UTC)
 * It was just a thought. All of the classes have these col templates, and although they seem like a good idea in principle (as a singular place to control the colour of each class), none of them appear to be used in any meaningful way. Just curious, and a little o/t, but what's the deal with templates such as Project-Class td? PC78 (talk) 08:06, 13 January 2009 (UTC)

Category Sorting
Is it worth changing the category sorting to use the  function so that it doesn't end up with lots of upper & lowercase items listed apart from each other in the categories. See Category:NA-Class articles for an example.

Changing the line: to would fix that. -- WOSlinker (talk) 16:57, 18 January 2009 (UTC)
 * }}}}
 * }}}}

editprotected Could the change described above be made. Thanks. -- WOSlinker (talk) 21:25, 19 January 2009 (UTC)
 * Yes check.svg Done--Aervanath (talk) 15:31, 21 January 2009 (UTC)

editprotected It seems that the change above was made and then reverted. Could it be looked at again. Thanks -- WOSlinker (talk) 19:04, 21 January 2009 (UTC)
 * There's also a fullcopy in the sandbox, if you would prefer that. Template:Cat class/sandbox -- WOSlinker (talk) 19:21, 21 January 2009 (UTC)

Change for Unassessed class
If there are two categories, one called Category:Unassessed-Class ZZZ articles and one called Category:Unassessed ZZZ articles, the template currently links to the Unassessed-Class version. However, it should really link to the Unassessed version as Unassessed is more common than Unassessed-Class. So, could the version in Template:Cat class/sandbox be copied over to the live one.

Thanks. -- WOSlinker (talk) 19:26, 16 February 2009 (UTC)
 * I am not sure this is a good idea. It can adversity affect many projects. In addition, can the code be made more efficient? The proposed version contains repetitions. Ruslik (talk) 20:27, 16 February 2009 (UTC)

Edit request
Please update the template with the code in cat class/sandbox to add Current-Class and Future-Class. It makes no sense whatsoever to omit these two classes when they are actively used by a minority of projects, and unless this template includes all classes it can only do it's job in a limited fashion. These two classes will of course only be displayed in the template if the corresponding categories exist, so the vast majority of transclusions will be unaffected by this change. It will, however, be of huge benefit to WP:FILM which makes good use of Future-Class and transcludes this template in some 275 categories. PC78 (talk) 18:00, 22 February 2009 (UTC)
 * ✅ Ruslik (talk) 18:22, 22 February 2009 (UTC)

Custom category names
I've added parameters to the sandbox to allow for custom category names to be specified for all assessments that are not on the main "unassessed-FL" scale to allow the template to link to such things as Category:WikiProject Anime and manga categories (because, frankly, I hate everything about the title "X-class Y articles" when X is "Template", "Category", or anything else that's not an article). Would an administrator be willing to review my change and replace the current code in Cat class with that in the sandbox? 「ダイノ ガイ 千 ？！」(Dinoguy1000) 19:25, 14 April 2009 (UTC)
 * It sounds reasonable to me. But could we leave time for a discussion before placing the editprotected? &mdash; Martin (MSGJ · talk) 20:09, 14 April 2009 (UTC)
 * Well, it's not like I was asking the template's fundamental behavior to be changed, only to supplement it with additional functionality which isn't particularly complex, hence my immediate editprot request. But, I'm not against giving time for discussion, if you think it might be necessary or beneficial. ;) 「ダイノ ガイ 千 ？！」(Dinoguy1000) 20:12, 14 April 2009 (UTC)
 * Okay I take your point. But as it's not at all urgent, there's no harm in giving some time for input :) Someone might even think of a better way to achieve it. &mdash; Martin (MSGJ · talk) 20:48, 14 April 2009 (UTC)

This is problematic because cat class uses class which hard-codes part of the category name. So for example, if you try, you get:

which creates an undesirable redlink to Category:Category-Class WikiProject Anime and manga categories. To be honest, I wish class hadn't been coded that way, but it's probably too late in the day to change it now. Martin, any ideas why Category-Class is even showing in the above example, when the category doesn't exit and isn't being used? PC78 (talk) 15:08, 15 April 2009 (UTC)
 * Yes, it's because Cat in use is being fed WikiProject Anime and manga categories which does exist. &mdash; Martin (MSGJ · talk) 15:35, 15 April 2009 (UTC)
 * Oh, pooh, something like that *would* have to happen, wouldn't it? Methinks it would probably be easy enough to hack in an override in class, but it would probably be better in the long run to adjust its behavior so that it doesn't automatically prepend the name like that... or something. I dunno, I'm feeling a bit lightheaded today, and as a result, am not thinking quite so clearly. =D 「ダイノ ガイ 千 ？！」(Dinoguy1000) 19:25, 15 April 2009 (UTC)
 * Allowing an override might well be something worth considering, especially as Template:Class is likely to become ubiquitous. Maybe you could bring it up there? &mdash; Martin (MSGJ · talk) 19:35, 15 April 2009 (UTC)
 * I may do that, but probably not right now... I don't feel like thinking on the best way to implement the override at the moment (what with my head swimming + just having had my mind blown by some amazing Mirror's Edge speedrun footwork on Youtube). =) First I have to look more carefully at 's source and probably try to find some other assessment cats with non-standard names for consideration (*hint hint* know of any?). 「ダイノ ガイ 千 ？！」(Dinoguy1000) 20:06, 15 April 2009 (UTC)

Proposed colour changes for Merge, Category & Template-Class
A proposal has been made to adjust the colours used for Merge, Category and Template-Class. Discussion can be found here for those interested. PC78 (talk) 17:41, 16 April 2009 (UTC)

Category:Tennessee templates
Any ideas as to why this transclusion of Cat class is linking to the non-existant as opposed to ? It shouldn't be doing this, or at least it wouldn't have done in previous versions of the template. Another Class-related issue? PC78 (talk) 15:03, 17 April 2009 (UTC)
 * I'm going to ask WOSlinker to look at this, because he's worked on this issue before. &mdash; Martin (MSGJ · talk) 16:50, 17 April 2009 (UTC)
 * It was the change on the 21st of March to this template use the class template when the feature was lost. It takes a quite a lot of parser functions to add it back. Would need to be added as: If topic is empty then Unassessed-Class articles, else if exsits Unassessed topic articles then link to that else if exsits Unassessed-Class topic articles then link to that else link to Unassessed topic articles. There are currently 1395 categoryies without -Class and 114 with -Class. Is it still worth adding back? -- WOSlinker (talk) 18:37, 17 April 2009 (UTC)
 * So it was might fault?! Oops. That's a really complicated way of adding it back with two ifexist calls. Is there an edit to class which would simplify it at all? Even if there weren't, I would suggest that it might be worth doing for 114. &mdash; Martin (MSGJ · talk) 20:31, 17 April 2009 (UTC)
 * It's going to get less than 114 as more project banners are converted to use WPBannerMeta. I've flagged 6 of them to be deleted as they aren't used anymore now anyway. And a lot that are left are down to two banners: WP India & Comicsproj. -- WOSlinker (talk) 21:12, 17 April 2009 (UTC)

Unassessed-Class not showing up
Why isn't Unassessed-Class showing up in the navbar in some WPs, like Category:Unassessed-Class Egypt articles? It's documented as such in Template:Class, as being "Unassessed-Class", but it only seems to take "Unassessed 'Egypt' articles" as the category name. Can you add this usage to this template? Thanks --Funandtrvl (talk) 21:03, 1 May 2009 (UTC)
 * The fact that the Category:Unassessed Egypt articles also exists doesn't help. Happy‑melon 22:44, 1 May 2009 (UTC)
 * It doesn't matter, the problem was occuring BEFORE I created the 2nd category off the template. --Funandtrvl (talk) 23:06, 1 May 2009 (UTC)
 * Actually it does matter. Now you've converted WikiProject Egypt to WPBannerMeta, your banner will now populate and  will soon be empty. There's no problem here with regards to your project, though the general issue you have raised has already been discussed directly above. PC78 (talk) 23:15, 1 May 2009 (UTC)
 * So does that mean that the WPBM template will be using only "Unassessed project articles"? Will this be the standard then? --Funandtrvl (talk) 00:19, 2 May 2009 (UTC)
 * Yes. Generally speaking, it already is the standard. PC78 (talk) 01:33, 2 May 2009 (UTC)
 * Okay, thank you! This will help when working on organizing categories! --Funandtrvl (talk) 03:22, 2 May 2009 (UTC)

Reshuffle?
Since there seems to be no rhyme or reason for the ordering of the non-standard classes in this template, would there be any objections to a minor reshuffle? I was thinking this:

I've kept Future and Current next to the main class types since they are used for proper articles, and NA over to the far end as it's more of a catch-all class for stuff that doesn't fit anywhere else. The rest have merely been arranged in reverse alphabetical order. Thoughts? PC78 (talk) 19:50, 4 July 2009 (UTC)
 * My suggestions:
 * Put FA first, and the non-articles last
 * Put FL next to List
 * &mdash; Martin (MSGJ · talk) 20:33, 4 July 2009 (UTC)


 * I'm all for flipping the whole thing and going from FA→???, which seems far more logical to me (had thought about suggesting it myself), less so about moving FL, but meh. Presumably you would be cool with this:


 * -- PC78 (talk) 00:16, 5 July 2009 (UTC)


 * Looks good PC78. I never did understand the reverse order of this list. — Huntster (t • @ • c) 00:31, 5 July 2009 (UTC)
 * Love it! &mdash; Martin (MSGJ · talk) 07:26, 5 July 2009 (UTC)

I've added the last missing classes to my sandbox example. Some of them don't show in the example above because they don't currently have top level categories, but this should make the template fully functional for all existing WikiProjects. Some examples:


 * WikiProject Mathematics


 * WikiProject Plants


 * WikiProject Firearms

-- PC78 (talk) 12:15, 5 July 2009 (UTC)
 * I have to say that I am not completely convinced of the wisdom of including custom quality classes which are only used by one project (User, SL, B+ and Deferred) on a template which is used by nearly every project. &mdash; Martin (MSGJ · talk) 21:30, 5 July 2009 (UTC)
 * I don't see the disadvantage in doing so. It's not like there are a lot of them, and it benfits the projects that use them at no detriment to anyone else (at least so far as I can see). PC78 (talk) 21:35, 5 July 2009 (UTC)
 * Indeed, if the template only displays the types that are applicable to the project in question, then there is no harm at all. — Huntster (t • @ • c) 00:18, 6 July 2009 (UTC)

I think there are a couple of projects which don't use GA- and FA-Class (although confusingly they are still using categories such as GA-Class XXX articles so that the bot can keep track of their good articles). Should we put the "in use" check on all the classes? &mdash; Martin (MSGJ · talk) 07:14, 6 July 2009 (UTC)
 * Sure, don't see why not. PC78 (talk) 09:01, 6 July 2009 (UTC)
 * It seems to me that redlinks could be useful in some cases for drawing attention to categories which need creating. On the other hand, they will be annoying for projects that have specifically decided not to use one of the standard classes. So I'm thinking they could be some parameter to switch off links for non-existent categories without any elements. &mdash; Martin (MSGJ · talk) 19:39, 6 July 2009 (UTC)
 * Not sure I'm with you. Do you mean a parameter to disable the "cat in use" check? PC78 (talk) 23:17, 6 July 2009 (UTC)
 * I went through a while ago and tried to clean up the assessment categories to fix absent, duplicate and incorrectly-sorted categories, which cleaned out much of the dead wood. I expect it's gone to seed again though, it's an inherently messy structure.  Remember that now there can only be 136+28=164 banners that don't use FA&rarr;Stub, NA, FL and List.  I think what Martin means is a check to enable the cat in use check on all classes, which would be a useful feature.  Otherwise, I think the checks should be only on C-Class and the nonstandard classes.  I fully support the reshuffle; the ones that spill off the edge of the screen should not be the most important classes!! Happy‑melon 10:10, 11 July 2009 (UTC)
 * I'm implemented the new version. I was wondering whether the standard classes should all be displayed by default, but on further thought, perhaps it is simpler to use cat in use for all of them. A parameter to switch off redlinks might cause a lot of confusion. I have a couple of further suggestions:
 * Checking whether PAGENAME = -Class articles, and if not then add to a tracking category for possible fixing.
 * For categories which are populated but not yet created, link to a preload (such as Template:WPBannerMeta/templatepage/preloadqual).
 * &mdash; Martin (MSGJ · talk) 15:41, 12 July 2009 (UTC)

I've just implemented #1 suggestion above. &mdash; Martin (MSGJ · talk) 20:31, 22 August 2009 (UTC)

Suppress unwanted classes?
As the only person at WikiProject Ethiopia who is actively rating articles, I don't want to be bothered about using the "C" class for a number of reasons -- mostly that I'd rather spend my time making "Start" class articles "B" class. However, due to overlap with other WikiProjects, I just discovered that some helpful souls are using that grade on WikiProject Ethiopia articles, in a drive-by manner. Now my options at this point are (1) tell them to stop doing this, which will lead to hurt feelings, time lost defending myself at WP:AN/I, & wasting time which I'd rather spend on upgrading articles; (2) just revert & don't tell them to stop, which will lead to people telling me to stop doing this, hurt feelings, time lost defending myself at WP:AN/I, & wasting time which I'd rather spend on upgrading articles; or (3) having a way to simply set an option, so I won't see that someone has one this on the category pages where this otherwise useful template appears, & thus avoid WikiDrama & allow me to focus on upgrading articles. Does this request make sense? -- llywrch (talk) 06:16, 19 September 2009 (UTC)
 * What you need to do, is put a custom class mask in Template:WikiProject Ethiopia/class. The instructions for doing this can be found at Template:WPBannerMeta/class/doc, but let me know if you need help with this! At the same time you could think if there are any other classes which are not used (e.g. Image/Portal/Project). Then, when an unused class is used the banner will classify it as "unassessed". &mdash; Martin (MSGJ · talk) 07:07, 19 September 2009 (UTC)

Add book class to the template
This category is for Wikipedia Books (see example) which will be populated in the near future. Simply add }}{{cat class/column|class=Book|topic={{{topic|}}}

This has been tested here and doesn't break anything. I would suggest to place it after List, or perhaps between Category and File (although I don't particularly care where it ends up). Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 19:35, 18 November 2009 (UTC)


 * It should go between Future and Category; the non-article classes are arranged alphabetically. PC78 (talk) 00:17, 19 November 2009 (UTC)


 * Fine with me. Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 00:45, 19 November 2009 (UTC)
 * {{done}} —  Tivedshambo   (t/c) 13:07, 19 November 2009 (UTC)


 * Thanks a bunch. Headbomb {{{sup|ταλκ}}κοντριβς – WP Physics} 15:01, 19 November 2009 (UTC)

Image-Class deprecated
Per the consensus described at Rename of Image-class to File-class, Image-Class has now been fully deprecated and replaced with File-Class (Category:Image-Class articles is now a category redirect to Category:File-Class articles). Could someone with a better understanding of templates remove and/or replace mentions of Image-Class in this and related templates? Thank you, -- Black Falcon (talk) 22:22, 25 November 2010 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 09:42, 26 November 2010 (UTC)
 * Thanks! -- Black Falcon (talk) 16:51, 26 November 2010 (UTC)

FM-Class
Can this be displayed before File-Class? FA-Class is before the other article classes and FL-Class is before List-Class. Thanks.  Imzadi 1979  →   01:45, 9 June 2011 (UTC)
 * That makes sense. ✅ &mdash; Martin (MSGJ · talk) 07:40, 9 June 2011 (UTC)

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

Template-protected edit request on 6 March 2018
Add AL-Class between FL and List.

Thanks! – Lionel(talk) 11:39, 6 March 2018 (UTC)
 * Red information icon with gradient background.svg Not done: I would like to see some discussion/consensus before new classes are created &mdash; Martin (MSGJ · talk) 21:15, 7 March 2018 (UTC)

Template-protected edit request on 6 August 2021
Can you add empty category? Qwerfjkl talk  11:05, 6 August 2021 (UTC)


 * 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)
 * ❌ per WOSlinker * Pppery * it has begun... 19:43, 11 August 2021 (UTC)
 * @WOSlinker @Pppery This could be fixed by adding something like . &#8213;  Qwerfjkl  talk  19:28, 13 August 2021 (UTC)
 * 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)
 * @WOSlinker This should work: &#8213;  Qwerfjkl  talk  20:22, 13 August 2021 (UTC)
 * 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. &#8213;  Qwerfjkl  talk  21:33, 13 August 2021 (UTC)
 * 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)
 * @WOSlinker Using something like WPFILM Category would probably be better than using Possibly empty category. &#8213; Qwerfjkl  talk  08:17, 14 August 2021 (UTC)


 * WPMILHIST Task force assessment level category - 1,249 uses
 * WPMILHIST Special project phase assessment level category - 40
 * WPFILM Assessment level category - 528
 * WPANIMATION assessment quality work group level - 366
 * WikiProject Television task force assessment category - 277
 * WPWesterns assessment category - 15
 * WPBASEBALL assessment level category-main - 19
 * @WOSlinker I think you missed a few, because I've removed all of the mentioned transclusions of Possibly empty category. &#8213; Qwerfjkl  talk  13:09, 14 August 2021 (UTC)
 * ✅ 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)

Template-protected edit request - Change to PAGEINCAT counting
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  to the end of   and.

Thanks. Aidan9382 (talk) 06:37, 25 May 2022 (UTC)
 * ✅ * Pppery * it has begun... 15:17, 26 May 2022 (UTC)

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