User:N8wilson/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
[edit]To install this script, copy/paste the code snippet below into your common.js file.
importScript('User:N8wilson/AQFetcher.js'); // Linkback: [[User:N8wilson/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:N8wilson/AQFetcher.css'); // Linkback: [[User:N8wilson/AQFetcher.css]]
Styles and Colors
[edit]If the script is used in isolation there will be no color changes on Wikipedia. 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
[edit]- User:N8wilson/AQFetcher.css - color-coded links according to the quality scale.
- User:N8wilson/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 Pythoncoder for providing this style.
For Readers
[edit]- User:N8wilson/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:N8wilson/AQFetcher-BestInBlue.css - articles with a "higher" quality are shown in brighter blue.
For Editors
[edit]I've found these styles particularly useful for browsing the under-developed corners of Wikipedia:
- User:N8wilson/AQFetcher-StartsAndStubs.css - only Start-class and Stub-class retain traditional link appearance. Other links remain in place but appear as regular text.
- User:N8wilson/AQFetcher-WorstInBlue.css - articles with a "lower" quality are shown in brighter blue.
Acknowledgements
[edit]Key acknowledgement goes to Anomie whose link classifier script (User:Anomie/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.
Pythoncoder provided a really helpful alternative icon style. It's great if you use lots of various scripts together. Thanks!
Known Limitations
[edit]- Article Namespace - By design the script only runs when browsing in the article namespace. It will not stylize links on pages in User:, Talk:, Wikipedia:, 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
[edit]Class | Criteria | Reader's experience | Editing suggestions | Example |
---|---|---|---|---|
FA | 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:
A featured article exemplifies Wikipedia's very best work and is distinguished by professional standards of writing, presentation, and sourcing. In addition to meeting the policies regarding content for all Wikipedia articles, it has the following attributes.
|
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) |
FL | The article has attained featured list status by passing an in-depth examination by impartial reviewers from WP:Featured list candidates. More detailed criteria
The article meets the 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; further improvements to the prose quality are often possible. | List of dates predicted for apocalyptic events (as of May 2018) |
A | 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. WP:Peer review may help. | Battle of Nam River (as of June 2014) |
GA | The article meets all of the good article criteria, and has been examined by one or more impartial reviewers from WP:Good article nominations. More detailed criteria
A good article is:
|
Useful to nearly all readers, with no obvious problems; approaching (though not necessarily equalling) the quality of a professional publication. | 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 meets all of the B-Class criteria. It is mostly complete and does not have major problems, but requires some further work to reach good article standards. More detailed 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. | Psychology (as of January 2024) |
C | The article is substantial but is still missing important content or contains 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, or need editing for clarity, balance, or flow.
|
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 meaningful amount of good content, but it is still weak in many areas. The article has one or more of the following:
|
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. | Ball (as of September 2014) |
Stub | A very basic description of the topic. Meets none of the Start-Class criteria. | 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. | Lineage (anthropology) (as of December 2014) |
List | Meets the criteria of a stand-alone list or set index article, 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 Wikipedia articles, appropriately named and organized. | List of literary movements |
See also
[edit]- Wikipedia:Metadata gadget
- User:Nihiltres/assesslinks.js (an updated version of User:Pyrospirit/metadata/assesslinks.js) similarly allows you to see the assessment of every article linked from a given page.