Content deleted Content added
Manishearth (talk | contribs) No edit summary |
Manishearth (talk | contribs) No edit summary |
||
Line 13:
if(OrphanTabsConfig === undefined){
OrphanTabsConfig = {
auto :
autoChoice :
showCompleteTab : true,
completeTabText : "de-orphan-complete",
Line 65:
}
var currentLinkWin
var otherOrphanTabs =
var deOrphanDocumentLinkArray = new Array()
var linkACounter=0
Line 81:
if(otherOrphanTabs){
if(OrphanTabsConfig.showWLHTab){
addPortletLink("p-cactions", wgServer + "/wiki/Special:WhatLinksHere/" + pgname,
}
if(OrphanTabsConfig.showSearchItTab){
addPortletLink("p-cactions",
}
if(OrphanTabsConfig.showGoogleItTab){
addPortletLink("p-cactions",
}
}
if (document.editform && OrphanTabsConfig.showWikify){
addPortletLink("p-cactions","javascript:deOrphanWikify(prompt(\"What page are you de-orphaning?\",\"\"))",
}
if(OrphanTabsConfig.showCompleteTab){
▲addPortletLink("p-cactions", "javascript:initDeOrphan(prompt(\"What page\?\"\,\""+ ((wgCanonicalNamespace=="")?wgPageName:"")+"\"));", "De-orphan-complete", "ca-de-orphan", "Find all Wikipedia pages with this page name in them");
addPortletLink("p-cactions", "javascript:initDeOrphan(prompt(\"What page\?\"\,\""+ ((wgCanonicalNamespace=="")?wgPageName:"")+"\"));", OrphanTabsConfig.completeTabText, "ca-de-orphan", "Find all Wikipedia pages with this page name in them");}
});
Line 200 ⟶ 205:
function endOfLinkWins(){
if(OrphanTabsConfig.auto){
var choice = ((linkAlreadyThere + howManyActuallyDeOrphaned)>OrphanTabsConfig.autoChoice)?true:false;
}else{
var choice = confirm(linkAlreadyThere + " pages linked to " + deOrphanPgName + " before de-orphaning.\n" + howManyActuallyDeOrphaned + " pages were linked to " + deOrphanPgName + "\n" + (linkAlreadyThere + howManyActuallyDeOrphaned) + " pages link to " + deOrphanPgName + " now\n De-orphan? (Press cancel to tag the page with \'do-attempt\'.")
currentLinkWin = window.open("about:blank","","")
}
currentLinkWin.___location.replace(wgServer+"/w/index.php?title=" + deOrphanPgName + "&action=edit")
if(!currentLinkWin.addOnloadHook){
|