MediaWiki talk:Gadget-metadata.js/Archive 1

Update requests
This section is for the script's maintainer to request that an admin update the gadget to the latest version.

If the above editprotected template is expanded, please update the gadget with the current version of User:Pyrospirit/metadata.js, then replace the template with. No need to add done or anything; I'd like to avoid cluttering up this page with update requests. Thanks, Pyrospirit (talk · contribs)

Convenient link to script's source


 * As I've taken over as maintainer and have administrator privileges, this section is now obsolete. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 15:06, 19 August 2015 (UTC)

Ping
I would have appreciated a ping that my script had been modified and placed in the MediaWiki namespace (which looks awfully official, I never see it). I see this page is newer than I realized, but still. – Outriggr § 01:16, 15 March 2008 (UTC)
 * Sorry about that. Pyrospirit version (which assesses diff links as well as articles) was put in consideration as gadget back in January, but just a week ago I turned it into a gadget. Somehow I thought you did already know about this, sorry for assuming. You can add yourself to the list of maintainers of the script, since you were the original creator and will likely know how to fix problems when they appear. -- ReyBrujo (talk) 17:25, 15 March 2008 (UTC)
 * Thanks. That's ok, I am content to let others carry the torch and improve on the functionality. – Outriggr § 01:03, 16 March 2008 (UTC)

List-Class
This gadget marks List-Class articles as unassessed, but now that WP:1.0/I allows List-Class in their parameters, many more articles will use this assessment, so can the gadget be changed to show it? --Arctic Gnome (talk • contribs) 21:00, 20 March 2008 (UTC)


 * I'll see what I can do. Thanks for letting me know about this. Pyrospirit  ( talk  ·  contribs ) 02:32, 21 March 2008 (UTC)


 * ✅. The script now detects disambiguation pages, lists, and redirect pages. Pyrospirit  ( talk  ·  contribs ) 17:10, 21 March 2008 (UTC)

protocol relative urls
Would someone please look to remove the if statement that tests for secure login as the system allows for protocol relative urls. — billinghurst  sDrewth  07:15, 9 December 2011 (UTC)

Documentation for gadget authors
We're trying to start a library for gadget authors to use. Please check it out and post any questions or comments there. -- ☠ MarkAHershberger ☢ (talk) ☣ 02:24, 9 March 2012 (UTC)

2015 overhaul
I'm working on overhauling the script a bit. I've got a couple questions:
 * 1) Does anyone actually use the hook system currently in place? It's awkward, and I've removed it in my draft—but if someone is attached to it, I can add something similar in its place, and even update relevant on-wiki code.
 * 2) Pyrospirit, the current maintainer, last edited in June 2012. Would anyone object were I to take over as maintainer?

I'll post my draft code for review once I polish it up a bit; it seems to provide virtual identical functionality so far, but a) I've not tested it to my satisfaction and b) I'm not happy with some of the flow. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 04:10, 13 August 2015 (UTC)
 * What do you mean with "use the hook system currently in place"? (I have no objection to the ownership matter) Christian75 (talk) 06:25, 13 August 2015 (UTC)
 * I mean code like, and the   and   functions near the bottom of the gadget. In theory, they'd let someone insert custom code at particular points in the execution. They're awkward and not particularly useful in the context of a gadget, but might make sense in a user-script. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:40, 13 August 2015 (UTC)
 * Ok, thanks for the explanation. I have no objection to removing that either :-) (I was in doubt if it was "normal" user related). Christian75 (talk) 17:44, 13 August 2015 (UTC)

Review for new code
I've posted my draft at User:Nihiltres/Gadget-metadata.js. Please review it and suggest improvements where applicable. There's a decent chance I've broken something along the way, so testing it as well as reviewing it is also helpful. Keep in mind that using the JavaScript draft on its own won't apply the CSS styles included in the gadget, which are unmodified. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 16:49, 15 August 2015 (UTC)
 * Thanks for doing this, the code is much cleaner now. However, there's one problem that's keeping me from testing it further. If you use the preference to format links to stub pages with a different color (Preferences > Appearance > Advanced options), the links unfortunately use the same  class as the stub templates, so every article that has a link to a stub is being assessed as a stub for me. This is easy to fix, by changing the selector on line 76 from   to  . Thanks, /~huesatlum/ 18:06, 16 August 2015 (UTC)
 * Fixed. Thanks, that's exactly the sort of feedback I'm looking for. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 18:43, 16 August 2015 (UTC)

Overhaul applied
I've applied the overhaul. If you notice any bugs or inconsistencies, please let me know here. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 15:04, 19 August 2015 (UTC)

Problems since 19 August 2015
Why is the article Briarcliff Manor, New York currently displaying as a GA for me right now? On Chrome and Firefox. Thank you.-- ɱ    (talk  ·  vbm)  01:48, 20 August 2015 (UTC)
 * Since 10:31, 16 August 2015, User:Pyrospirit/metadata.js has been merely an invocation of MediaWiki:Gadget-metadata.js (see thread immediately above), so any problems should be directed to MediaWiki talk:Gadget-metadata.js.
 * However, I have determined that the script looks for certain key words, one of which is, and does not check whether those are inside  comments or not. In the  on Talk:Briarcliff Manor, New York there were both  and FA in that order, and the script doesn't look beyond the first one. So it assumed that the article was GA.  should fix it. -- Red rose64 (talk) 11:13, 20 August 2015 (UTC)
 * That's odd, because it displayed correctly for many months before now. Thanks for your help!-- ɱ    (talk  ·  vbm)  13:57, 20 August 2015 (UTC)
 * Yes, but as I noted, User:Pyrospirit/metadata.js was amended just a few days ago. -- Red rose64 (talk) 13:58, 20 August 2015 (UTC)

