Eisspeedway

User:Manishearth/OrphanTabs

OrphanTabs is a script which helps in the process of De-orphaning (Check WikiProject Orphanage for details). The script is at User:Manishearth/orphantabs.js

Installation

To install this script, go to your monobook.js page, and add:

importScript('User:Manishearth/orphantabs.js')

Once this is done, purge your cache.

Usage

After installation, a new tab will appear next to the original 'view', 'edit', 'talk', 'history', etc. tabs. It will say 'de-orphan'. To use the script, simply click on the tab, and add the name of the page you want to de-orphan in the window that pops up, and click 'OK'. If you are on an article page, the article name will already be in the input box. (Remember, you can de-orphan a page from any page. For example, you can de-orphan World (Not that it needs de-orphaning), from Main Page. This is useful if you are on Category:Orphaned_articles, and want to de-orphan the pages serially.)
Once you have entered the name of the page, click 'OK', and now all you have to do is sit back and relax while the script does the work for you. You will see many pages opening and closing, and finally, the results of the de-orphaning will be displayed. It will tell you how many article pages linked to the page being deorphanted before the de-orphaning process began, and how many link to it after de-orphaning. Press 'OK' if you want to mark it as no longer an orphan. Press 'Cancel' if you want to mark it with 'do-attempt'. It will automatically tag it, and will display 'De-orphaning over!!!' when it is finished. Click 'OK', and now you may safely close the window containing the page.
Note: During the process of de-orphaning, do not close the any of the windows that pop up. Your popup blocker must be turned off. If the computer hangs (It hasn't happened to me yet), use task manager to exit, and report it to me at User:Manishearth/OrphanTabs/Feature requests and bugs.

Feedback

If you want to report a bug of ask for a new feature, go here. If you need help installing of customizing, go here.

Customization

OrphanTabsConfig = {
auto 			:	false,
autoChoice 		:	3,
showCompleteTab	:	true,
completeTabText	:	"de-orphan",
showWikifyTab		:	true,
wikifyTabText		:	"Wikify",
showWLHTab		:	false,
wLHTabText		:	"WhatLinksHere",
showSearchItTab	:	false,
searchItTabText	:	"Search It!",
showGoogleItTab	:	false,
googleItTabText	:	"Google It!"
}

To customize, copy-paste the text above in your monobook js page, BEFORE the importScript('User;Manishearth/orphantabs.js') command. To change the value of a variable, just change the value after the colon in front of the variable. THe entir text of the customization template need not be copied. For example, if you just want to customize the auto feature, you can just copy this:

OrphanTabsConfig = {
auto 			:	true,
autoChoice 		:	3,
}

Each customizable aspect is given below, with the variables that control it:

Auto

Auto is a feature, where the script will not prompt you if you want to tag it with do-attempt or not.

auto

If the variable auto is set to 'true', the script will bypass the prompt, and will see if the page has enough article pages linking to it. (It will see if the number of pages is greater than or equal to the autoChoice variable).

autoChoice

You can change autoChoice to a different value if you feel that a page should have more (or less) than three pages linking to it to be considered de-orphaned.

Complete Tab

The complete tab is the tab on which you click to start the entire process

showCompleteTab

Setting this 'false' will hide the complete tab

completeTabText

Changing the value of this variable changes what text is displayed on the complete tab. By default, it is 'de-orphan'. This is useful if you want to make to make the tab smaller by changing its text to 'DO' or something else short.

Wikify Tab

This and the following tabs are useful if you want to do the de-orphaning process manually, but want some tools to make it easier.

The wikify tab is a tab (Only seen on an edit page), which when clicked ), will give a prompt. Add the name of the page you want to link to. The script will make all occurrences of that word or phrase in the page into a link. For example, if you type 'World' in the prompt, every occurrence of World will be changed to World

showWikifyTab

Setting this 'false' will show the wikify tab

wikifyTabText

Changing the value of this variable changes what text is displayed on the wikify tab. By default, it is 'Wikify'. This is useful if you want to make to make the tab smaller by changing its text to 'DOW' or something else short.

The WLH tab opens the 'What Links Here' page in a new window

showWLHTab

Setting this 'false' will show the WLH tab

wLHTabText

Changing the value of this variable changes what text is displayed on the WLH tab. By default, it is 'WhatLinksHere'. This is useful if you want to make to make the tab smaller by changing its text to 'WLH' or something else short.

SearchIt Tab

The Search It tab searches the page name on Wikipedia

showSearchItTab

Setting this 'false' will "show" the SearchIt tab

wLHTabText

Changing the value of this variable changes what text is displayed on the SearchIt tab. By default, it is 'Search'. This is useful if you want to make to make the tab smaller by changing its text to something else short.

GoogleIt Tab

The GoogleIt tab searches the page name on Google Web Search.

showWLHTab

Setting this 'false' will "show" the GoogleIt tab

wLHTabText

Changing the value of this variable changes what text is displayed on the GoogleIt tab. By default, it is 'Google It!'. This is useful if you want to make to make the tab smaller by changing its text to something else short.