User:Manishearth/orphantabs.js: Difference between revisions

Content deleted Content added
No edit summary
a minor update; still this script is outdated since do-attempt is not used anymore
Line 276:
rVal = val.replace(/{{orphan\|\wdate=[^\}]*}}/i, "")
// alert(12)
}else if(val.indexOf("{{articleissuesmultiple issues") !=-1){
rVal=val.replace(/\|\w?orphan=[^\|\}]*/i,"")
rVal=rVal.replace(/\|\w?do-attempt=[^\|\}]*/i,"")
Line 294:
rVal = val.replace(/({{do-attempt|date=[^\|\}]*\|att=)[^\|\}]*}}/i, "$1\{\{subst:CURRENTMONTHNAME\}\} \{\{subst:CURRENTYEAR\}\}}}")
 
}else if(val.indexOf("{{articleissuesmultiple issues") !=-1){
rVal=rVal.replace(/\|\w?do-attempt=[^\|\}]*/i,"\|do-attempt=\{\{subst:CURRENTMONTHNAME\}\} \{\{subst:CURRENTYEAR\}\}")
// alert(23)