User:Shahadat/AQFetcher
Article Quality (AQ) Fetcher will stylize as many links as possible according to the quality of their target article by assigning CSS classes accordingly. The following CSS classes are assigned once the script has completed:
AQ-FA AQ-A AQ-Start AQ-Unclassified AQ-GA AQ-B AQ-Stub AQ-Unknown AQ-C
These correspond to the standard grades defined by the Editorial Team with the exclusion of the two quality grades for lists (FL or Featured List, and L or List).
AQ-Unclassified and AQ-Unknown are the only additions. The script is a work in progress and for the most part these two categories can be treated as the same. In the future, AQ-Unclassified should indicated that the target article has not yet been evaluated for quality. AQ-Unknown on the other hand should always indicate that this script could not determine whether the target article was assessed or not. At the time of publishing this script however (Oct 2015), I'm having difficulty properly assigning the AQ-Unknown CSS class.
Usage and Installation
To install this script, copy/paste the code snippet below into your common.js file.
importScript('User:Shahadat/AQFetcher.js'); // Linkback: [[User:Shahadat/AQFetcher.js]]
IMPORTANT NOTE: You also need to provide the style/color for each type of link. If you do not plan to write your own CSS, you will need to add an additional line to common.js
to complete the installation. Please see the section on styles and colors below for a couple of options. If none of this makes sense to you, just add the following line as well (immediately under the line above is fine):
importStylesheet('User:Shahadat/AQFetcher.css'); // Linkback: [[User:Shahadat/AQFetcher.css]]
Styles and Colors
If the script is used in isolation there will be no color changes on Justapedia. The only changes the script makes are to add class attributes to link elements in article pages. Feel free to use your own styles following one the CSS models below or import them directly. Simply import the preferred stylesheet in your common.js file or the appropriate theme-specific stylesheet.
General Purpose
- User:Shahadat/AQFetcher.css - color-coded links according to the quality scale.
- User:Shahadat/AQFetcher-Icons.css - show icons before links instead of re-coloring them. This style helps make AQFetcher more compatible with similar scripts that would also color links. Thanks to Shahadat for providing this style.
For Readers
- User:Shahadat/AQFetcher-AOrBetter.css - only articles with A, FA, or GA ratings retain traditional link appearance. All links remain active but articles without "high" ratings will look like regular text when reading.
- User:Shahadat/AQFetcher-BestInBlue.css - articles with a "higher" quality are shown in brighter blue.
For Editors
I've found these styles particularly useful for browsing the under-developed corners of Justapedia:
- User:Shahadat/AQFetcher-StartsAndStubs.css - only Start-class and Stub-class retain traditional link appearance. Other links remain in place but appear as regular text.
- User:Shahadat/AQFetcher-WorstInBlue.css - articles with a "lower" quality are shown in brighter blue.
Acknowledgements
Key acknowledgement goes to Shahadat whose link classifier script (User:Shahadat/linkclassifier.js) was used as an initial template structure to get up an running quickly with the MW API. Go check it out if you're interested in a lot more ways to classify and color various links on MediaWiki sites.
Shahadat provided a really helpful alternative icon style. It's great if you use lots of various scripts together. Thanks!
Known Limitations
- Article Namespace - By design the script only runs when browsing in the article namespace. It will not stylize links on pages in User:, Talk:, Justapedia:, Category:, or any other namespaces. I wrote this way because I'm already uncomfortable with the number of API XHR requests the script makes on large pages. --N8 21:01, 31 October 2015 (UTC)
- Multiple classification - If an article has multiple classifications (by different WP projects for example) the classification to which this script gives preference is undefined.
- Unclassified/Unknown - I can't seem to properly mark article links with the 'AQ-Unknown' class at this time.
- Redirects - Links which have not been updated and point to a redirect page will not be stylized according to the redirection target.
- Speed ...it's not super fast. I can usually see the styles applied in phases after the article page loads.
Quality Scale Reference
Class | Criteria | Reader's experience | Editing suggestions | Example |
---|---|---|---|---|
??? | The article has attained Feature Showcase article status by passing an in-depth examination for objectivity and neutrality by impartial reviewers from the Editorial Review Board. More detailed criteria
The article meets the Showcase article criteria:Justapedia:Featured Showcase criteria
|
Professional, outstanding, and thorough; a definitive source for encyclopedic information. | No further content additions should be necessary unless new information becomes available; further improvements to the prose quality are often possible. | Cleopatra (as of June 2018) |
![]() |
The article has attained featured article status by passing an in-depth examination by impartial reviewers from WP:Featured article candidates. More detailed criteria
The article meets the featured article criteria:Justapedia:Featured article criteria
|
Professional, outstanding, and thorough; a definitive source for encyclopedic information. | No further content additions should be necessary unless new information becomes available; further improvements to the prose quality are often possible. | Cleopatra (as of {{{date}}}) |
![]() |
The article has attained featured list status. More detailed criteria
The article meets the featured list criteria:Justapedia:Featured list criteria
|
Professional standard; it comprehensively covers the defined scope, usually providing a complete set of items, and has annotations that provide useful and appropriate information about those items. | No further content additions should be necessary unless new information becomes available. | List of dates predicted for apocalyptic events (as of May 2018) |
![]() |
The article is well organized and essentially complete, having been examined by impartial reviewers from a WikiProject or elsewhere. Good article status is not a requirement for A-Class. More detailed criteria
The article meets the A-Class criteria:
Provides a well-written, clear and complete description of the topic, as described in Wikipedia:Article development. It should be of a length suitable for the subject, appropriately structured, and be well referenced by a broad array of reliable sources. It should be well illustrated, with no copyright problems. Only minor style issues and other details need to be addressed before submission as a featured article candidate. See the A-Class assessment departments of some of the larger WikiProjects (e.g. WikiProject Military history). |
Very useful to readers. A fairly complete treatment of the subject. A non-expert in the subject would typically find nothing wanting. | Expert knowledge may be needed to tweak the article, and style problems may need solving. JP:Peer review may help. | Battle of Nam River (as of June 2014) |
![]() |
The article has attained good article status, having been examined by one or more impartial reviewers from JP:Good article nominations. More detailed criteria
The article meets the good article criteria:Justapedia:Good article criteria
|
Useful to nearly all readers, with no obvious problems; approaching (but not equaling) the quality of a professional encyclopedia. | Some editing by subject and style experts is helpful; comparison with an existing featured article on a similar topic may highlight areas where content is weak or missing. | Discovery of the neutron (as of April 2019) |
B | The article is mostly complete and without major problems but requires some further work to reach good article standards. More detailed criteria
The article meets the six B-Class criteria:
|
Readers are not left wanting, although the content may not be complete enough to satisfy a serious student or researcher. | A few aspects of content and style need to be addressed. Expert knowledge may be needed. The inclusion of supporting materials should be considered if practical, and the article checked for general compliance with the Manual of Style and related style guidelines. | Human (as of April 2019) |
C | The article is substantial but is still missing important content or contains much irrelevant material. The article should have some references to reliable sources, but may still have significant problems or require substantial cleanup. More detailed criteria
The article cites more than one reliable source and is better developed in style, structure, and quality than Start-Class, but it fails one or more of the criteria for B-Class. It may have some gaps or missing elements; need editing for clarity, balance, or flow; or contain policy violations, such as bias or original research. Articles on fictional topics are likely to be marked as C-Class if they are written from an in-universe perspective. It is most likely that C-Class articles have a reasonable encyclopedic style.
|
Useful to a casual reader, but would not provide a complete picture for even a moderately detailed study. | Considerable editing is needed to close gaps in content and solve cleanup problems. | Wing (as of June 2018) |
Start | An article that is developing but still quite incomplete. It may or may not cite adequate reliable sources. More detailed criteria
The article has a usable amount of good content but is weak in many areas. Quality of the prose may be distinctly unencyclopedic, and Justapedia:Manual of Style compliance non-existent. The article should satisfy fundamental content policies, such as Justapedia:Biographies of living persons. Frequently, the referencing is inadequate, although enough sources are usually provided to establish verifiability. No Start-Class article should be in any danger of being speedily deleted.
|
Provides some meaningful content, but most readers will need more. | Providing references to reliable sources should come first; the article also needs substantial improvement in content and organisation. Also improve the grammar, spelling, writing style and improve the jargon use. | Ring-tailed cardinalfish (as of June 2018) |
Stub | A very basic description of the topic. Can be well-written, but may also have significant content issues. More detailed criteria
The article is either a very short article or a rough collection of information that will need much work to become a meaningful article. It is usually very short; however, if the material is irrelevant or incomprehensible, an article of any length falls into this category. Although Stub-class articles are the lowest class of the normal classes, they are adequate enough to be an accepted article, though they do have risks of being dropped from being an article altogether.
|
Provides very little meaningful content; may be little more than a dictionary definition. Readers probably see insufficiently developed features of the topic and may not see how the features of the topic are significant. | Any editing or additional material can be helpful. The provision of meaningful content should be a priority. The best solution for a Stub-class Article to step up to a Start-class Article is to add in referenced reasons of why the topic is significant. | Crescent Falls (as of June 2018) |
List | Meets the criteria of a stand-alone list, which is an article that contains primarily a list, usually consisting of links to articles in a particular subject area. | There is no set format for a list, but its organization should be logical and useful to the reader. | Lists should be lists of live links to Justapedia articles, appropriately named and organized. | List of Guggenheim Fellowships awarded in 1947 (as of June 2018) |
See also
- Justapedia:Metadata gadget
- User:Shahadat/assesslinks.js (an updated version of User:Shahadat/metadata/assesslinks.js) similarly allows you to see the assessment of every article linked from a given page.
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:N8wilson/AQFetcher |