Jump to content

User:Technical 13/Scripts/OrphanStatus

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 13:03, 12 December 2014 ({{USer:Technical 13/Scripts/Nav}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Browser/skin compatibility table
Browser\Skin Vector MonoBook Modern Cologne Blue
Chrome 29 untested untested untested untested
FireFox 33 Works untested untested untested
IE 7 untested untested untested untested
Opera 12.16 untested untested untested untested
Opera 16 untested untested untested untested
Safari 5 untested untested untested untested
Code Anchors
Author(s)Technical 13
StatusBeta
UpdatedDecember 2, 2014
BrowsersFirefox 33
SkinsVector
SourceUser:Technical 13/Scripts/OrphanStatus.js

This script runs on pages in article space that are tagged with {{Orphan}} or some version of it and gives the orphan status of the page by checking the number of incoming links.
If there is at least one incoming link from article space (it will offer a link to "other pages" which is a filtered WhatLinksHere so you can see exactly which articles) then there will be a deOrphan link. Clicking that link will try and remove the {{Orphan}} tag from the page.
When the attempt (successful or not) is completed it will either give a link to load only the diff of the edit (in cases where it detected the old syntax for Multiple issues which it has trouble with in some cases) or links to reload or view the diff.

Future plans include having it automatically attempt to deOrphan articles with three or more incoming links, improving detection of an "orphan" template, and detection of whether or not the incoming links are "list" or "disambig" pages as needed.

[[?title=User_talk:Technical_13/Scripts/OrphanStatus&action=edit&section=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Report a bug |?title=User_talk:Technical_13/Scripts/OrphanStatus&action=edit&section=new&preloadtitle=Bug+Report+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Report a bug]] [[?title=User_talk:Technical_13/Scripts/OrphanStatus&action=edit&section=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Request a feature |?title=User_talk:Technical_13/Scripts/OrphanStatus&action=edit&section=new&preloadtitle=Feature+Request+%7B%7Bsubst%3A%23time%3Ad+M+Y%7Cnow%7D%7D Request a feature]]

Using this script

On the English Wikipedia

This script can be imported to skin.js or common.js by adding:

importScript( 'User:Technical 13/Scripts/OrphanStatus.js' );// [[User:Technical 13/Scripts/OrphanStatus]]

Step two

Once you have saved the above to your common.js, you will have to WP:BYPASS your cache to see the effects.