Interface-protected edit request on 24 December 2022 edit

This gadget doesn't work with the page description gadget. On line 674, a check should be added in the event a user is using the page description gadget to combine the output of it and this gadget:

var mwPageDescription = $('#siteSub span.mw-page-description');
if (mwPageDescription) {
    $("#siteSub").html("<span class='mw-page-description'>" + mwPageDescription.html() + "</span>" + siteSub.html());
} else {
    $("#siteSub").html(siteSub.html());
}

elijahpepe@wikipedia (he/him) 22:00, 24 December 2022 (UTC)Reply

@Nihiltres: are you still shepherding this one? — xaosflux Talk 14:28, 29 December 2022 (UTC)Reply
Nihiltres has been afk a couple weeks. Izno (talk) 19:46, 29 December 2022 (UTC)Reply
  Done @ElijahPepe: loaded, please let us know if issues. — xaosflux Talk 23:38, 19 January 2023 (UTC)Reply
Look good to me. I encountered an issue where "undefined" was added before the "A blank-class article", but I refreshed and it was gone. Haven't had it since. elijahpepe@wikipedia (he/him) 23:47, 19 January 2023 (UTC)Reply
Please take a look at the report at WP:VPT#‎"undefinedA" article assessment class. Izno (talk) 01:26, 20 January 2023 (UTC)Reply
  Undone - before resuggesting this, fork both scripts to personal scripts and try them there next. — xaosflux Talk 01:27, 20 January 2023 (UTC)Reply
Undone?? It is not undone for me. Hard refresh makes no difference. Nurg (talk) 01:40, 20 January 2023 (UTC)Reply
I've gone and undone this, cc ElijahPepe. The issue is that jquery returns an object, so even when nonexistent it isn't falsey, so the whole thing executes regardless of the other gadget's existence. The proper way to do it would be something like first().html() or [0].innerText, but it's a school night so I won't act further atm. ~ Amory (utc) 03:39, 20 January 2023 (UTC)Reply
I should add, too, that I'm not wild about a gadget inserting something external into .html(). ~ Amory (utc) 03:46, 20 January 2023 (UTC)Reply

Assessment display error edit

Not sure if this is the right place to mention it, but it's linked at the "Display an assessment of an article's quality in its page header" part of preferences; all class definitions now show up with "undefined" in front of it, such as "undefinedA C-class article from Wikipedia, the free encyclopedia". I am running Vector 2010, but the issue also appears in 2022. Testing reveals that user scripts appear to be unrelated. Iazyges Consermonor Opus meum 01:54, 20 January 2023 (UTC)Reply

Interface-protected edit request on 20 January 2023 edit

Please undo the most recent edit, per this VPT discussion. – Jonesey95 (talk) 03:05, 20 January 2023 (UTC)Reply

  Done Thanks. I'll comment above to keep the discussion more connected, but appreciate the ping via ER. ~ Amory (utc) 03:31, 20 January 2023 (UTC)Reply
Sorry, I didn't notice the section above when filing this request. – Jonesey95 (talk) 03:46, 20 January 2023 (UTC)Reply

Set-index articles edit

