User:AFigureOfBlue/biotag.js

//See User:Drilnoth/biotag.js/doc for details.

//Create the "doBioTag" function function doBioTag { document.editform.wpTextbox1.value = '{' + '{' + 'WPBiography' + '\n' + '|living =' + '\n' + '|class =' + '\n' + '|priority =' + '\n' + '|attention =' + '\n' + '|past-collaboration =' + '\n' + '|peer-review =' + '\n' + '|old-peer-review =' + '\n' + '|needs-infobox =' + '\n' + '|needs-persondata =' + '\n' + '|activepol =' + '\n' + '|a&e-work-group =' + '\n' + '|politician-work-group =' + '\n' + '|british-royalty =' + '\n' + '|royalty-work-group =' + '\n' + '|military-work-group =' + '\n' + '|sports-work-group =' + '\n' + '|s&a-work-group =' + '\n' + '|musician-work-group =' + '\n' + '|peerage-work-group =' + '\n' + '|filmbio-work-group =' + '\n' + '|non-bio =' + '\n' + '|listas =' + '\n' + '|needs-photo =' + '\n' + '}' + '}' + '\n' + '\n' + document.editform.wpTextbox1.value; }

//Implement the "doBioTag" function on appropriate pages $(function { if (wgCanonicalNamespace == "Talk")  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doBioTag", "bio", "ca-biotag", "Tag page as a part of WikiProject Biography", "");  } });