Content deleted Content added
Manishearth (talk | contribs) No edit summary |
Manishearth (talk | contribs) No edit summary |
||
Line 10:
addPortletLink("p-cactions", gServerPre + pgname + gServerPost, "De-orphan", "ca-de-orphan", "Find all Wikipedia pages with this page name in them");
addPortletLink("p-cactions","javascript:document.editform.wpTextbox1.value=deOrphanWikify(pgname,document.editform.wpTextbox1.value)", "De-orphan-wikify", "ca-de-orphan-wikify", "Wikify to deorphan another page");
});
function deOrphanWikify(pgName, text){
rXP = new RegExp("([ '\"()<>,.])(" + pgName + ")([ '\"()<>,.])", "gi")
var t = text.replace(rXP, "$1[[" + pgName + " |$2]]$3")
return t;
}
|