User:Jerome Frank Disciple/url-status fixer

User:Jerome Frank Disciple/url-status fixer.js is my effort to automate *most* of the reasons a page will end up on Category:CS1 maint: url-status, which, reductively speaking, captures pages in which the  parameter is defined but the   parameter is not. Manually checking that each template that has a url-status parameter also has an archive-url parameter can be cumbersome.

There are two ways a page will end up in that category:
 * 1) Having citation templates in which the   parameter is defined but the   parameter is not defined (most common reason)
 * 2) Having a url parameter that is identical to an archive-url parameter (relatively rare).

This module only addresses the first category, handling most, but not all the first category cases. It will remove a url-status parameter if:
 * 1) The url-status parameter is present in the citation template and neither "archive-url" nor "archiveurl" are present.
 * 2) The url-status parameter is present in the citation template and archive-url is present but defined as nothing (i.e. "archive-url=|") or defined as having only one space (i.e. "archive-url= |").

If the archive-url parameter has multiple spaces, it will not be captured. Comparatively, a url-status parameter without text will be captured no matter how many spaces.