User:DannyS712/deOrphan

{{User:DannyS712/Scripts doc2

| name = deOrphan

| desc = Easily remove orphan tags

| updated = 21 November 2023

| status = Stable

| released = {{start date and age|2018|12|13}}

| version = 1.1

| logo = File:Nuvola filesystems folder home.png

}}

Creates an unobtrusive interface to remove {{tl|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 {{code |lang=javascript |code=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

{{User:DannyS712/Scripts doc}}