User:TheJJJunk/Automatic Referencing Assistant

ARA by JJJ
OTF.jsHUE
OverviewTalkFunctionsScriptHistoryUsersErrors

Overview

The Automatic Referencing Assistant (ARA) is a script which aids users in correcting referencing errors. It notifies the user when the article being edited is missing the {{Reflist}} template, has invalid or broken <ref></ref> tags, or is missing the "Name" parameter in the Persondata template. Clicking a fix link will automatically add the necessary template or information to the correct location in the article.

For a written history of the script, see here.

Usage

To use this script:

  1. Place
    importScript('User:TheJJJunk/ARA.js'); // [[User:TheJJJunk/Automatic Referencing Assistant]]
    in your common.js. If the script doesn't work immediately, Bypass your cache.
  2. Add your name to the list of users.

List of functions

FunctionStatusDescriptionActivity
missing {{Reflist}} ApprovedAdds the {{Reflist}} template to the article if citations are present.    -Active
Missing {{Notelist}} ApprovedAdds the {{Notelist}} template to the article if notes ({{efn}}) are present.    -Active
inapplicable tag ApprovedRemoves {{unreferenced}} and {{no footnotes}} tags if <ref> tags present.[a]    -Active
missing reference groups ApprovedAdds the {{Reflist|group}} template to the article if citations using the |group= parameter are present.    -Active
unnecessary reference groups ApprovedRemoves the |group= parameter from citations that have an improper group listed.    -Active
extra whitespace in citation ApprovedRemoves extra whitespace from citations.    -Active
URL containing space(s) ApprovedReplaces spaces in the URL parameter with %20 (the URL-encoded representation of a space).    -Active
URL ending with a period ApprovedRemoves trailing periods in the URL parameter.    -Active
invalid ref position ApprovedFixes spacing before <ref> tags and periods (.) after </ref> tags.    -Active
Invalid <ref></ref> tags ApprovedIf citations using <ref></ref> tags are listed below the {{Reflist}} template, removes the <ref></ref> tags.    -Active
broken <ref></ref> tags ApprovedFixes malformed <ref></ref> tags (./ref>, ,/ref>, or </ref).    -Active
broken {{Reflist}} ApprovedFixes a malformed {{Reflist}} template. Examples: {{reflist)), {{relist}}, {{Reflist|2}.    -Active
references on Portal: Pages ApprovedPer Wikipedia Talk:Portal guidelines#References in portals, Portal pages should not include references.    -Active
{{Reflist}} on Portal: Pages ApprovedPer Wikipedia Talk:Portal guidelines#References in portals, Portal pages should not include {{Reflist}} templates.    -Active
URL scheme error ApprovedAdds http:// onto invalid URLs in citations.    -Active
URL scheme error (Capital) ApprovedAdds http:// onto invalid URLs in citations that begin with a capital letter (These are most likely not actually URLs).    -Active
empty citations ApprovedRemoves empty citations ("<ref></ref>") from the article.    -Active
empty Persondata template ApprovedAdds the parameters to {{Persondata}} templates located on the page.    -Active
missing Name in Persondata ApprovedAdds the |NAME= parameter to the article's PERSONDATA.    -Active
accessdate without URL Withdrawn by operatorRemoves the |accessdate= paramater from citations lacking the url= parameter.    -Inactive
citation type Withdrawn by operatorReplaces {{cite web}} with {{citation}} if the citation lacks the title= parameter.    -Inactive
coauthors without author Withdrawn by operatorReplaces the |coauthor= paramater with |author= if the citation lacks the last= and author= parameters.    -Inactive
heading style Withdrawn by operatorRemoves spaces in headings (== Heading ==    →    ==Heading==).    -Inactive


Report errors, comments, and suggestions

To report an error with this script, to comment on it, or to suggest new functions, leave a message on my talk page or the script talk page.

Notes