Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// Add [[Template:Personality rights]] (inspired by PatStuart's [[User:Patstuart/Flickrreview.js]])functionpersonality(autosave){document.editform.wpTextbox1.value+='{{Personality rights}}'document.editform.wpSummary.value='Tagged for [[Commons:Photographs of identifiable people|personality rights]]';document.editform.wpMinoredit.checked=true;if(autosave)document.editform.submit();}//stolen shamelessly and modified from the add {{information}} template text and [[User:Patstuart/Flickrreview.js]]functionadd_topbar_button(text,_href){mw.util.addPortletLink("p-cactions",_href,text,"");}functionaddFunction(functionNameString,buttonDisplayName,checkNameSpaceFlag,whereAdd){checkNameSpaceFlag|=(wgPageName=="Commons:Sandbox");if(!checkNameSpaceFlag)return;if(getParamValue('functionName')==functionNameString){addOnloadHook(function(){eval(functionNameString+"(true)")});}var_href;if(wgAction=="edit")_href="javascript:"+functionNameString+"(true)";else_href=wgScript+"?title="+encodeURIComponent(mw.config.get('wgPageName'))+"&action=edit&functionName="+functionNameString;if(whereAdd=="top")addOnloadHook(function(){add_topbar_button(buttonDisplayName,_href);})elseif(whereAdd=="toolbox")addOnloadHook(function(){add_toolbox_button(buttonDisplayName,_href);})}functionaddImageFunction(functionNameString,buttonDisplayName,buttonLocation){addFunction(functionNameString,buttonDisplayName,wgNamespaceNumber==6,buttonLocation);}addImageFunction("personality","personality","top")