User:Technical 13/Scripts/OrphanStatus
Browser/skin compatibility table
| |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| Author | Technical 13 |
|---|---|
| Status | Beta |
| Updated | November 25, 2019 (5 years ago) |
| Browsers | Firefox 33 |
| Skins | Vector |
| Source | User:Technical 13/Scripts/OrphanStatus.js |
This script runs while viewing pages in article space that are tagged with {{Orphan }} or some version of it (anything that has ended up in Category:Orphaned articles) 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.
icon To-do list for User:Technical 13/Scripts/OrphanStatus: edit · history · watch · refresh · Updated 2014年12月12日
- Future plans :
- Improving detection of "orphan" templates
- Using the
|att=parameter - Using the old syntax inside of {{Multiple issues }}
- Using the
- Detection of whether or not the incoming links are "disambig" pages.
- See if the backlinked pages are in Category:All disambiguation pages using this category API query
- Detection of {{Soft redirect }}s
- Using this template API query
- Having it automatically attempt to deOrphan articles with three or more incoming links.
- Detecting if there are any valid links going to any of the redirects to the page.
- Adding a link that will add an attempt to the existing {{Orphan }} template with:
|att=November 2025
- Improving detection of "orphan" templates
Using this script
[edit ]On the English Wikipedia
[edit ]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
[edit ]Once you have saved the above to your common.js, you will have to WP:BYPASS your cache to see the effects.