deOrphan
DescriptionEasily remove orphan tags
StatusStable
First releasedDecember 13, 2018; 5 years ago (2018-12-13)
Version1.1
Updated21 November 2023
SkinsVector
SourceUser:DannyS712/deOrphan.js

Creates an unobtrusive interface to remove {{orphan}} tags from articles, or any other tag that adds a page to Category:Orphaned articles, along with the ability to set the minimum number of incoming links needed for the interface to appear.

Based off of User:Technical 13/Scripts/OrphanStatus.js. I made the following changes:

  • Move the interface from directly to the right of the title to the left side of the page
  • Remove the • symbols entirely
  • Allow the option to set the minimum number of incoming links for the interface to appear (see below)
Customization
  1. Insert var user_orphan_cutoff = X; into your common.js page, on the line before your inclusion of my script
  2. Set "X" to be the minimum number of incoming links required for the interface to appear:
0 - if there are no incoming links, a note of this will appear
1 - if there is at least 1 incoming link, a note of this will appear, including the option to see "what links here" and a "deOrphan" button to remove the tag
2 - if there are at least 2 incoming links, a note of this will appear, including the option to see "what links here" and a "deOrphan" button to remove the tag
If this set to anything less than 0, it will be treated as 0
If this is set to anything above 2, only pages with at least 3 incoming links will show the interface
If this is not set, the default is requiring at least 1 incoming link
Importation

This script can be imported to skin.js or common.js by adding:
importScript('User:DannyS712/deOrphan.js'); // [[User:DannyS712/deOrphan.js]]
or
{{subst:Iusc|User:DannyS712/deOrphan.js}}