User:Lingzhi2/reviewsourcecheck

This editor uses reviewsourcecheck to find errors in the references and notes.

This script simplifies source reviews by flagging 16 types of errors in the references and/or notes. It is a fork of Ucucha's HarvErrors2 script; it produces no output if harv templates are not being used.

To check as many errors as possible, I recommend using this in conjunction with two others

  1. First, copy/paste importScript('User:Ucucha/HarvErrors.js'); to Special:MyPage/common.js . This script by Ucucha is indispensable in its own right. In addition, my script relies on its output, and thus cannot function without it.
  2. On the same page and below that script, add one of these two variants, depending on where on the page you wish to add a link that toggles between "Hide ref check" and "Show ref check". Both versions should store the page state (whether reference errors/warnings are "hidden" or "shown"). The state persists between page loads and between the browser closing and reopening (unless cleared by the user, for example by deleting data in your browser's cache etc.). Huge thanks to User:Evad37 for much coding help:
    1. If you want to add a tab to the drop-down tab at the top, located between the 'watchlist star' and the search box (using the vector.js skin), add importScript('User:Lingzhi2/reviewsourcecheck.js');
    2. If you want a link to be added to the Toolbar section on the left side of the page, add importScript('User:Lingzhi2/reviewsourcecheck-sb.js');.
  3. Finally go to to Special:MyPage/common.css and add .citation-comment {display: inline !important;} /* show all Citation Style 1 error messages */.

When you've added those, go to an article to check for various messages in its notes and references. (You may need to clear your browser's cache first).

After the explanatory #Common sense and #Cascading errors sections, the #Descriptive table section below gives a short summary of the messages generated by this script (other messages that you may see are output from the other scripts, of course). Below that is a dummy article with some examples of errors in notes and references for you to examine.