Help!!! The article colors have disappeared. Normally the heading of an article corresponds to its review class. So, for example, Atomic bombings of Hiroshima and Nagasaki is no longer blue and Oppenheimer security hearing has no color at all! What is the code that handles the colors? Hawkeye7 (talk) 20:53, 22 August 2015 (UTC)
 * To me the infoboxes and articles look accurate. Do you have some custom CSS or something like that? Jo-Jo Eumerus (talk, contributions) 21:04, 22 August 2015 (UTC)
 * No. This has nothing to do with the infoboxes. The title of the article is supposed to be in a color representing the class of the article. Hawkeye7 (talk) 21:11, 22 August 2015 (UTC)
 * It is generated by the stylesheet. I think its Common.css Can anyone fix this??? Hawkeye7 (talk) 21:15, 22 August 2015 (UTC)
 * I guess you refer to the gadget "Display an assessment of an article's quality as part of the page header for each article" at Special:Preferences. Do you have it enabled? What is your skin and browser? When I enable it, Atomic bombings of Hiroshima and Nagasaki gets a green heading and this text below the heading: "A good article from Wikipedia, the free encyclopedia. A former featured article candidate." Oppenheimer security hearing is black for me with no added text (just displays the default "From Wikipedia, the free encyclopedia") so something appears to be up with the gadget. I have Vector and Firefox and do get coloring on most tested articles. User:Nihiltres who made [//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-metadata.js&diff=676847375&oldid=629515064 this] edit may be able to say something. PrimeHunter (talk) 21:47, 22 August 2015 (UTC)
 * (ec) Normally, the titles are not colored. Bt there is a gadget that does ("Display an assessment of an article's quality as part of the page header for each article", see also User:Pyrospirit/metadata). Check to see if that is enabled in your preferences.  21:47, 22 August 2015 (UTC)
 * (Has a look.) Yes, but I do have that Gadget selected in my preferences. It is malfunctioning badly., they are appearing wrongly for me just as they are for you. Atomic bombings of Hiroshima and Nagasaki should be light blue for an A-class article. Oppenheimer security hearing should be light green for a B class article. I also have Vector and Firefox and like you do not get correct coloring. Hawkeye7 (talk) 21:58, 22 August 2015 (UTC)
 * Could somebody please revert that change? Hawkeye7 (talk) 22:02, 22 August 2015 (UTC)
 * The bolding and multiple posts is getting a bit much. Just wait for somebody qualified to examine it. It's only an opt-in gadget for registered users at the English Wikipedia, and it doesn't seem to do any harm apart from possibly giving inaccurate information to some editors. Software often needs maintenance. Some things might be easier if no features had been added to Wikipedia since it opened, and it only had to work in browsers and operating systems which existed then. PrimeHunter (talk) 22:23, 22 August 2015 (UTC)
 * That's not how we do things. The gadget cannot be debugged in situ. The change must be reverted, and the gadget re-tested. Hawkeye7 (talk) 22:51, 22 August 2015 (UTC)
 * , I get the same thing you get on that specific article. I tried changing everything to A-class on the talk page, except the GA template.  I think it's the GA template that is confusing it. All other articles I see have the correct color - it's just that one. Back in Dec 2013, when this one received the AL rating, it also never showed that on the article.  I think the conflict is something on the talk page banners. — Maile  (talk) 23:25, 22 August 2015 (UTC)
 * Don't bother fiddling with the talk pages; I already tried all that. The bug is in the script.  contains the ones that are not working.   ones are working. I'll  and see if he can revert the page. Hawkeye7 (talk) 23:53, 22 August 2015 (UTC)
 * sorry, which page do you want me to revert? Are you referring to this change? If so, I'm a bit nervous about reverting it given a) the warning and b) the scope for knock-on effects which I don't know much about. Nick-D (talk) 23:58, 22 August 2015 (UTC) (also )
 * It will just put it back to what it was from October 2014 until a couple of days ago. I would submit an edit request, but that normally requires a working code fragment and I don't have one. Hawkeye7 (talk) 00:10, 23 August 2015 (UTC)
 * OK, I've just reverted the code. Nick-D (talk) 00:27, 23 August 2015 (UTC)
 * Yay! Thank you! Hawkeye7 (talk) 00:46, 23 August 2015 (UTC)
 * You do not require a working code fragment if you are asking for an edit to be reverted. -- Red rose64 (talk) 11:17, 23 August 2015 (UTC)
 * For your attention, thanks. -- Red rose64 (talk) 22:47, 22 August 2015 (UTC)
 * Sorry for the delay: my offline life has been exciting the past few days (in a good way). I've fixed the bugs that would appear at Atomic bombings of Hiroshima and Nagasaki and Oppenheimer security hearing in my userspace version at User:Nihiltres/Gadget-metadata.js. The issue at Briarcliff Manor, New York is resolved by modifying that talk page, but I'll look into adding some simple comment-filtering as an improvement to the gadget. Please test the new version; I'll re-add the (fixed) modernized version on Monday if there are no objections. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 14:35, 23 August 2015 (UTC)
 * I understand. I am often called away suddenly. How do you test the new userspace version Gadget? And can you tell me why the line six lines above that one returns  instead of  ? Hawkeye7 (talk) 20:38, 23 August 2015 (UTC)
 * At, find the entry "", switch it off and save. Then go to Special:MyPage/common.js and add the following line: Save it; you may then need to WP:BYPASS your cache. -- Red rose64 (talk) 21:25, 23 August 2015 (UTC)


 * We are only half-way there. The new widget now correctly displays the assessment line underneath the title like "A B-class article from Wikipedia, the free encyclopedia. Currently a good article nominee. A former good article nominee." but it is not correctly colouring the heading. Hawkeye7 (talk) 21:42, 23 August 2015 (UTC)
 * That's expected. You're only loading the script, not the stylesheet; that'll get you all the semantics but none of the styling. To also load the styling, you can add . I haven't changed the styling or classes that the gadget uses at all. Oh, and as for the   statements: those are used within the function parameters of  calls to break out of the iteration. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 23:24, 23 August 2015 (UTC)
 * Thanks for that. It seems to be working okay now. Hawkeye7 (talk) 22:58, 24 August 2015 (UTC)

Stub assessments
Maybe I missed it being addressed somewhere else on this page, but there seems to be a bug with the assessment of articles containing stub tags. If an article contains a stub tag, the article title and color reflect that it is a stub class-article, regardless of the article's classification on the talk page. Even if the talk page is updated to Start-class or higher, the widget still says that it is stub-class until the stub tag is removed. Shouldn't the widget reflect the classification on the talk page, regardless of the presence of stub templates? Fortdj33 (talk) 14:45, 25 August 2015 (UTC)
 * I considered this, but came to the conclusion that when a talk page and article are out of sync on stub status, the mistake is on the article or its talk page, not in the script. Start-class (or better) articles should have their stub templates removed. Of course, if enough others disagree, it would be simple enough to remove the  check from the   function.
 * The behaviour of assuming stub status based on the presence of a stub template saves the script from needing to make any AJAX calls on a page including one, thereby making the script more efficient. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 21:01, 25 August 2015 (UTC)
 * I'm not sure. It has always worked this way. I have always felt that if you reclassify an article as higher than stub, then the stub tags should be removed too, thereby removing the article from the stub categories. So the colour warns me that I have overlooked the stub tag. Hawkeye7 (talk) 21:16, 25 August 2015 (UTC)
 * Yes, the version prior to 19 August ignored the stub templates on the article itself, which aided me a lot when deciding whether to undo good-faith edits by newbies who were adding stub templates to every article, presumably under the impression that these templates are used for general categorisation. I simply went through their contribs, looked for diffs that added a stub template, and if it didn't say either "A stub-class article from Wikipedia, the free encyclopedia" or "An unassessed article from ..." at the top, I would revert, (n.b. that guy isn't a newbie, he's a pain in the a**). However, whilst  of that article would have shown "A C-class article from ...", it now shows "A stub-class article from ..." so if that same case came up again (which is [//en.wikipedia.org/w/index.php?title=Barkatullah_Khan_Stadium&action=history&offset=20150731000000&limit=9 not unlikely]) I would now need to click through to the talk page to check. -- Red rose64 (talk) 23:42, 25 August 2015 (UTC)
 * Exactly. I agree that if an article has been upgraded, the stub tag should be removed. But if someone updates the talk page and does not remove the stub tag, the widget still displays that article as a stub, which is misleading. The color should reflect the status of the talk page, not the presence of a stub tag. Using the color to indicate the status of the talk page, allows editors to check the classification of articles at a glance, without having to add the extra step of checking the talk page. Fortdj33 (talk) 14:19, 26 August 2015 (UTC)
 * Another reason is that if someone adds a stub tag to an article which has not yet been assessed or has a blank talk page, the widget still displays the article as a stub-class article, giving no indication that the talk page needs to be updated. Fortdj33 (talk) 16:17, 26 August 2015 (UTC)
 * Sorry to keep harping on this, but IMO a widget that is supposed to display an assessment of an article's quality, is no good if it doesn't portray the quality assessment on the talk page. Is there a script that we can add, so that the color accurately reflects the talk page status, regardless of whether the article has a stub tag or not? Fortdj33 (talk) 12:54, 28 August 2015 (UTC)
 * Since hasn't been around for a few days, I've  the relevant test. -- Red rose64 (talk) 13:03, 28 August 2015 (UTC)
 * Beat me to it by minutes. :P {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 13:17, 28 August 2015 (UTC)
 * Thank you. That seems to have solved part of the problem, as the assessment is now showing up correctly, but even after purging an article, the corresponding color is still off. An example is Singh Is Bliing, which now states that it is a start-class article, but still shows the color of being stub-class (presumably because the stub tag has not yet been removed). Fortdj33 (talk) 13:25, 28 August 2015 (UTC)
 * No, the test of stub template was entirely disabled, the presence of a stub template can no longer affect the colour of the page title. The CSS rule that sets the colour of the title at Singh Is Bliing is  which is . By contrast, a true stub-class article like Iffley Halt railway station has its title coloured by the rule   which is  - noticeably redder and darker. These are the same colours demonstrated at User:Pyrospirit/metadata, the code for which is at User:Pyrospirit/metadata/example. -- Red rose64 (talk) 13:49, 28 August 2015 (UTC)
 * Not sure what I'm missing, but when I double checked Singh Is Bliing just now, it stated that it was a start-class article, but the color was still the darker red color. When I removed the stub tag from the article, the color changed to the expected orange for start-class articles. Fortdj33 (talk) 14:01, 28 August 2015 (UTC)
 * Another example of an article where I updated the talk page, but have not yet removed the stub tag because of this glitch, is Sultanat (2014 film). Again, I purged the page, and the assessment updated to show that it is a start-class article, but the title is still showing up in my browser with the darker red color for stub-class. Additionally, the article Boulder Dam (film) is currently unassessed, but is also showing the darker red color for stub-class. Clearly the presence of a stub tag on these articles, is still affecting the color of the title somehow. Fortdj33 (talk) 14:58, 28 August 2015 (UTC)
 * You're not using the live version. Go to User:Fortdj33/common.js and either remove that importScript line or comment it out with . -- Red rose64 (talk) 15:28, 28 August 2015 (UTC)
 * That did the trick. Thank you for all your help! Fortdj33 (talk) 16:05, 28 August 2015 (UTC)

Further problems
Another problem - the script isn't working at GIPDCE&T, Tirupati. This might be because of the ampersand. -- Red rose64 (talk) 22:23, 4 September 2015 (UTC)
 * Yep, forgot to URL-encode some text. Fixed. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 19:08, 5 September 2015 (UTC)
 * working now -- Red rose64 (talk) 20:00, 5 September 2015 (UTC)

Does not support CL, BL or AL list classes
Does not support CL, BL or AL-class articles. Displays them as either unassessed, simply List-class, or fails to supersede a lower rating (usually List-class). (Mozilla Firefox 41.0.2) Finnusertop (talk &#124; guestbook &#124; contribs) 12:36, 20 October 2015 (UTC)
 * Sure, I can add support. Give me a bit; I've been under the weather the past few days. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:26, 20 October 2015 (UTC)
 * Take your time, it's not a big deal. By the way, have you ever considered displaying importance assessments somehow? Finnusertop (talk &#124; guestbook &#124; contribs) 17:32, 20 October 2015 (UTC)
 * It shouldn't take too long: my overhaul of this script made it significantly easier to add rating-classes, and I'm most of the way through writing it (rather relaxedly). I have thought about adding importance metrics, but I haven't done it for a few reasons: First, because importance is far more likely to be variable between WikiProjects, whereas quality tends to be judged the same among all WikiProjects. That makes it technically difficult and harder to cleanly represent. Second, I find importance metrics to be somewhat subjective, and thus undesirable to highlight. Third, it wasn't implemented in this script before I overhauled it and started maintaining it, so I feel that adding it would change the scope of the gadget. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:58, 20 October 2015 (UTC)
 * Yeah, sounds like you have thought of it through. I agree with your reasons of not including importance metrics. They are supposed to vary by project. Although perhaps by their nature Vital and Core articles are a bit different in this respect (they seem to be rather consistently Top-importance, and Version 1.0 Editorial Team makes it a bit less subjective). Finnusertop (talk &#124; guestbook &#124; contribs) 18:13, 20 October 2015 (UTC)
 * ✅. AFAICT the ratings are only fully implemented and documented by the military history WikiProject, so all of them link to that project's scale information, though it looks like WikiProject Highways might also implement AL. The changes should show up fairly soon; if my cotton-ball-stuffed head has managed to mess something up, poke me again and I'll fix it. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 18:17, 20 October 2015 (UTC)
 * Sorry to bother you again, but I'm getting spotty results. Some articles show the correct new class (Camoufleurs), some don't (Force in Egypt). In most cases the new classes are superseded by old ones from other Wikiprojects' templates. This happens regardless of which class is higher. But List-class seems to creep in even if eg. C-list is the only rating (see the examples above). If whatever it is that is broken will be fixed, I'm sure you've earned your place in The Bulge. Finnusertop (talk &#124; guestbook &#124; contribs) 02:18, 22 October 2015 (UTC)
 * I see. On those pages, it looks like there's implicit rating, i.e. on Talk:Force in Egypt the code appears like so:
 * In this example, CL-class is deduced in the template by finding that the list meets certain, but not all, B-class criteria. The code of this gadget assumes that ratings are actually present in the source of the top section of the talk page; it specifically looks for  in virtually all cases, hence picking up the   there. This is problematic, since "List" is also a valid rating-class in the MILHIST system. I could in theory write code that specifically picked up WPMILHIST (and all of its redirects…) and evaluated it, but I must object to adding a big chunk of code specific to a single WikiProject—the gadget's loaded on every page, after all. Any ideas? {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 03:39, 22 October 2015 (UTC)
 * I had no idea those checklists are used to dynamically give ratings; I thought they are there just to remind of the class criteria. Sounds like a complex thing to implement. I don't think you should trade slick code for this feature. I don't want you to break existing functionality; I've never known Wikipedia without this script and wouldn't cope without it Finnusertop (talk &#124; guestbook &#124; contribs) 04:02, 22 October 2015 (UTC)
 * I had no idea those checklists are used to dynamically give ratings; I thought they are there just to remind of the class criteria. Sounds like a complex thing to implement. I don't think you should trade slick code for this feature. I don't want you to break existing functionality; I've never known Wikipedia without this script and wouldn't cope without it Finnusertop (talk &#124; guestbook &#124; contribs) 04:02, 22 October 2015 (UTC)

I went through and researched its behaviour: it doesn't seem practical to emulate, though I'll play around with it for a bit. Some ratings respect the  parameter, and some fall back to lower ratings unless other parameters have certain values—not to mention the article–list split. I'll add a note to the documentation acknowledging this as a known issue; for now the solution for any given article is to fix the  parameter in the template on the talk page to reflect the displayed value. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 06:03, 22 October 2015 (UTC)
 * There are quite a few WikiProjects that have a B-class checklist, for example . This usually works on the basis that if the page has class set to anything other than "b", that class is used without further modification; but if b is explicitly set, then all six of the B-class parameters need to be set to "yes" in order that the page be assessed as B-class - if at least one is blank, omitted, or set to "no", the page is treated as if c were set instead. Most of the code for this is in . Some WikiProjects with a checklist (e.g. ) have provision for only five checklist parameters, and with these, the sixth is implicitly "yes". For the checklist, the parameter names also vary: some WikiProjects use b1 etc.; others B-Class-1 etc.; some permit either form. -- Red rose64 (talk) 07:42, 22 October 2015 (UTC)
 * OK, so the question becomes how those can be better supported in general. A good solution will let us easily grab the rendered rating with a single API call and no special-case code. Parsing specific parameters is only really practical with special-case code given the variety in WikiProject syntax. This might be a question of improving WikiProject banners in general—e.g. adding functionality so that their rating and importance metrics are tagged with CSS classes or something. Alternatively, perhaps categories can be used? Categories would reflect rendered output, but I don't know if detecting rating categories would be reliable. What do relevant bots tend to use? I need ideas. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 16:16, 22 October 2015 (UTC)

Update: wrote some code!
I've finally gotten around to writing some code that'll theoretically support the WPMILHIST rating scheme. The code grabs the values of the B1–B6 parameters (B6 optional), and if B1's present, it re-evaluates the ratings List, A, AL, B, BL, C, and CL according to the MILHIST scheme, including for A/AL whether  is set. The code's available at User:Nihiltres/Gadget-metadata.js; please look it over and test it! :) In particular, I'm betting it'll have inconsistent results with respect to other WikiProjects that implement similar schemes with slightly different assessment rules. :/ {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 03:24, 28 December 2015 (UTC)
 * First obvious case: MILHIST's scheme requires most B-Class criteria to be met for C-Class (otherwise classifying as Start-Class), and so the new code currently misclasses Dungeons & Dragons in popular culture as Start instead of C as indicated by WikiProject Dungeons & Dragons' classification scheme. Finding similar cases from other WikiProjects would be helpful. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 03:47, 28 December 2015 (UTC)
 * Most WikiProjects that have a B-Class checklist will only test that when b is set - otherwise, the checklist is ignored. When they do test the checklist, and there isn't a full set of six (or five, as the case may be) that have been set to "yes", the class is dropped from B to C, but no further. -- Red rose64 (talk) 21:59, 28 December 2015 (UTC)

need help
I'm using this tool here: User:Jarodalien/vector.js, but is not working anymore, least about 2 months. This is a very valuable tools for me, could anyone help me to fix it?--Jarodalien (talk) 01:38, 5 September 2015 (UTC)
 * importScript('User:Liangent/User:Pyrospirit/metadata.js');
 * importScript('User:Liangent/User:Pyrospirit/metadata/assesslinks.js');
 * importScript('User:Pyrospirit/metadata/projectbanners.js');
 * Replied at Village pump (technical)/Archive 140. -- Red rose64 (talk) 08:27, 5 September 2015 (UTC)

Links failing with apostrophe in title
I have this gadget turned on in my preferences and the peer review link that it produces at the top of Nelson's Pillar doesn't work. The error message says: "The requested page title contains invalid characters: "%27"." This seems to be the Unicode character for the apostrophe failing in some way. Can this be fixed? Carcharoth (talk) 16:52, 17 March 2016 (UTC)
 * Fails for me too. It seems that the URL is being percent encoded twice, so that the apostrophe first becomes  (which is correct) and the percent sign is then percent-encoded to , which is incorrect behaviour.
 * BTW the  isn't unicode, it's the percent-encoded form of a regular ASCII character, the apostrophe. -- Red rose64 (talk) 17:00, 17 March 2016 (UTC)
 * I've been looking at the code, can't see where the URL encoding of the peer review link is done twice. -- Red rose64 (talk) 17:13, 17 March 2016 (UTC)
 * Thanks for the quick response and the lesson in terminology. :-) Carcharoth (talk) 17:27, 17 March 2016 (UTC)
 * I've found the problem and will fix it soon after a quick review. In  there's the line   and then in   there's  . Each of   and   is applying percent-encoding. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:30, 17 March 2016 (UTC)
 * Should be fixed now. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:40, 17 March 2016 (UTC)
 * Perfect! Can you wave a magic wand and produce peer reviews as well...? Seriously, many thanks for that. It is great to get things like that fixed so quickly. Carcharoth (talk) 17:55, 17 March 2016 (UTC)

Gadget is misinterpreting the parameters of Template:Article history
Please see discussion at Template talk:Article history. -- Red rose64 (talk) 20:18, 3 December 2013 (UTC)

Improvement suggestions for the color blind users
You guys have done a great job with making sure that the colors are at least WCAG AA 18+ compliant for large text. I also ran it through Sim Daltonism (a color blindness simulation tool) with some of the more common color blindness. Here are the results in screenshots below. Red / green color blindness is the most common, so as I had suspected, the orange/red/green colors would have posed some issues. This is a link to a really good and short example on what I'm highlighting.

         

My suggestions are to:
 * Remove either red or green in the palette. Instead, use graphical elements to distinguish different levels within a grouped grade (good article, B class, C class). So e.g., instead of different shades of green for good article, B class and C class, use the same color but different graphical element to distinguish the three different classes.
 * Include a tooltip to give more context to remind about what the color/graphical element mean

There are several advantages with the added tooltip:
 * Giving option to read more about the article class
 * Ability to add a call-to-action to improve content
 * I'm also always trying to find ways to humanize Wikipedia articles, so this will give an opportunity to mention that these articles are edited and reviewed by humans (e.g.: this article has been peer-reviewed)

 

What do you guys think?

-- http://wearecolorblind.com/article/a-quick-introduction-to-color-blindness — Preceding unsigned comment added by MGalloway (WMF) (talk • contribs) 23:06, 23 December 2015 (UTC)
 * To address the main issue: the additions to the tagline made by the gadget already support colourblind users by literally spelling out the information as text. The colour is just a nice bonus for those who can see it. The tagline format also manages minimalism (less added complexity in the UI) by enhancing an existing feature (the tagline) rather than adding new ones (icons and tooltips), and doesn't require user interaction (hover or tap for the tooltip, with only a cryptic icon until users figure that out). For all that the proposed design's pretty, I oppose moving towards it unless the tagline were planned to be removed.
 * You mention "ways to humanize Wikipedia articles" and that "this will give an opportunity to mention that these articles are edited and reviewed by humans (e.g.: this article has been peer-reviewed)"; the script already highlights current and former GA-, FA-, and peer-review-related processes noted on the talk page. Are there other things it should capture?
 * I like the sound of of adding a "call to action", but I'm not sure in what ways I'd implement that, or if the gadget's install base is an appropriate target for those calls. Would you elaborate? {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 07:36, 24 December 2015 (UTC)
 * Oh wow, you’re right. I just looked again for the tagline and found it this time. I’d have to say, it is a very minimal way of tackling this issue for the colorblind. I hope it was just me that I missed the new info added to that line since I typically gaze pass that "From Wikipedia, the free encyclopedia” line. Now that I read your explanation, I'm questioning if I would have noticed the tagline explanation association with the title color change. I don’t think it's compulsory, but when users notice the title color change, they might wonder why. Regarding humanizing Wikipedia articles. I come from the perspective that we should always find an opportunity to humanize our content and inviting knowledgeable humans to improve/edit Wikipedia articles. This perspective comes from our general readers' impression that Wikipedia articles are untouchable or that it’s easily broken once they touch it. But the fact is that humans collectively wrote these articles and so humans can also collectively fix. Sounds simple but our readers somehow do not see their connection between Wikipedia human editors and themselves. The call-to-action for e.g. a stub-class could be as simple as a line like:
 * This is a stub-class article—bad quality articles fall into this category. You can try adding more meaningful content in this article to improve it!
 * "Meaningful content” can link to something like that: https://en.wikipedia.org/wiki/Wikipedia:Article_development#Research So.. if you were to entertain an idea like that, I suggest that this info is presented as part of the tagline because a "C-class article" to a previously less familiar user like me means nothing without something else to compare to without having to read or frequently refer to the documentation/talk page. I even wonder if C-class could be substituted with the definition of C-class for a more functional and minimal tagline. Using the same stub-class example above:
 * This is a bad quality article. You can try adding more meaningful content in this article to improve it!
 * I’m making these proposals thinking more users would enable this gadget in the future cus I think it’s simple and brilliant.
 * MGalloway (WMF) (talk) 04:16, 25 December 2015 (UTC)
 * What is "bad quality"? -- Red rose64 (talk) 19:16, 25 December 2015 (UTC)
 * According to the documentation, stub-class articles are "A very basic description of the topic. However, all very-bad-quality articles will fall into this category." In the same link, you can find more explanation about the particular grading. However, I'm unaware how the working group of this gadget defines "bad article" though. MGalloway (WMF) (talk) 20:00, 25 December 2015 (UTC)
 * My point is that I've bever seen an article described by this gadget as "bad quality". It makes no subjective judgements: it gets its information from the class parameters of the WikiProject banners on the associated talk page. No WikiProjects recognise bad: the next one up from stub is start, then c, b etc. Please give an example of an article where the word "bad" is displayed by this gadget. -- Red rose64 (talk) 23:02, 25 December 2015 (UTC)
 * I was thinking out loud to see if there could be any benefit in helping users understand more about what a stub-class is beyond the label "stub-class" and then displaying how a simple call-to-action could work. MGalloway (WMF) (talk) 15:48, 26 December 2015 (UTC)
 * I really do not think that we should move away from established conventions, see Version 1.0 Editorial Team/Assessment. The colours chosen are similarly based on those set by Template:Class/colour although not exactly the same, in order to give good contrast. -- Red rose64 (talk) 00:47, 27 December 2015 (UTC)
 * I suppose there's a valid point that the colour change is the most obvious change the gadget makes, and that perhaps more could be done to highlight the currently text-based information added by the gadget. I'll keep it in mind and perhaps play around with some ideas/code for a more graphical version—I need to eventually do some restructuring anyway to better separate code from messages, and that restructuring will make alternate interfaces easier. I'll keep you updated.
 * On the topic of stubs being "bad quality", I agree with Redrose64. "Bad" is vague and unhelpful. An article can be, for example, short, unstructured, or unreferenced, and those are concrete and, importantly, implicitly addressable problems. More broadly, it's way out of the scope of this gadget to do any definition of article quality that isn't simply stating the defined rating—ratings which are purposely vague because quality is difficult to quantify, let alone consistently across many subject areas. That's not to say I don't support better surfacing of quality ratings—I do—but that this isn't the place to do it. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 19:33, 27 December 2015 (UTC)

Some notes
Since I haven't worked on this in a while, I might as well jot down some notes on the next things to work on with this script:


 * Review status of PageAssessments, in particular its implementation in WPBannerMeta (talk). Once implemented widely via the template, the script can be switched over to pull from the assessments API, which should be far more reliable than munging the talk-page source by regex (the current approach). We still need to pull the page source to check for various active/former quality reviews, but reducing reliance on wikitext munging is highly desirable, even at the cost of more API requests.
 * If PageAssessments is implemented widely, then the script should be rewritten to pull from its API rather than the talk page, whenever possible.
 * Review status of moving class to Lua/JSON. In particular, the idea's to store class data (colour, icon, labels, etc.) in a JSON file (currently Template:Class/definition.json), then render from that (using Module:Class to implement ). This has the advantage that class definition data will exist in a single code-independent file and can be updated in one step—scripts and templates will stay synchronized to the same class definitions.
 * For the purpose of this script, we should add values to the JSON file to support text colours used in this script: i.e. the darkened class-colour variants used in MediaWiki:Gadget-metadata.css.
 * For the purpose of this script, we should look into adding other values to the JSON file that are reasonably universal.
 * If the previous items are covered, then the script should be rewritten to pull data from the JSON file rather than hardcoded values, whenever possible.
 * Improve core code. In particular:
 * Clean up quality review detection. I'm not happy with where things are on detecting current or old quality reviews; while the code works, it's inelegant and hard to read. There's a lot of potential for improvement there.  is a particular offender, and   literally has a   comment.
 * Separate evaluation and rendering steps as much as possible. In particular, untangling the way "extras" (quality review notes, or the A/GA special case) are added to the rendering would be nice.

I'll probably start working properly on this once Module:Class is officially powering class, but I'd prefer to do that and the PageAssessments update at the same time. In the meantime, I encourage anyone interested in this gadget and reading this to participate at Template talk:Class, Template talk:WPBannerMeta, or Categories for discussion/Log/2016 December 20 (a minor hurdle: rename one of the top-level assessment categories to be consistent with its child categories). {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 19:17, 13 January 2017 (UTC)
 * Given the WMF desire to display Wikidata descriptions in mobile on en.WP (it's live on other Wikipedias), suggested an option to show that on desktop (ref WP:VPT). It might be nice if that were integrated into this gadget given they would be sharing a similar space (prior to some WMF-official integration which we may or may not ever see). --Izno (talk) 12:52, 19 January 2017 (UTC)
 * Thanks for pointing me to that discussion; I've commented there. My first thought is that Wikidata descriptions are currently out of scope for this gadget; that said, I definitely want to maintain compatibility if they're implemented as a gadget, beta, or default feature. In particular, I'll keep that in mind when I get around to addressing the "separate evaluation and rendering steps" above, since the possibility of using alternative renderers would offer lots of flexibility for addressing compatibility issues. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 16:37, 19 January 2017 (UTC)

List-class disambiguation
The words "list class" currently link to Lists, which is a disambiguation page. Stand-alone lists is probably what you want. I only noticed it because I have the "disambig links in orange" gadget activated, which makes it look rather silly!--Newbiepedian (talk · contribs · X! · logs) 20:42, 14 April 2018 (UTC)
 * Replace  with  . --Izno (talk) 20:58, 14 April 2018 (UTC)
 * Yes check.svg Done &mdash; Martin (MSGJ · talk) 06:42, 16 April 2018 (UTC)

spacing
Has something changed with regards to the spacing between articles proper and the assessment? They've become much closer for me, and I can't see where I've done anything to cause this. —  fourthords  &#124; =Λ= &#124;  03:14, 1 June 2018 (UTC)
 * What exactly is this? Please include a WP:WPSHOT. -- Red rose64 &#x1f339; (talk) 17:01, 1 June 2018 (UTC)
 * assessment spacing screenshot bunching 2018-06-01.png (and all other pages).]] Sure, sorry!  I assumed that if it was happening to me, it was a widespread problem and most would see it, too.  —   fourthords  &#124; =Λ= &#124;  01:49, 2 June 2018 (UTC)
 * I get a gap. I can make the gap disappear by means of this CSS:  Perhaps you have some custom CSS somewhere. -- Red rose64 &#x1f339; (talk) 21:47, 2 June 2018 (UTC)
 * My CSS has been empty since 2010, though. So has the assessment gadget not been changed recently?  Is there a different on-wiki forum where I should ask about UI weirdness?  —   fourthords  &#124; =Λ= &#124;  17:07, 3 June 2018 (UTC)
 * See also Village pump (technical). -- Red rose64 &#x1f339; (talk) 22:43, 4 June 2018 (UTC)
 * Thanks so much! —   fourthords  &#124; =Λ= &#124;  15:42, 5 June 2018 (UTC)

Wrong colour
Operation Grapple is displaying in Green as a Good Article, when it should be in blue as an A-class article. Can anyone explain why? Hawkeye7  (discuss)  06:05, 15 October 2017 (UTC)
 * I can't reproduce that behaviour, and A-Class is specifically set to take priority over GA-Class when both apply. Does the issue still occur for you? {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:44, 14 July 2018 (UTC)


 * (Has a look) Seems to be working now.  Hawkeye7   (discuss)  20:59, 14 July 2018 (UTC)

Bug report

 * Skin: vector
 * Browser: Chrome
 * Page: V. Gordon Childe
 * Description that shows up: A good article from Wikipedia, the free encyclopedia. A former featured article candidate.
 * Actual article status: Featured article (see V. Gordon Childe)

Thanks, --DannyS712 (talk) 00:44, 8 January 2019 (UTC)
 * , no bug, Gadget-metadata goes off of wikiproject assessments and the issue is fixed by updating them. Galobtter (pingó mió) 03:53, 8 January 2019 (UTC)
 * Oh. Thanks --DannyS712 (talk) 03:55, 8 January 2019 (UTC)
 * To-do for the future: implement omniscience. ;) {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 18:49, 8 January 2019 (UTC)

Link
Hi, could you please change: to  The page was moved to Content assessment in July 2018. Cheers – Ianblair23 (talk) 03:06, 10 March 2019 (UTC)
 * Pinnging and . Cheers – Ianblair23 (talk) 23:23, 16 March 2019 (UTC)
 * ✅ Best thing to do is to make an edit interface-protected request. Galobtter (pingó mió) 08:00, 17 March 2019 (UTC)
 * Brilliant. Thanks . Cheers – Ianblair23 (talk) 08:25, 17 March 2019 (UTC)
 * I really need to get around to requesting interface administrator access; I can't properly maintain this without it. :/ {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 19:31, 17 March 2019 (UTC)

Set index articles
Set index article are currently given the same colour as disambiguation pages, which is confusing as these are two different things. Some WikiProjects have started using SIA-Class which has its own colour defined at Class/colour. Perhaps this gadget could follow suit? PC78 (talk) 20:07, 5 June 2016 (UTC)


 * I'm aware of the request but probably won't have a chance to fulfill it for a while.
 * The current situation is a result of the evolution of set index articles away from disambiguation pages (they used to be treated the same, hence the behaviour here). There's some support in  and , so anyone else who wants to work on this should double-check and/or update those definitions.   is missing an item to recognize the class from a rating value in the template, and MediaWiki:Gadget-metadata.css will need a separate colour definition (and the colour will probably need to be tweaked a bit away from the one in Class/colour to meet WCAG's recommendations for text on white). {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 02:47, 6 June 2016 (UTC)


 * I know it's been a while, but is there any chance you can have another look at this? The gadget can distinguish between dab pages and SIAs in the text it displays, and per WP:SIANOTDAB I still think it should make that distinction in colour as well. If the colour used by class is a problem it could always be tweaked. PC78 (talk) 13:30, 8 August 2019 (UTC)

Page-type link glitch
When I'm logged into Wikipedia, the line of text directly below the page title that normally says From Wikipedia, the free encyclopedia is replaced by an augmented version such as A C-class article from Wikipedia, the free encyclopedia or A disambiguation page from Wikipedia, the free encyclopedia. This is a feature I turned on so many years ago that I can't remember if it's standalone thing or part of some multi-featured plug-in like MoreMenu, and I've had no luck searching for it due to lack of terminology. Does anyone know what this is and who I would contact about fixing an error? (The link used for set index pages is going to Disambiguation, which no longer exists.) Thanks —jameslucas ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄  18:44, 27 August 2019 (UTC)
 * → "". -- Red rose64 &#x1f339; (talk) 19:07, 27 August 2019 (UTC)
 * Thanks, ! Looks like has been drawing attention to this glitch for some time, so I guess I'm not going to be able to secure a fix today. 😕 —jameslucas  ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄  19:22, 27 August 2019 (UTC)
 * since it is a gadget we can edit it, what is the "error" you want fixed? — xaosflux  Talk 19:47, 27 August 2019 (UTC)
 * the last line of code for setindex should be url: mw.util.getUrl("Wikipedia:Set_index_articles") (I think with low lines rather than spaces, but I could be wrong). Cheers! —jameslucas ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄  20:35, 27 August 2019 (UTC)
 * moved to this page for follow up. — xaosflux  Talk 20:40, 27 August 2019 (UTC)
 * mind having a look at this? — xaosflux  Talk 20:41, 27 August 2019 (UTC)
 * Galobtter (pingó mió) 21:34, 27 August 2019 (UTC)
 * Thank ! —jameslucas ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄  23:38, 27 August 2019 (UTC)

See Crime and Punishment article for error
Gadget says Crime and Punishment "Currently undergoing a good article reassessment", but the GAR was 10 years ago ♦ Lingzhi2 (talk) 06:16, 20 September 2019 (UTC)
 * No, Talk:Crime and Punishment/GA2 is still open. -- Red rose64 &#x1f339; (talk) 18:58, 20 September 2019 (UTC)
 * The link atop the page took me to a closed one. ♦ Lingzhi2 (talk) 19:41, 20 September 2019 (UTC)
 * One possibility is that the parameters of the are incorrect. -- Red rose64 &#x1f339; (talk) 20:18, 20 September 2019 (UTC)
 * I just tried again, same issue. I dunno whether it's a systemic problem or a one-off, but whoever fixes this sort of problem probably should look into it... ♦ Lingzhi2 (talk) 20:39, 20 September 2019 (UTC)
 * I vaguely recall that issue being a known one. --Izno (talk) 03:08, 21 September 2019 (UTC)
 * if knownIssue == True:
 * ballDropped = True
 * ♦ Lingzhi2 (talk) 03:52, 21 September 2019 (UTC)

Proposed changes to MediaWiki:Gadget-metadata.css
A few issues with the stylesheet:


 * b-text and dab-text colours appear to fail the accessibility requirements of MOS:COLOUR and should ideally be at least WCAG AA compliant for large text on a white background. Check: b-text, dab-text
 * A distinct colour should be defined for set index articles to distinguish them from dab pages, per WP:SIANOTDAB

Suggest the following remedies:


 * Use colour #490 for b-text (check) and #0A6 for dab-text (check)
 * Use colour #A7F for sia-text (check)

Also note the following:


 * Bplus-Class is no longer used by any WikiProject
 * Background colours for FA/FL, Stub/SL, List, SetIndex, Current and Future are all outdated; see class/colour for current values
 * Background colours for Top, High, Mid, and Low are also outdated; see importance/colour for current values

I haven't dealt with stylesheets much before now, but I believe the following looks good:

/* This is a custom stylesheet that goes with the metadata script (User:Pyrospirit/metadata). */

.assess-article-rating { font-style: italic; } .assess-info-all { font-style: italic; }

.assess-fa-text, .assess-fl-text      { color: #06C; } .assess-a-text, .assess-al-text      { color: #29C; } .assess-ga-text      { color: #070; } .assess-b-text, .assess-bl-text      { color: #490; } .assess-c-text, .assess-cl-text      { color: #993; } .assess-start-text   { color: #B60; } .assess-stub-text, .assess-sl-text      { color: #901; } .assess-list-text    { color: #85F; } .assess-cur-text     { color: #A4C; } .assess-future-text  { color: #568; } .assess-dab-text     { color: #0A6; } .assess-setindex-text { color: #A7F; }

.assess-sl           { background-color: #FFA4A4; } .assess-cur          { background-color: #E6A4FF; } .assess-future       { background-color: #B4BBFF; } .assess-dab          { background-color: #00FA9A; } .assess-setindex     { background-color: #E9DAFF; }

.assess-importance-top { background-color: #FF97FF; } .assess-importance-high { background-color: #FFACFF; } .assess-importance-mid { background-color: #FFC1FF; } .assess-importance-low { background-color: #FFD6FF; }

.firstHeading .editsection { color: black; }

/* Used to be in MediaWiki:Common.css. */ .assess-fa, .assess-fl   { background-color: #9CBDFF; } .assess-a    { background-color: #66FFFF; } .assess-ga   { background-color: #66FF66; } .assess-b    { background-color: #B2FF66; } .assess-c    { background-color: #FFFF66; } .assess-start { background-color: #FFAA66; } .assess-stub { background-color: #FFA4A4; } .assess-list { background-color: #C7B1FF; }

Colour test:


 * Featured article
 * A-class article
 * Good article
 * B-class article
 * C-class article
 * Start-class article
 * Stub-class article
 * List-class article
 * Set index article
 * Current-class article
 * Future-class article
 * Disambiguation page

I would appreciate someone else looking over it though. PC78 (talk) 22:13, 23 September 2019 (UTC)
 * Probably what should happen is that the colors templates get TemplateStyled and then this sheet can @import that sheet. --Izno (talk) 22:30, 23 September 2019 (UTC)
 * Since hasn't been around for a bit, do you have a recommendation as to whether the gadget should import the templatestyles page (if that's even possible) or whether vice versa. I know templatestyles pages don't allow the scary parts of CSS, and I think these colors probably could/should be editable more generally than I-admins, so it should be safe to go the one way. Or perhaps neither is a good option for some reason? :) --Izno (talk) 22:41, 23 September 2019 (UTC)
 * Seems like it's possible. No opinion on whether it's a good idea. Anomie⚔ 23:54, 23 September 2019 (UTC)
 * I've had some ideas on ways to modernize this and solve the underlying problems—I'm thinking big, more along the lines of "make all WikiProjects register their configuration and custom descriptors in a portable JSON form rather than an arcane wikitext one"—but that's a whole other project. I've been relatively inactive because life's gotten in the way and I've been inhibited from making drop-by changes by the new need to pick up the interface-admin permission to edit this gadget myself—which in turn I'd jump for if I were active, but can't justify without activity. I haven't used TemplateStyles yet; my impression from initial peeks has been that it's optimized enough for templates that it would be difficult or impossible to use here. In particular, this gadget styles the title and tagline, while styles added by TemplateStyles are scoped to the main parsed content. That limit, assuming it applies (perhaps it can affect the title/tagline?) is the biggest barrier for this gadget, while elsewhere TemplateStyles is great. I'm relatively apathetic to specific colour suggestions, but WCAG accessibility is important; I'll take a proper look at the code part of this eventually. Feel free to do stuff without me; I'll be back eventually, but … 2019 has not been a good year. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 23:42, 25 September 2019 (UTC)

A further observation: using the "Modern" skin the article title is usually displayed in white text on a dark blue background, so the gadget produces some unfortunate colour combinations such as this. I note that the gadget doesn't appear to work with the "MinervaNeue" skin at all (intentionally?); perhaps it could/should be disabled for Modern as well? PC78 (talk) 20:25, 26 September 2019 (UTC)
 * Not working with Minerva is not intentional, I think--Minerva just does fun stuff with not loading things. Modern OTOH would need to be a deliberate change in the script. OTOH it is neither the default nor any of the most-used skins (which I expect will be Monobook and Vector). --Izno (talk) 21:48, 26 September 2019 (UTC)

Interface-protected edit request on 7 October 2019
This gadget currently uses "wgPageName" to find out if a page is "Main Page". In other wikis, "Main Page" is not necessarily the address of the main page. For example, in mediawiki.org, Mediawiki is the main page. It should use wgIsMainPage config. Replace  with. Thanks. <u style="color:#087643;font-face:arial;text-shadow:gray 0.2em 0.2em 0.4em;">Masum Reza <sup style="color:orange;">📞 04:26, 7 October 2019 (UTC)
 * Ping to currently listed maintainer, for review.  Nihiltres, please ping or reactivate the ER following review. As far as what some other project may do  that isn't really our problem. —  xaosflux  Talk 11:02, 7 October 2019 (UTC)
 * Yes, I know. But per T120085, Wikimedia wikis will serve the main page from a consistent URL. So the Main page may not be located in Main Page in future. <u style="color:#087643;font-face:arial;text-shadow:gray 0.2em 0.2em 0.4em;">Masum Reza <sup style="color:orange;">📞 15:44, 7 October 2019 (UTC)
 * Sure, but this is noted as a global gadget file, so we should be good stewards. I'd support making this change, although I think all we need is just   to simple  . ~  Amory <small style="color:#555"> (u • t • c) 21:31, 7 October 2019 (UTC)
 * Oh right. This config's value defaults to true in a main page otherwise it doesn't exist. <u style="color:#087643;font-face:arial;text-shadow:gray 0.2em 0.2em 0.4em;">Masum Reza <sup style="color:orange;">📞 22:46, 7 October 2019 (UTC)
 * I recommend, the identity operator with three equals, because that alone avoids truthy values that are not  . If the behaviour of  .were to change, an identity operator would be less likely to break badly than the others. Still, the core change is a good idea: replace a hacky check with a purpose-built one. Xaosflux, would you please implement that, changing line 38 of the script? {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 20:37, 9 October 2019 (UTC)
 * ✅ — xaosflux  Talk 23:20, 9 October 2019 (UTC)

Hiding display when the article does not exist
Pinging @Nihiltres for visibility. Currently the behavior for non-existent pages is showing "An unassessed article from Wikipedia, the free encyclopedia". I think that the message should simply be hidden for non-existent articles, it's unnecessary IMO. 🐶 EpicPupper (he/him &#124; talk) 05:16, 7 January 2022 (UTC)




 * Good idea. This can be easily implemented with an extra condition in the checks at the start of . Would an interface editor please add the line   after line 35 of the script (matching indentation with the preceding and succeeding lines)? One day, I should apply for the interface-editor permission. :/ {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 17:48, 7 January 2022 (UTC)
 * ✅ Izno (talk) 21:00, 7 January 2022 (UTC)

Missing assessment information for the 'Black Death' article
For some reason, the article about the 'Black Death' is missing some information about its quality assessment in the tagline below its header. I'm currently using the latest version of Mozilla Firefox on a 64-bit Windows 10 Home laptop. -- PK2 (talk) 11:08, 11 March 2022 (UTC)
 * ❌ (as to the immediate edit request) as this is not an edit request. Discussion of trouble can certainly continue below. —  xaosflux  Talk 21:37, 11 March 2022 (UTC)
 * What do you mean by that? PK2 (talk) 21:53, 11 March 2022 (UTC)
 * the edit request system is an important check against the protection system. If you have a complete and specific edit to propose, please do so (such as in User:PK2/sandbox.js), test it, then reactivate the edit request.  If you just want to talk about this and how someone might one day improve it, this is the right place - but the page shouldn't be enqueued for patrolling administrators to process a request that isn't ready to go. —  xaosflux  Talk 23:41, 11 March 2022 (UTC)
 * 1. I'm sorry, but I didn't know that.
 * 2. Don't forget about the first issue above. PK2 (talk) 04:15, 12 March 2022 (UTC)
 * … the script currently assumes that a GAR must have taken place for a delisted good article, and that assumption leads to an error on Black Death which doesn't have a GAR listed while being marked as a delisted good article. This suggests that I need to fix some fragility in the detection of former statuses, and I'll look into that. On the other hand, it begs the question why no GAR is listed; I found a GAR listed at revision 241065973 that isn't present in the current article history; re-adding that might solve the proximate issue until I write a fix for the underlying bug. {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 20:53, 12 March 2022 (UTC)
 * I just re-added the GAR on the talk page for 'Black Death' and that fixed the problem with its quality assessment information not showing in the tagline below its header. PK2 (talk) 06:43, 16 March 2022 (UTC)

Ditched font colours for stickers
I really liked the idea of this gadget, but the whole colourful font thing didn't agree with me. So I didn't use it. Today I found a way for it to work for me:

Please feel free to steal this, and let me know if you made any improvements. Cheers. — Guarapiranga ☎ 04:52, 23 May 2022 (UTC)

Question about how the script works
If an article belongs to 2 or more projects and each of them gives a different rating, how does it determine which one to display? E.G Wiki Project X has given Article Bla an a-class rating, but Wiki Project Y has rated it c-class? KaraLG84 (talk) 13:19, 2 June 2022 (UTC)
 * I think that it uses the higher (or highest) rating, in the order FA-A-GA-B-C-Start-Stub-Unassessed. -- Red rose64 &#x1f339; (talk) 20:38, 2 June 2022 (UTC)

Set-index articles
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)
 * 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)
 * Presumably MediaWiki talk:Gadget-metadata.js/Archive 1. 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)