User:Gamedezyner/global.js

//

// JS API Interface importScriptPage("Tools/API/code.js", "gamedezyner");

// Auto User Template // If user profile page is empty and we publish an edit, automatically add profile template to user profile

if (wgAction == "edit") { profileTemplate = '' if (api.functions.getPageContents("Special:MyPage")=="error") { $("#wpSave").click(function {api.functions.editPage('User:' + wgUserName, '', "Adding profile template")}); } }

//