User:Polygnotus/Scripts/DeduplicateReferences

This is the current revision of this page, as edited by Polygnotus (talk | contribs) at 09:15, 11 June 2025. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

This scripts deduplicates references that are exact duplicates. It ignores inexact duplicates. It tries to come up with a reasonable name. I can be used in addition to User:Polygnotus/DuplicateReferences. I recommend User:Nardog/RefRenamer which provides a handy interface for renaming references.

DeduplicateReferences
File:DeduplicateReferences.png
DescriptionThis scripts deduplicates references that are exact duplicates
Author(s)Polygnotus
UpdatedJune 11, 2025
    (2 months ago)
SourceUser:Polygnotus/Scripts/DeduplicateReferences.js

DeduplicateReferences References script

Installation

edit

First install User:Enterprisey/script-installer, then come back to this page and click the giant blue "Install" button in the infobox on the right.

Or install it manually by adding the below code to your Special:MyPage/common.js file:

{{subst:iusc|User:Polygnotus/Scripts/DeduplicateReferences.js}}

Functionality

edit
  • Deduplicates references that are exact duplicates
  • Tries to come up with a good name
  • Has a blacklist for bad refnames