User:Qwerp/vector.js

function closeAFD_addLink { mw.util.addPortletLink("p-cactions", "javascript:closeAFD_init", "Close", "ca-closeAFD", "Close AFD"); mw.util.addPortletLink("p-cactions", "javascript:closeAFD_relist", "Relist", "ca-closeAFD-relist", "Relist AFD"); } $(closeAFD_addLink); }

function initEditMode { jsMsg(A test message called hopefully by Initiating in Edit mode,) } function initViewMode { jsMsg(A test message called hopefully by Initiating in Normal mode,) } $(function {  if(wgAction == 'edit' || wgAction == 'submit'){    mw.util.addPortletLink('p-tb', 'javascript:initEditMode', 'Page size', 't-rff-helper', 'asses an article recieve automatic suggestions respond notify the requesting user leave tags on the article and articles talk page all through the RFF Helper Interface your current edit will even be saved', , );    document.getElementById("t-rff-helper").firstChild.style.cssText = "color:brown;"  }  else if(wgAction == 'view' || wgAction == 'submit' || wgAction == 'purge'){    mw.util.addPortletLink('p-tb', 'javascript:initViewMode', 'Page size', 't-rff-helper', 'asses an article recieve automatic suggestions respond notify the requesting user leave tags on the article and articles talk page all through the RFF Helper Interface/', , );    document.getElementById("t-rff-helper").firstChild.style.cssText = "color:brown;"  } });