MediaWiki talk:Gadget-metadata.js
| |
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Interface-protected edit request on 24 December 2022
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- @Nihiltres: are you still shepherding this one? — xaosflux Talk 14:28, 29 December 2022 (UTC)
- Nihiltres has been afk a couple weeks. Izno (talk) 19:46, 29 December 2022 (UTC)
- @Nihiltres: are you still shepherding this one? — xaosflux Talk 14:28, 29 December 2022 (UTC)
Done @ElijahPepe: loaded, please let us know if issues. — xaosflux Talk 23:38, 19 January 2023 (UTC)
- 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)
- Please take a look at the report at WP:VPT#"undefinedA" article assessment class. Izno (talk) 01:26, 20 January 2023 (UTC)
Undone - before resuggesting this, fork both scripts to personal scripts and try them there next. — xaosflux Talk 01:27, 20 January 2023 (UTC)
- Undone?? It is not undone for me. Hard refresh makes no difference. Nurg (talk) 01:40, 20 January 2023 (UTC)
- 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 (u • t • c) 03:39, 20 January 2023 (UTC)- I should add, too, that I'm not wild about a gadget inserting something external into
.html()
. ~ Amory (u • t • c) 03:46, 20 January 2023 (UTC)
- I should add, too, that I'm not wild about a gadget inserting something external into
- 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
- Undone?? It is not undone for me. Hard refresh makes no difference. Nurg (talk) 01:40, 20 January 2023 (UTC)
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)
Interface-protected edit request on 20 January 2023
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please undo the most recent edit, per this VPT discussion. – Jonesey95 (talk) 03:05, 20 January 2023 (UTC)
Done Thanks. I'll comment above to keep the discussion more connected, but appreciate the ping via ER. ~ Amory (u • t • c) 03:31, 20 January 2023 (UTC)
- Sorry, I didn't notice the section above when filing this request. – Jonesey95 (talk) 03:46, 20 January 2023 (UTC)
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)
- 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)
- @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)
- @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)
- 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)
- 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 (talk • contribs) 02:13, 14 October 2023 (UTC)
Reword "Currently a candidate for removal as a featured list?"
[edit]is unnecessarily long and unclear. Instead of that, I propose:
This is shorter, clearer, and matches the wording of {{Article history}}. Thoughts? Clyde [trout needed] 03:09, 18 November 2023 (UTC)
- Mocked up in User:ClydeFranklin/MediaWiki:Gadget-metadata.js. Clyde [trout needed] 03:20, 18 November 2023 (UTC)
Annotated link but for Article class?
[edit]Has anyone made a version of Template:Annotated link that shows article class instead of short-desc? Superb Owl (talk) 02:13, 14 July 2024 (UTC)