User:DVRTed/author-link
From Wikipedia, the free encyclopedia
author-link is a userscript that streamlines the process of adding |author-link= parameters to citations. The scripts scans an article's citations, searching for potential Wikipedia articles that match the cited authors, and presents them in a simple interface. With just a few clicks, you can add accurate author links to dozens of citations in minutes.
DescriptionA userscript to assist in adding author links to citations.
AuthorDVRTed
First releasedSeptember 21, 2025
author-link userscript in action on the South Park article | |
| Description | A userscript to assist in adding author links to citations. |
|---|---|
| Author | DVRTed |
| First released | September 21, 2025 |
| Source | User:DVRTed/author-link.js |
Installation
Automatic
- Click on the 'Install' button in the infobox, or at the top of the script's source page.
Note: If there's no 'Install' button, make sure you have the script installer enabled in your preferences: Preferences → Gadgets → Advanced →
Install scripts without having to manually edit JavaScript files (documentation)
Manual
- Place
{{subst:iusc|User:DVRTed/author-link.js}}on your common.js file.
Usage
- Open an article in source editing mode.
- Launch the tool.
- Go to the toolbar: Tools/More → Author links.
- A panel will appear on the right side of your screen. The script will automatically scan the wikitext for all citations and identify authors who are missing an
|author-link=.For each citation, the panel will display:- A preview of the citation wikitext.
- The name of the author(s) needing a link.
- A list of suggested Wikipedia articles that might match the author's name.
- Link the authors. The completion counter at the top of the panel will track your progress. You have three options for each author:
- Select a match: If a correct article is suggested, click the "Select" button next to it. The script will automatically add the
|author-link=parameter to the citation in the main editor window. - Manual entry: If no match is found, or the correct article isn't listed, or you end up at a disambiguation page, you can add the correct Wikipedia article title into the text box at the bottom of the author's section and click "Apply".
- Skip: If you don't want to add a link for a particular citation, click the "Skip" button at the top right of that citation's box.
- Select a match: If a correct article is suggested, click the "Select" button next to it. The script will automatically add the
- Save your changes. After you have finished linking authors, close the AuthorLink panel. Review the changes in the main Wikipedia editor window and then save the article as normal.
Timeline
- September 22, 2025: The script was created following requests by TechnoSquirrel69 and GreenC at Wikipedia:User scripts/Requests § Assisted addition of author links to citations. They also helped create this documentation page.
- October 17, 2025: The script was rewritten in Vue using mw:Codex components, which caused it to deviate from its original layout and design.