Is there any update on the title colour of set-index articles? (as originally raised at MediaWiki talk:Gadget-metadata.js/Archive 1, set-index articles are not disambiguation articles, so shouldn't be marked in the same colour). If it isn't possible or desirable to have a dedicated colour for set-index articles, I would suggest that List purple would be much better than Disambig green. --Jameboy (talk) 15:15, 16 January 2023 (UTC)Reply

Note - there is a dedicated colour (a sort of pale lilac) for set-index articles (see SIA at Category:Articles by quality), but I don't know if it might be too pale to show up against a white background. --Jameboy (talk) 15:34, 16 January 2023 (UTC)Reply
Presumably MediaWiki talk:Gadget-metadata.js/Archive 1#Set index articles. It looks like Module:Class/definition.json and Module:Class/styles.css both have the correct color. My impression of @Nihiltres' work before he went AFK was that he was going to use one or the other in this gadget directly to get the color. Izno (talk) 01:31, 20 January 2023 (UTC)Reply

Feature request for ORES integration edit

Nihiltres and other watchers:

@Nettrom has kindly updated m:Research:Screening WikiProject Medicine articles for quality/Stub prediction table to flag mis-rated stubs for me, and I am working my way through the list of outdated assessment ratings. I use this gadget, and I wonder whether it's possible to integrate an automatic lookup of the ORES ratings into this gadget. I want it to say something like "A Stub-class article. Predicted to be B-class or better."

For my own purposes, I don't really want to see adjacent classes, because the line between a "big stub" and a "small start" (or an article that's mostly a list) is fuzzy. It's not until the alleged stub is clearly not a stub that I'd personally like to have the need for reassessment to be flagged. Do you think this is possible? WhatamIdoing (talk) 21:01, 12 October 2023 (UTC)Reply

The user script that @EpochFail wrote might be a good starting point, which you can find on User:EpochFail/ArticleQuality. Maybe it should also be updated to use LiftWing, but I’m unsure and won’t have time to look at that for a while. Cheers, Nettrom (talk) 14:57, 13 October 2023 (UTC)Reply
@WhatamIdoing: It's certainly possible, and this seems like a nice idea for expanding on this tool. I was initially a little hesitant because much of the time it wouldn't be particularly relevant, but adding it exclusively if the prediction is at least a certain "distance" from the nominal rating makes it seem reasonable—though I'd like to nail down what a good "distance" metric would be. I think I'd usually want at least two steps difference (Stub ↔ C), but one step might be relevant, especially at higher ratings (e.g. B ↔ GA). I'd appreciate more input on that design choice. Moreover, the model appears to predict only Stub, Start, C, B, GA, and FA, so I'll need to add a couple of special-case mappings to compute distance for pages rated as A-class—I suppose I should just map A to be considered equal to GA. I'm … somewhat inactive … at the moment for personal reasons, but this could be just the thing to rope me back in, thank you. {{Nihiltres |talk |edits}} 21:38, 13 October 2023 (UTC)Reply
@Nihiltres, I think Stub ↔ C is the most relevant distance.
GA just raised its standards, and anything above B requires agreement from multiple people, so I'd be inclined to not include anything above B class. WhatamIdoing (talk) 22:42, 13 October 2023 (UTC)Reply
In terms of display, maybe something like "Is the assessment out of date? Automated estimate: <ORES result>"?
It might be a good idea to glance at wikitech:Machine Learning/LiftWing/Usage#Differences using Lift Wing instead of ORES just to make sure there's nothing you're doing now that you're likely to regret in the future. WhatamIdoing (talk) 22:48, 13 October 2023 (UTC)Reply
I'd be interested in adapting the ArticleQuality user script to display something like that. It could also be upgraded to a Gadget on enwiki if you like. It's a gadget in prefs in a few other wikis (nlwiki and euwiki at least). See User:EpochFail/common.js#L-40 --EpochFail (talkcontribs) 02:13, 14 October 2023 (UTC)Reply

Reword "Currently a candidate for removal as a featured list?" edit

List of foo


A featured list from Wikipedia, the free encyclopedia. Currently a candidate for removal as a featured list.

is unnecessarily long and unclear. Instead of that, I propose:

List of foo


A featured list from Wikipedia, the free encyclopedia. Currently a featured list removal candidate.

This is shorter, clearer, and matches the wording of {{Article history}}. Thoughts? Clyde [trout needed] 03:09, 18 November 2023 (UTC)Reply

Mocked up in User:ClydeFranklin/MediaWiki:Gadget-metadata.js. Clyde [trout needed] 03:20, 18 November 2023 (UTC)Reply
  Done * Pppery * it has begun... 16:11, 18 November 2023 (UTC)Reply