User:Jj137/frcominfobox.js

//

function doQinfobox { var f = document.editform, t = f.wpTextbox1; document.editform.wpTextbox1.value = '\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Added infobox to French commune article.'; document.editform.submit; } $(function { if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     return;  }  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doQinfobox", "infobox", "ca-infobox", "Add French commune blank infobox", "");  } }); //